diff --git a/player/react/default-layout/src/player.tsx b/player/react/default-layout/src/player.tsx index 53f8ca3..401e2b1 100644 --- a/player/react/default-layout/src/player.tsx +++ b/player/react/default-layout/src/player.tsx @@ -64,6 +64,9 @@ export function Player() { case 'hls': setSrc(`https://stream.mux.com/${muxPlaybackId}.m3u8`); break; + case 'youtube': + setSrc('youtube/_cMxraX_5RE'); + break; } } @@ -102,6 +105,7 @@ export function Player() { + ); diff --git a/player/react/default-theme/src/player.tsx b/player/react/default-theme/src/player.tsx index 01caeeb..7a2d1da 100644 --- a/player/react/default-theme/src/player.tsx +++ b/player/react/default-theme/src/player.tsx @@ -65,6 +65,9 @@ export function Player() { case 'hls': setSrc(`https://stream.mux.com/${muxPlaybackId}.m3u8`); break; + case 'youtube': + setSrc('youtube/_cMxraX_5RE'); + break; } } @@ -105,6 +108,7 @@ export function Player() { + ); diff --git a/player/solid/default-layout/src/player.tsx b/player/solid/default-layout/src/player.tsx index 99d7475..119d19d 100644 --- a/player/solid/default-layout/src/player.tsx +++ b/player/solid/default-layout/src/player.tsx @@ -69,6 +69,9 @@ export function Player() { case 'hls': setSrc(`https://stream.mux.com/${muxPlaybackId}.m3u8`); break; + case 'youtube': + setSrc('youtube/_cMxraX_5RE'); + break; } } @@ -100,6 +103,7 @@ export function Player() { + ); diff --git a/player/solid/default-theme/src/player.tsx b/player/solid/default-theme/src/player.tsx index c931e63..55b5997 100644 --- a/player/solid/default-theme/src/player.tsx +++ b/player/solid/default-theme/src/player.tsx @@ -77,6 +77,9 @@ export function Player() { case 'hls': setSrc(`https://stream.mux.com/${muxPlaybackId}.m3u8`); break; + case 'youtube': + setSrc('youtube/_cMxraX_5RE'); + break; } } @@ -115,6 +118,7 @@ export function Player() { + ); diff --git a/player/svelte/default-layout/src/Player.svelte b/player/svelte/default-layout/src/Player.svelte index eebad0a..9258e5b 100644 --- a/player/svelte/default-layout/src/Player.svelte +++ b/player/svelte/default-layout/src/Player.svelte @@ -66,6 +66,9 @@ case 'hls': src = `https://stream.mux.com/${muxPlaybackId}.m3u8`; break; + case 'youtube': + src = 'youtube/_cMxraX_5RE'; + break; } } @@ -98,6 +101,7 @@ +