Use new feature to set thumbnails on source change in the demo

This commit is contained in:
Sam Potts 2020-04-24 01:15:54 +10:00
parent 66c5780616
commit 4915cf0120
4 changed files with 9 additions and 3 deletions

5
demo/dist/demo.js vendored
View File

@ -29440,7 +29440,10 @@ typeof navigator === "object" && (function () {
label: 'French', label: 'French',
srclang: 'fr', srclang: 'fr',
src: 'https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt' src: 'https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt'
}] }],
previewThumbnails: {
src: ['https://cdn.plyr.io/static/demo/thumbs/100p.vtt', 'https://cdn.plyr.io/static/demo/thumbs/240p.vtt']
}
}, },
audio: { audio: {
type: 'audio', type: 'audio',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -40,6 +40,9 @@ const sources = {
src: 'https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt', src: 'https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt',
}, },
], ],
previewThumbnails: {
src: ['https://cdn.plyr.io/static/demo/thumbs/100p.vtt', 'https://cdn.plyr.io/static/demo/thumbs/240p.vtt'],
},
}, },
audio: { audio: {
type: 'audio', type: 'audio',