Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8101

Additional http headers for Media plugin

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-media
    • Labels:
      None

      Description

      To access non-public media files, it is necessary to authenticate with a server. To do this, additional http headers are needed.
      It would be nice if this could be implemented in all platforms.
      I tried to implement it in Android:
      https://github.com/sfetzel/cordova-plugin-media/commit/4aa7a05ccf42268e0349aa794568d621a5cd4145
      I didn't write any unit tests.

      Reason to implement this is, that the amount of private clouds (for instance ownclouds) are increasing. To write apps, which can stream from such clouds, this feature is needed (I'm writing an app called "WebPlayer" which uses this, at the moment it is non-public).

      Furthermore, playing files from an https server with an self-trusted certificate did not work in Android. Connections are "insecure" from such servers, but in my opinion they are more secure than an unencrypted connection.
      Therefore there should be an option to enable connections to such servers. I didn't find a way to allow such connections in Android. The only workaround I found was to use a VPN connection like openvpn or L2TP (which are on most devices supported).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              surf2me Simon Fetzel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: