feat(chromecast): send custom message for overlay subtitles

This commit is contained in:
2026-07-21 19:28:36 +02:00
parent e6a06b13a4
commit a335509b4e
15 changed files with 366 additions and 241 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ function PlayerExample({
useEffect(() => {
refreshTracks();
}, [refreshTracks, trackLabel]);
}, [refreshTracks]);
const pushLog = useCallback((message: string) => {
setLogs((prev) => {
@@ -194,7 +194,7 @@ function PlayerExample({
const cyclePlaybackRate = () => {
const rates = [0.75, 1, 1.25, 1.5, 2];
const index = rates.findIndex((rate) => rate === playbackRate);
const index = rates.indexOf(playbackRate);
const nextIndex = (index + 1) % rates.length;
player.playbackRate = rates[nextIndex];
};