简体   繁体   English

播放HLS文件时JWPlayer控制栏错误

[英]JWPlayer controlbar error when playing HLS file

I have a jwplayer set up that plays an mp4 file as it should. 我有一个jwplayer设置,它应该播放mp4文件。 With this same setup using an hls file, the controlbar 'sticks' to the player and does not disappear when the user's cursor is out of the picture. 使用hls文件进行相同的设置时,控制栏会“粘住”播放器,当用户的光标不在图片中时,控制栏不会消失。

Here is an example of the the player with two different files: the HLS file on top which has the controlbar bug, and the mp4 file on the bottom, which works normally: http://streaming2.cinely.com/title/1 以下是具有两个不同文件的播放器的示例:顶部的HLS文件,其中包含控制栏错误,底部的mp4文件正常工作: http//streaming2.cinely.com/title/1

Here is my jwplayer setup: 这是我的jwplayer设置:

playerInstance.setup({
    skin: "glow",
    icons: false,
    width: '100%',
    height: '100%',
    sources: sources,
    controlbar: 'bottom',
    plugins: {
        'overlay': {
            data: data['Data'],
            beforeOverlayUrl: '/static/plugins/overlay/templates/beforeOverlay.html',
            afterOverlayUrl: '/static/plugins/overlay/templates/afterOverlay.html'
        }
    },
    // file: 'http://stream.flowplayer.org/bauhaus.mp4',
});

Why is this issue occurring and how would I fix it for an hls file? 为什么会出现此问题以及如何为hls文件修复此问题?

This turned out to be a missing declaration in the HLS manifest file. 结果证明这是HLS清单文件中缺少的声明。 This was causing jwplayer to act screwy and adding this in seemed to be the root cause of the other issues: 这导致jwplayer行动起来,并且添加此内容似乎是其他问题的根本原因:

#EXTM3U
#EXT-X-VERSION:3 

The second line is needed to properly play multiple audio files. 需要第二行才能正确播放多个音频文件。 Here is an example of a proper manifest file including multiple audio tracks from the jwplayer site: 以下是包含来自jwplayer网站的多个音轨的正确清单文件的示例:

Video: http://support.jwplayer.com/customer/portal/articles/1761348-multiple-audio-renditions Manifest: http://playertest.longtailvideo.com/adaptive/eleph-audio/playlist.m3u8 视频: http//support.jwplayer.com/customer/portal/articles/1761348-multiple-audio-renditions Manifest: http//playertest.longtailvideo.com/adaptive/eleph-audio/playlist.m3u8

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM