feat(cast): implement cast on web

This commit is contained in:
2026-07-16 22:59:07 +02:00
parent 0d8b33aee3
commit 31bd0adcef
5 changed files with 30 additions and 0 deletions
+9
View File
@@ -7,6 +7,7 @@ import {
} from "@videojs/react";
import { stateMapper } from "./events.web";
import type {
CastStatus,
OmniPlayer,
PlayerStatus,
Rendition,
@@ -51,6 +52,14 @@ export class WebOmniPlayer implements OmniPlayer {
this._store = store;
}
get castStatus(): CastStatus {
return stateMapper.castStatus.mapper(this._store.state);
}
toggleCastStatus(): void {
this._store.state.toggleRemotePlayback();
}
_source: Source | null = null;
private _showNotification = false;