lint cleanup

This commit is contained in:
Jason Hunter
2021-06-03 01:14:06 -04:00
committed by Blake Blackshear
parent b53a50cd54
commit dc8ba5239d
2 changed files with 2 additions and 24 deletions

View File

@@ -1,5 +1,4 @@
import { h, Component } from 'preact';
import { useEffect, useRef } from 'preact/hooks';
import videojs from 'video.js';
import 'videojs-playlist';
import 'video.js/dist/video-js.css';
@@ -9,27 +8,6 @@ const defaultOptions = {
fluid: true,
};
// export default function VideoPlayer({ children, options, onReady = () => {} }) {
// const playerRef = useRef(null);
// useEffect(() => {
// if (playerRef.current) {
// const player = videojs(playerRef.current, { ...defaultOptions, ...options }, () => {
// onReady(player);
// });
// return () => {
// player.dispose();
// };
// }
// }, [options, onReady]);
// return (
// <div data-vjs-player>
// <video ref={playerRef} className="video-js vjs-default-skin" controls playsInline />
// {children}
// </div>
// );
// }
export default class VideoPlayer extends Component {
componentDidMount() {
const { options, onReady = () => {} } = this.props;