Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

videojs videoJsResolutionSwitcher youtube

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')
 })
});
        
Source by kmoskwiak.github.io #
 
PREVIOUS NEXT
Tagged: #videojs #videoJsResolutionSwitcher #youtube
ADD COMMENT
Topic
Name
9+6 =