mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-23 15:07:43 +01:00
25 lines
859 B
TypeScript
25 lines
859 B
TypeScript
|
import { BackdropControl } from "./controls/BackdropControl";
|
||
|
import { FullscreenControl } from "./controls/FullscreenControl";
|
||
|
import { LoadingControl } from "./controls/LoadingControl";
|
||
|
import { PauseControl } from "./controls/PauseControl";
|
||
|
import { ProgressControl } from "./controls/ProgressControl";
|
||
|
import { TimeControl } from "./controls/TimeControl";
|
||
|
import { VolumeControl } from "./controls/VolumeControl";
|
||
|
import { VideoPlayer, VideoPlayerProps } from "./VideoPlayer";
|
||
|
|
||
|
export function DecoratedVideoPlayer(props: VideoPlayerProps) {
|
||
|
return (
|
||
|
<VideoPlayer autoPlay={props.autoPlay}>
|
||
|
<BackdropControl>
|
||
|
<PauseControl />
|
||
|
<FullscreenControl />
|
||
|
<ProgressControl />
|
||
|
<VolumeControl />
|
||
|
<LoadingControl />
|
||
|
<TimeControl />
|
||
|
</BackdropControl>
|
||
|
{props.children}
|
||
|
</VideoPlayer>
|
||
|
);
|
||
|
}
|