Typescript
This commit is contained in:
parent
4f18e9b238
commit
2cfb26d51f
@ -250,8 +250,8 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
|||||||
if (source?.cropEnd) {
|
if (source?.cropEnd) {
|
||||||
shakaPlayerRef.current.configure({playRangeEnd: source?.cropEnd / 1000})
|
shakaPlayerRef.current.configure({playRangeEnd: source?.cropEnd / 1000})
|
||||||
}
|
}
|
||||||
//@ts-ignore
|
|
||||||
setCurrentSource(source);
|
setCurrentSource(source);
|
||||||
|
//@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