mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Fix cast receiver action listeners not being called
This commit is contained in:
@@ -688,6 +688,14 @@ async function handleContentMessage(instance: CastInstance, message: Message) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
instance.contentPort.postMessage({
|
||||||
|
subject: "cast:receiverAction",
|
||||||
|
data: {
|
||||||
|
receiver: createReceiver(selection.device),
|
||||||
|
action: ReceiverAction.CAST
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const session = await createCastSession({
|
const session = await createCastSession({
|
||||||
instance,
|
instance,
|
||||||
deviceId: selection.device.id,
|
deviceId: selection.device.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user