yaapelsinko
Lurker
Hi. I've created a video player prototype with Apache Cordova (using HTML5 video tag) and trying to play steaming video on a device with Android 4.2.2. The application itself seems to work. The player is nothing more than:
<video id="player" class="video-fullscreen"></video>
(the class is for stretching it screen-wide without going fullscreen mode, nothing changes if I remove it)
I'm starting playback with the following code:
$rootScope.playChannel = function (channel) {
var player = document.getElementById("player");
player.src = channel.url;
player.play();
};
(AngularJS is in use)
When channel.url links to a *.mp4 file on my video server, it works as expected. But when it links to a *.m3u8 playlist, then I hear only sound. However, it is not appears to be a lack of codecs, because if I switch video to fullscreen mode, it manages to play normally with a few attempts (not immediately), and between attempts video surface of the inline player manages to catch still image of a stream.
Who is responsible for this problem? HTML5? Android? Cordova? Too many technologies in one place to be easily investigated, as for me...
<video id="player" class="video-fullscreen"></video>
(the class is for stretching it screen-wide without going fullscreen mode, nothing changes if I remove it)
I'm starting playback with the following code:
$rootScope.playChannel = function (channel) {
var player = document.getElementById("player");
player.src = channel.url;
player.play();
};
(AngularJS is in use)
When channel.url links to a *.mp4 file on my video server, it works as expected. But when it links to a *.m3u8 playlist, then I hear only sound. However, it is not appears to be a lack of codecs, because if I switch video to fullscreen mode, it manages to play normally with a few attempts (not immediately), and between attempts video surface of the inline player manages to catch still image of a stream.
Who is responsible for this problem? HTML5? Android? Cordova? Too many technologies in one place to be easily investigated, as for me...