ts-ignores
This commit is contained in:
parent
56c129aa4f
commit
a16275b003
@ -6,6 +6,7 @@ import React, {
|
|||||||
useRef,
|
useRef,
|
||||||
type RefObject,
|
type RefObject,
|
||||||
} from 'react';
|
} from 'react';
|
||||||
|
//@ts-ignore
|
||||||
import shaka from 'shaka-player';
|
import shaka from 'shaka-player';
|
||||||
import type {VideoRef, ReactVideoProps, VideoMetadata} from './types';
|
import type {VideoRef, ReactVideoProps, VideoMetadata} from './types';
|
||||||
|
|
||||||
@ -236,6 +237,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
|||||||
shakaPlayerRef.current.unload()
|
shakaPlayerRef.current.unload()
|
||||||
}
|
}
|
||||||
shakaPlayerRef.current = new shaka.Player();
|
shakaPlayerRef.current = new shaka.Player();
|
||||||
|
//@ts-ignore
|
||||||
shakaPlayerRef.current.addEventListener("error", (event) => {
|
shakaPlayerRef.current.addEventListener("error", (event) => {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
const shakaError = event.detail;
|
const shakaError = event.detail;
|
||||||
|
Loading…
Reference in New Issue
Block a user