0

这是我的代码:

var playerInstance = jwplayer("mySingleVideoWrapper").setup({
        image: getCurrentPosterSrc,
        sources: [
            {
                file: 'file-360.mp4',
                label: "360p"
            },{
                file: 'file-480.mp4',
                label: "480p"
            },{
                file: 'file-720.mp4',
                label: "720p HD"
            },{ 
                file: 'file-1080.mp4',
                label: "1080p HD"
            }
        ], 
        width: "100%",
        androidhls: 'true',
        type: "hls",
        fallback:true,
        aspectratio: "16:9",
        autostart: true,
        logo: { 
        hide: true 
    },
        tracks: [{ 
            file: "/assets/captions-en.vtt", 
            label: "EN",
            kind: "captions",  
            "default": true 
        },{ 
            file: "/assets/captions-es.vtt", 
            label: "ES",
            kind: "captions"
        },{ 
            file: "/assets/captions-fr.vtt", 
            kind: "captions",
            label: "FR"
        },{ 
            file: "js/assets/captions-de.vtt",  
            label: "DE",
            kind: "captions"
        }]
   }); 

还有一个截图,我强调了我需要的东西 在此处输入图像描述

所以我需要那个“自动”按钮,它会自动检测当前用户的最佳质量。现在使用我的代码,我可以看到所有 4 个来源/质量,但看不到“自动”按钮。我怎样才能添加它?

4

1 回答 1

0

亚马逊支持有我这个有用的文章链接http://www.jwplayer.com/blog/encoding-hls-with-amazon-elastic-transcoder/我可以做我想做的事。

于 2015-10-23T14:15:37.940 回答