mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
format
This commit is contained in:
parent
8c78cec211
commit
cfe821d9a8
1 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue