Description
M3u8 files can not be played in the VideoPlayer. This works in iOS.
Code to Reproduce
var vidWin = Titanium.UI.createWindow({
title : 'Video View Demo',
backgroundColor : '#fff'
});
var videoPlayer = Titanium.Media.createVideoPlayer({
top : 2,
autoplay : true,
backgroundColor : 'blue',
height : 300,
width : 300,
mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT
});
videoPlayer.url = 'http://api.playonsports.com/v1/videos/68308.hls?Authorization=bearer%20a29a3bc05c8553dbe8409d7efabeaf8b';
vidWin.add(videoPlayer);
vidWin.open();
I put the above url to the web browser on my device (Galaxy Nexus 4.0 and Nexus 7 4.3). The video plays fine. And from the log, I found when it tried to load the m3u8 file, it redirected the url to 'http://cfhls.nfhsnetwork.com/62165/62165.m3u8'. The log is attached here:
I think the original host does not contain the real MPEG-TS files. So it failed to load the video in VideoPlayer. After I modified line 16 in the above test case to
the test case works and the video plays fine. Also tested with a native Android project using [MediaPlayer](http://developer.android.com/reference/android/media/MediaPlayer.html). The original url does not play but the modified url works fine. Resolve the ticket as Invalid.
Closing as invalid.