Chrome中的JWPlayer在3次尝试启动后播放mp4视频

时间:2016-05-31 12:25:38

标签: gwt jwplayer mp4

我们使用JWPlayer和GWT在网上播放mp4视频文件。 JWPlayer有三次尝试发挥错误。视频播放后没有错误。此错误仅限于Google Chrome。 屏幕截图错误和有关附加视频的信息。 它可能是什么?

<script type="text/javascript"> 
    function configure(baseUrl, resourceId, isModal, type) {
        var isMobile = /android|ipad|iphone|ipod|blackberry|windows phone/i.test(navigator.userAgent.toLowerCase());
        if (isMobile) {
            if (/android/i.test(navigator.userAgent.toLowerCase())){
                window.open(baseUrl + "?requestType=" + type + "&deviceType=2" + "&resId=" + resourceId,"_top");
            } else if (/ipad|iphone|ipod/i.test(navigator.userAgent.toLowerCase())) {
                window.open(baseUrl + "?requestType=" + type + "&deviceType=3" + "&resId=" + resourceId,"_top");
            }
        } else {
            jwplayer("vpl"+ resourceId + "_"+ isModal).setup({
                flashplayer: 'medex/flash/jwplayer.flash.swf',
                file: baseUrl + "?requestType=" + type + "&deviceType=1" + "&resId=" + resourceId,          
                width: "100%",
                height: 681,
                type: "mp4",
                autostart: false,
                icons: false,
                shuffle: false,
                fullscreen: true,
                wmode: "transparent",
                bufferlength: 30,
                backgroundColor: "#000000"
            });
        }
    }
</script>

enter image description here enter image description here

0 个答案:

没有答案