mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-06 23:28:18 +01:00
19 lines
495 B
TypeScript
19 lines
495 B
TypeScript
import { useEffect } from "react";
|
|
|
|
import { MWStreamType } from "@/backend/helpers/streams";
|
|
import { usePlayer } from "@/components/player/hooks/usePlayer";
|
|
import { PlayerView } from "@/pages/PlayerView";
|
|
|
|
export default function VideoTesterView() {
|
|
const player = usePlayer();
|
|
|
|
useEffect(() => {
|
|
player.playMedia({
|
|
type: MWStreamType.MP4,
|
|
url: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
|
|
});
|
|
});
|
|
|
|
return <PlayerView />;
|
|
}
|