Skip to content

Commit

Permalink
Remove videojs and use plain video element (#3697)
Browse files Browse the repository at this point in the history
* Remove videojs and use plaing video element.

* moar removal
  • Loading branch information
soulgalore authored Jul 14, 2022
1 parent 27b0b18 commit 7bc49df
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 1,823 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/html/assets/css/index.min.css

Large diffs are not rendered by default.

Binary file removed lib/plugins/html/assets/font/VideoJS.eot
Binary file not shown.
108 changes: 0 additions & 108 deletions lib/plugins/html/assets/font/VideoJS.svg

This file was deleted.

Binary file removed lib/plugins/html/assets/font/VideoJS.ttf
Binary file not shown.
Binary file removed lib/plugins/html/assets/font/VideoJS.woff
Binary file not shown.
19 changes: 0 additions & 19 deletions lib/plugins/html/assets/js/video.core.novtt.min.js

This file was deleted.

1,663 changes: 0 additions & 1,663 deletions lib/plugins/html/src/sass/components/video.scss

This file was deleted.

24 changes: 0 additions & 24 deletions lib/plugins/html/src/sass/components/videoExtras.scss

This file was deleted.

2 changes: 0 additions & 2 deletions lib/plugins/html/src/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
@import 'components/screenshot';
@import 'components/tabs';
@import 'components/groupitem';
@import 'components/video';
@import 'components/videoExtras';
@import 'components/loader';
@import 'components/chartist';
@import 'components/chartist-plugin-tooltip';
Expand Down
9 changes: 3 additions & 6 deletions lib/plugins/html/templates/url/video/index.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- const videoIndex = medianRun ? medianRun.runIndex : iteration;
- const width = options.mobile || options.android || (options.safari && options.safari.useSimulator) ? 'max-width: 400px; margin: 0 auto;' : 'max-width: 800px; margin: 0 auto;'
- const width = options.mobile || options.android || (options.safari && options.safari.useSimulator) ? '400' : '800'

small
||
Expand All @@ -9,13 +9,10 @@ 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}')
.videoWrapper
video(controls, preload='none', width=width)
source(src='data/video/' + videoIndex +'.mp4', type='video/mp4')

script(src= assetsPath + 'js/video.core.novtt.min.js')

a#download-video
- const videoPath = 'data/video/' + (iteration ? iteration : medianRun.runIndex ) +'.mp4'
a.button.button-download(href=videoPath, download=downloadName + '-video.mp4') Download video

0 comments on commit 7bc49df

Please sign in to comment.