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

Buffering problem stream remote files

    XMLWordPrintableJSON

Details

    • Important

    Description

      On iOS devices, when i tried to stream remote MP3 files, the plugin downloads the entire file before can play it.

      When i create the Media and play it (audio = new Media(remoteMP3); audio.play(); ), the audio has a delay of 30 seconds or more (depending the network connection); i tried to reproduce mp3 files of 30m - 50m duration.

      On Android devices it works pretty well, with one exception: once the audio is running, if i seekTo a distant position, i have the following error:

      "MediaHTTPConnection: readAt BIGNUMBER / 32768 => java.net.ProtocolException"

      BIGNUMBER > 32768

      I suppose that error is because the buffer is not full yet, and i try to SeekTo a position that isn't in the buffer.

      I already tried with the following versions of the plugin and i have the same two problems: v2.3.0, v2.4.0, v3.0.0, v3.0.1

      Attachments

        Activity

          People

            Unassigned Unassigned
            rmanganiello Renzo Manganiello
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: