Fix incorrect device ID being set in Receiver API object

This commit is contained in:
hensm
2022-04-16 05:34:32 +01:00
parent 69ce675e0d
commit 2001a9481b
4 changed files with 24 additions and 21 deletions

View File

@@ -5,10 +5,7 @@ import logger from "../../lib/logger";
import { ReceiverDevice } from "../../types";
import { ErrorCallback, SuccessCallback } from "../types";
import {
onMessage,
sendMessageResponse
} from "../eventMessageChannel";
import { onMessage, sendMessageResponse } from "../eventMessageChannel";
import {
AutoJoinPolicy,
@@ -262,7 +259,7 @@ onMessage(message => {
// TODO: Implement persistent per-origin receiver IDs
const receiver = new Receiver(
status.receiverFriendlyName, // label
status.receiverId, // label
status.receiverFriendlyName, // friendlyName
[Capability.VIDEO_OUT, Capability.AUDIO_OUT], // capabilities
status.volume // volume

View File

@@ -60,6 +60,7 @@ export interface CastSessionCreatedDetails extends CastSessionUpdatedDetails {
appId: string;
appImages: Image[];
displayName: string;
receiverId: string;
receiverFriendlyName: string;
senderApps: SenderApplication[];
transportId: string;