1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00
This commit is contained in:
James Hawkins 2021-07-20 18:28:21 +01:00
parent 8c78cec211
commit cfe821d9a8

View file

@ -1,8 +1,9 @@
import React from 'react'
import Hls from 'hls.js'
import './VideoElement.css'
import { VideoPlaceholder } from './VideoPlaceholder'
import './VideoElement.css'
// streamUrl: string
// loading: boolean
export function VideoElement({ streamUrl, loading, setProgress }) {
@ -44,7 +45,9 @@ export function VideoElement({ streamUrl, loading, setProgress }) {
)
} else {
return (
<video className="videoElement" ref={videoRef} controls autoPlay onProgress={setProgress}><source src={streamUrl} type="video/mp4" /></video>
<video className="videoElement" ref={videoRef} controls autoPlay onProgress={setProgress}>
<source src={streamUrl} type="video/mp4" />
</video>
)
}
}