Open Edvac opened 6 years ago
The first example of the documentation should be.
function(){ var player = this; // Add dynamically sources via updateSrc method player.updateSrc([ { src: 'http://media.xiph.org/mango/tears_of_steel_1080p.webm', type: 'video/webm', label: '360' }, { src: 'http://mirrorblender.top-ix.org/movies/sintel-1024-surround.mp4', type: 'video/mp4', label: '720' } ]) player.on('resolutionchange', function(){ console.info('Source changed to %s', player.src()) }) } )
instead of
function(){ // Add dynamically sources via updateSrc method player.updateSrc([ { src: 'http://media.xiph.org/mango/tears_of_steel_1080p.webm', type: 'video/webm', label: '360' }, { src: 'http://mirrorblender.top-ix.org/movies/sintel-1024-surround.mp4', type: 'video/mp4', label: '720' } ]) player.on('resolutionchange', function(){ console.info('Source changed to %s', player.src()) }) })
Otherwise it will give ReferenceError: player is not defined error.
ReferenceError: player is not defined
The first example of the documentation should be.
instead of
Otherwise it will give
ReferenceError: player is not defined
error.