直播和.m3u8视频正在使用Firefox,但视频没有在LG Webos模拟器3.0中显示

时间:2018-05-09 16:18:26

标签: hls webos hls.js

我正在使用hlc在webos模拟器中播放流媒体视频。在firefox视频显示和工作正常但在webos模拟器3.0它没有显示任何东西。只获得当前时间和持续时间。我需要对webos模拟器3.0进行哪些更改。

Member Person = new Member();
string cityTest = "New York";
person.merge_fileds.CITY = cityTest; //This is where I get the exception

html中的视频标记

   .factory('playVideoFactory', function (SessionData) {
        var i = 0;
        return {
        playVideoFunc: function (type, path, callBack, 
         clearIntervalCallBackFunc) {
                            if (Hls.isSupported()) {
                console.log("hls is supported");
                var video = document.getElementById(type);
                var hls = new Hls();
                hls.loadSource(path);
                hls.attachMedia(video);
                                console.log("hls");
                hls.on(Hls.Events.MANIFEST_PARSED, function () {
                    video.play();
                });
                var videoDurationInfo = setInterval(function () {
                    callBack(video.duration, video.currentTime);
                                }, 1000);
                clearIntervalCallBackFunc(videoDurationInfo)
            } else {
                console.log("hls is not supported");
            }
        }
        }
       })

0 个答案:

没有答案