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

Media Capture plugin returns file path of file:/ instead of file:///

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.4.0
    • None
    • None
    • Cordova 3.4
      Media-Capture plugin 2.9
      Android build

    Description

      I noticed that when returning the file path from the camera plugin, the URI is returned as file:///

      When I extracted the full path (as shown in the docs) from an audio recording using the media-capture plugin, the path was returned as file:/

      When I used the media plugin to attempt to play the file, it would throw an error... To experiment I decided to replace file:/ with file:/// and this resolved the issue instantly.

      I am not sure whether this issue pertains to the media-capture plugin returning a file path that isn't quite "to spec" or if the issue is in the media plugin not being able to play a file from a path that isn't quite "to spec".

      Just thought I'd report this issue either way.

      Attachments

        Activity

          People

            Unassigned Unassigned
            edwrede Ed Wrede
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: