Skip to content

SendAlexaOfferToMaster

Source: src/AWS/KinesisVideo/SendAlexaOfferToMaster.ts

Runtime binding for kinesisvideo:SendAlexaOfferToMaster (WebRTC signaling data plane).

Bind this operation to a SignalingChannel inside a function runtime to get a callable that resolves the per-channel HTTPS signaling endpoint (GetSignalingChannelEndpoint) and delivers a base64-encoded SDP offer from an Alexa display device to the connected master peer, returning the master’s SDP answer.

If no master is connected the service holds the offer for redelivery until the message TTL expires — bound the call with a timeout when the master may be offline.

// init
const sendOffer = yield* AWS.KinesisVideo.SendAlexaOfferToMaster(channel);
// runtime
const { Answer } = yield* sendOffer({
SenderClientId: "alexa-device-1",
MessagePayload: base64SdpOffer,
});