Note that there are some explanatory texts on larger screens.

plurals
  1. POPlaying .m3u8 file through HTTPS on android 2.3
    primarykey
    data
    text
    <p>At some point in my code, the app finds an URL that points to a .m3u8 file. This is what happens next : </p> <pre><code>mVideoView.setVideoURI(Uri.parse(feed.getUrl().toString())); // feed.getUrl returns the url mVideoView.start(); </code></pre> <p>And it works FINE on Android 3.1+. Not on earlier versions because it uses https (see this : <a href="http://developer.android.com/guide/appendix/media-formats.html" rel="nofollow noreferrer">http://developer.android.com/guide/appendix/media-formats.html</a> )</p> <p>So what I did is I created a new version of my app for Android 2.2+ that uses <strong>vitamio</strong> , a library that's supposed to make it easier for me. However, where (android.widget.VideoView) handled it perfectly, (io.vov.vitamio.widget.VideoView) takes a very long time to load the stream and ends up saying this while crashing :</p> <p><img src="https://i.stack.imgur.com/J7UZH.png" alt="Log when loading the .m3u8"></p> <p>BUT, when I try to load this URL : <a href="http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8" rel="nofollow noreferrer">http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8</a> It works fine !</p> <p>I can't share the URL I need to use, but here's the contents of the .m3u8 it is pointing to:</p> <pre><code>#EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=264000 playlist.m3u8?session=003016302664236&amp;index=0 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1364000 playlist.m3u8?session=003016302664236&amp;index=1 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=44000 playlist.m3u8?session=003016302664236&amp;index=2 </code></pre> <p>So the main differences I can see between this one and the Apple sample one, is I'm using https, my file is pointing to other .m3u8 files (while Apple's .m3u8 is pointing to .ts files).. Both seem to use AAC audio. </p> <p>The problem seems to be related to vitamio. How can I get around this crash ? Thank you very much.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload