Fixed "Setup sources dynamically"
boydaihungst opened this issue · comments
boydaihungst commented
i fixed the "player.updateSrc is not a funtion " problem
var player = videojs('video', {
controls: true,
plugins: {
videoJsResolutionSwitcher: {
default: 'high',
dynamicLabel: true
}
}
});
//
player.updateSrc([
{
src: 'https://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_30mb.mp4',
type: 'video/mp4',
label: '720'
},
{
src: 'https://www.sample-videos.com/video/mp4/480/big_buck_bunny_480p_30mb.mp4',
type: 'video/mp4',
label: '480'
}
]);