这是我的代码:
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 个来源/质量,但看不到“自动”按钮。我怎样才能添加它?