Replace StatusManager

This commit is contained in:
hensm
2021-04-28 06:21:50 +01:00
parent c1172410f9
commit f44d142631
22 changed files with 295 additions and 286 deletions

View File

@@ -5,7 +5,7 @@ import options from "../../lib/options";
import cast, { ensureInit } from "../../shim/export";
import { Message } from "../../messaging";
import { Receiver } from "../../types";
import { ReceiverDevice } from "../../types";
function startMediaServer(filePath: string, port: number)
@@ -343,7 +343,7 @@ async function registerMediaElementListeners() {
interface InitOptions {
mediaUrl: string;
receiver: Receiver;
receiver: ReceiverDevice;
targetElementId?: number;
}

View File

@@ -4,14 +4,14 @@ import options from "../lib/options";
import cast, { ensureInit } from "../shim/export";
import { ReceiverSelectorMediaType } from "../background/receiverSelector";
import { Receiver } from "../types";
import { ReceiverDevice } from "../types";
// Variables passed from background
const { selectedMedia
, selectedReceiver }
: { selectedMedia: ReceiverSelectorMediaType
, selectedReceiver: Receiver } = (window as any);
, selectedReceiver: ReceiverDevice } = (window as any);
const FX_CAST_RECEIVER_APP_NAMESPACE = "urn:x-cast:fx_cast";