[
https://issues.apache.org/jira/browse/CB-12346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15820575#comment-15820575
]
hagai sela commented on CB-12346:
---------------------------------
solved it for iphone... for some reason, when you call play on avPlayer it
waits for the full file to be downloaded. I changed the plugin code to call
playImmediatelyAtRate and it starts playing right away.
> range header problems
> ---------------------
>
> Key: CB-12346
> URL: https://issues.apache.org/jira/browse/CB-12346
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Media
> Affects Versions: 6.4.0
> Environment: android, ios
> Reporter: hagai sela
>
> Hi,
> I am serving large wav files on my server and I want to stream them to a
> cordova app. I am having problems with this on both ios and android.
> Android - when setting the http / https url in the media plugin it doesn't
> send any range headers so the server returns the full file in a 200 response.
> However, the file starts playing pretty quickly.
> IOS - it takes very long for the file to start playing (around 30 seconds for
> a 6 MB file). The plugin does send range headers, but they don't make sense.
> The first request is for bytes 0-1. The second request asks for the whole
> file... and then it sends some more requests for the end of the files and
> some chunks from the middle.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]