📜  videojs videoJsResolutionSwitcher youtube - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:43.185000             🧑  作者: Mango

代码示例1
videojs('video', {
 controls: true,
 techOrder:  ["youtube"],
 sources: [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=iD_MyDbP_ZE"}],
 plugins: {
  videoJsResolutionSwitcher: {
   default: 'low',
   dynamicLabel: true
  }
 }
}, function(){
 var player = this;
 player.on('resolutionchange', function(){
  console.info('Source changed')
 })
});