Class DefaultVideoStreamIndex

[[DefaultVideoStreamIndex]] implements [[VideoStreamIndex]] to facilitate video stream subscription and includes query functions for stream id and attendee id.

Hierarchy (View Summary)

Implements

Constructors

Properties

currentIndex: SdkIndexFrame = null
currentSubscribeAck: SdkSubscribeAckFrame = null
groupIdToAttendeeMap: Map<number, string> = null
indexForLastRemoteVideoUpdate: SdkIndexFrame = null
indexForSubscribe: SdkIndexFrame = null
logger: Logger
streamToAttendeeMap: Map<number, string> = null
streamToExternalUserIdMap: Map<number, string> = null
subscribeSsrcToGroupMap: Map<number, number> = null
subscribeSsrcToStreamMap: Map<number, number> = null
subscribeStreamToAttendeeMap: Map<number, string> = null
subscribeStreamToExternalUserIdMap: Map<number, string> = null
subscribeTrackToStreamMap: Map<string, number> = null

Methods

  • This function caches the currently ingested index frame specifically as a backup for map functions like groupIdForStreamIdso that we can maintain information about previous senders simulcast streams to enable stream switching, e.g. if a sender is transmitting low/hi and switches to just low, receivers need the previously used index to be able to know what group ID the high stream corresponds to.

    Returns void

  • This function caches the currently ingested index frame for subscribe related activities (e.g. mapping tracks).

    The index will also use the stored index as a backup for map functions like groupIdForStreamIdso that we can maintain information about previous senders simulcast streams to enable stream switching, e.g. if a sender is transmitting low/hi and switches to just low, receivers need the previous index to be able to know what group ID the high stream corresponds to.

    Returns void