Github user ghenry22 commented on the pull request:
https://github.com/apache/cordova-plugin-media/pull/62#issuecomment-176651285
@imsingh where are you loading the m3u file from? If you are opening the
m3u file from the local file system it will try to play it like a local file.
If you open it from a http url then it will try to stream it. This is just the
logic in the media plugin, it looks at the source prefix to determine if it
should stream or play locally.
If you haven't already done so I have a fork of the plugin here that you
can install using the command below, this fork has the updated ios streaming
code from this pull request build in. If you install from here and you're m3u
file is being loaded from a url that starts with http or https you should see a
message in the native console saying "playing stream with avplayer" instead of
the normal message you see which is tied to "avaudioplayer". avaudioplayer is
the original implementation that does not support streaming, avplayer is the
framework implemented in this PR to add proper streaming support.
cordova plugin add
https://github.com/ghenry22/cordova-plugin-media.git#integrated_fixes
that's the best that I can think to recommend, hope it helps a bit!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]