movie-web/src/pages/developer/VideoTesterView.tsx

19 lines
495 B
TypeScript
Raw Normal View History

2023-07-23 16:30:22 +02:00
import { useEffect } from "react";
import { MWStreamType } from "@/backend/helpers/streams";
import { usePlayer } from "@/components/player/hooks/usePlayer";
import { PlayerView } from "@/views/PlayerView";
2023-02-22 19:02:23 +01:00
2023-03-26 09:41:39 +02:00
export default function VideoTesterView() {
2023-07-23 16:30:22 +02:00
const player = usePlayer();
useEffect(() => {
player.playMedia({
type: MWStreamType.MP4,
url: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
});
});
return <PlayerView />;
2023-02-22 19:02:23 +01:00
}