|
|
|
@ -3,6 +3,7 @@ import videojs from 'video.js';
@@ -3,6 +3,7 @@ import videojs from 'video.js';
|
|
|
|
|
|
|
|
|
|
require('video.js/dist/video-js.css'); |
|
|
|
|
|
|
|
|
|
// TODO: Restore volume that was saved in local storage.
|
|
|
|
|
// import { getLocalStorage, setLocalStorage } from '../../utils/helpers.js';
|
|
|
|
|
// import { PLAYER_VOLUME, URL_STREAM } from '../../utils/constants.js';
|
|
|
|
|
|
|
|
|
@ -23,6 +24,8 @@ export function VideoJS(props) {
@@ -23,6 +24,8 @@ export function VideoJS(props) {
|
|
|
|
|
onReady && onReady(player); |
|
|
|
|
})); |
|
|
|
|
|
|
|
|
|
// TODO: Add airplay support, video settings menu, latency compensator, etc.
|
|
|
|
|
|
|
|
|
|
// You can update player in the `else` block here, for example:
|
|
|
|
|
// } else {
|
|
|
|
|
player.autoplay(options.autoplay); |
|
|
|
|