mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-10 23:55:05 +01:00
format
This commit is contained in:
parent
8c78cec211
commit
cfe821d9a8
@ -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 New Issue
Block a user