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";
|
2023-07-23 15:00:08 +02:00
|
|
|
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",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2023-07-23 15:00:08 +02:00
|
|
|
return <PlayerView />;
|
2023-02-22 19:02:23 +01:00
|
|
|
}
|