1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-01 16:37:39 +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 React from 'react'
import Hls from 'hls.js' import Hls from 'hls.js'
import './VideoElement.css'
import { VideoPlaceholder } from './VideoPlaceholder' import { VideoPlaceholder } from './VideoPlaceholder'
import './VideoElement.css'
// streamUrl: string // streamUrl: string
// loading: boolean // loading: boolean
export function VideoElement({ streamUrl, loading, setProgress }) { export function VideoElement({ streamUrl, loading, setProgress }) {
@ -44,7 +45,9 @@ export function VideoElement({ streamUrl, loading, setProgress }) {
) )
} else { } else {
return ( 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>
) )
} }
} }