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>
)
}
}