Update VideoJS to latest version and prepare for new layout (#3268)

This commit is contained in:
Peter Hedenskog 2021-02-02 15:49:18 +01:00 committed by GitHub
parent 109782d2aa
commit 59a55d723c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 811 additions and 593 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
- const videoIndex = medianRun ? medianRun.runIndex : iteration;
- const width = options.mobile ? 'max-width: 400px;' : h.get(options, 'browsertime.chrome.android.package') ? 'max-width: 400px;' : 'width: 100%'
- const width = options.mobile || options.android || (options.safari && options.safari.useSimulator) ? 'max-width: 400px; margin: 0 auto;' : 'max-width: 800px; margin: 0 auto;'
small
||
@ -9,12 +9,12 @@ small
|  | 
a#video
h3 Video
.videoWrapper(style=width)
- screenshotName = 'data/screenshots/' + videoIndex + '.' + screenShotType
video.video-js.vjs-default-skin.vjs-big-play-centered(controls, preload='none', poster=screenshotName, data-setup='{ "fluid": true, "playbackRates": [0.1, 0.2, 0.5, 1] ,"volumeControl": false}')
source(src='data/video/' + videoIndex +'.mp4', type='video/mp4')
.videoWrapper(style=width)
- screenshotName = 'data/screenshots/' + videoIndex + '.' + screenShotType
video.video-js.vjs-default-skin.vjs-big-play-centered(controls, preload='none', poster=screenshotName, data-setup='{ "fluid": true, "playbackRates": [0.1, 0.2, 0.5, 1] ,"volumeControl": false}')
source(src='data/video/' + videoIndex +'.mp4', type='video/mp4')
script(src= assetsPath + 'js/video.novtt.min.js')
script(src= assetsPath + 'js/video.core.novtt.min.js')
a#download-video
- const videoPath = 'data/video/' + (iteration ? iteration : medianRun.runIndex ) +'.mp4'