mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 09:49:21 +02:00
default src
This commit is contained in:
parent
6889d02fe7
commit
3103da56f7
2 changed files with 53 additions and 24 deletions
13
example.html
13
example.html
|
@ -52,7 +52,12 @@
|
|||
videojs('video', {
|
||||
controls: true,
|
||||
muted: true,
|
||||
width: 1000
|
||||
width: 1000,
|
||||
plugins: {
|
||||
videoJsResolutionSwitcher: {
|
||||
default: 'low' // Default resolution [{Number}, 'low', 'high']
|
||||
}
|
||||
}
|
||||
}, function(){
|
||||
var player = this;
|
||||
window.player = player
|
||||
|
@ -61,12 +66,14 @@
|
|||
{
|
||||
src: 'http://media.xiph.org/mango/tears_of_steel_1080p.webm',
|
||||
type: 'video/webm',
|
||||
label: 'SD'
|
||||
label: 'SD',
|
||||
res: 360
|
||||
},
|
||||
{
|
||||
src: 'http://mirrorblender.top-ix.org/movies/sintel-1024-surround.mp4',
|
||||
type: 'video/mp4',
|
||||
label: 'HD'
|
||||
label: 'HD',
|
||||
res: 720
|
||||
}
|
||||
])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue