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

Cordova Media does not send Range header on Android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Do
    • cordova@7.0.0
    • cordova@7.0.0
    • cordova-plugin-media
    • Android Galaxy Tab E running Android 6.0.1

    • Patch, Important

    Description

      I am trying to stream back an audio file from my server. I am using cordova-media plugin to play the audio, and have it set such that I can set the range header can be set and the server return that range of the audio file. It works perfectly when I test it in the ripple emulator, but does not work on my actual android device. I am using media.seekTo to change the range, and every time I do that the audio file will pause for a second (like it is waiting for the stream to come down) and go to that timestamp, but then I can not go to any timestamp before that. It will just keep playing from the future time stamp, like it is being streamed down and it cannot stop it. When I check on the server, the app is indeed not sending the range header, but only from the android device. It sets it in the ripple emulator.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Flame2057 Bill Jamie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified