mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Fix app and media type detection for non-app triggered receiver selector
This commit is contained in:
@@ -5,10 +5,10 @@ import type { Message } from "../../messaging";
|
||||
|
||||
// Cast types
|
||||
import { Capability, ReceiverAvailability } from "../sdk/enums";
|
||||
import { Media, PlayerState } from "../sdk/media";
|
||||
import type Session from "../sdk/Session";
|
||||
|
||||
import cast, { ensureInit, CastPort } from "../export";
|
||||
import { Media, PlayerState } from "../sdk/media";
|
||||
|
||||
const logger = new Logger("fx_cast [media sender]");
|
||||
|
||||
|
||||
@@ -5,9 +5,10 @@ import { Logger } from "../../lib/logger";
|
||||
|
||||
import { ReceiverDevice, ReceiverSelectorMediaType } from "../../types";
|
||||
|
||||
import type Session from "../sdk/Session";
|
||||
import cast, { ensureInit } from "../export";
|
||||
import type { ReceiverAvailability } from "../sdk/enums";
|
||||
import type Session from "../sdk/Session";
|
||||
|
||||
import cast, { ensureInit } from "../export";
|
||||
|
||||
const logger = new Logger("fx_cast [mirroring sender]");
|
||||
|
||||
@@ -49,7 +50,7 @@ class MirroringSender {
|
||||
|
||||
private async init() {
|
||||
try {
|
||||
ensureInit({
|
||||
await ensureInit({
|
||||
contextTabId: this.contextTabId,
|
||||
receiverDevice: this.receiverDevice
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user