diff --git a/frontend/components/VideoPlayer.tsx b/frontend/components/VideoPlayer.tsx index 786d8d7..b10383a 100644 --- a/frontend/components/VideoPlayer.tsx +++ b/frontend/components/VideoPlayer.tsx @@ -16,13 +16,13 @@ */ import * as React from 'react'; +import { Ratio } from 'react-bootstrap'; import videojs, { VideoJsPlayer, VideoJsPlayerOptions } from 'video.js'; import 'videojs-errors'; // TODO - localization // import 'videojs-errors/dist/lang/de'; // import 'videojs-errors/dist/lang/en'; // import 'videojs-contrib-dash'; -import { ResponsiveEmbed } from 'react-bootstrap'; export default class VideoPlayer extends React.Component<{ onReady?: () => void, @@ -64,44 +64,40 @@ export default class VideoPlayer extends React.Component<{ ...videoJsOptions } = this.props; return ( - - - - {/* eslint-disable-next-line jsx-a11y/media-has-caption */} - { this.videoNode = node; }} - className="video-js" - data-setup={ - JSON.stringify({ - autoplay, - controls, - ...videoJsOptions, - }) - } - controls={controls} - autoPlay={!!(autoplay === 'true' || autoplay === true)} - > - {sources.map( - ({ src, type }) => ( - - ), - )} - - {/* TODO - localize */} - To view this video please enable JavaScript, and consider upgrading to a - web browser that - - supports HTML5 video - - - - - - + + {/* eslint-disable-next-line jsx-a11y/media-has-caption */} + { this.videoNode = node; }} + className="video-js" + data-setup={ + JSON.stringify({ + autoplay, + controls, + ...videoJsOptions, + }) + } + controls={controls} + autoPlay={!!(autoplay === 'true' || autoplay === true)} + > + {sources.map( + ({ src, type }) => ( + + ), + )} + + {/* TODO - localize */} + To view this video please enable JavaScript, and consider upgrading to a + web browser that + + supports HTML5 video + + + + ); } }
- {/* TODO - localize */} - To view this video please enable JavaScript, and consider upgrading to a - web browser that - - supports HTML5 video - -
+ {/* TODO - localize */} + To view this video please enable JavaScript, and consider upgrading to a + web browser that + + supports HTML5 video + +