Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SimulcastVideoStreamIndex

SimulcastTransceiverController implements VideoStreamIndex to facilitate video stream subscription and includes query functions for stream id and attendee id.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected currentIndex

currentIndex: SdkIndexFrame | null = null

Protected currentSubscribeAck

currentSubscribeAck: SdkSubscribeAckFrame | null = null

Protected indexForSubscribe

indexForSubscribe: SdkIndexFrame | null = null

Protected logger

logger: Logger

Protected streamToAttendeeMap

streamToAttendeeMap: Map<number, string> | null = null

Protected streamToExternalUserIdMap

streamToExternalUserIdMap: Map<number, string> | null = null

Protected subscribeSsrcToStreamMap

subscribeSsrcToStreamMap: Map<number, number> | null = null

Protected subscribeStreamToAttendeeMap

subscribeStreamToAttendeeMap: Map<number, string> | null = null

Protected subscribeStreamToExternalUserIdMap

subscribeStreamToExternalUserIdMap: Map<number, string> | null = null

Protected subscribeTrackToStreamMap

subscribeTrackToStreamMap: Map<string, number> | null = null

Static Readonly BitratesMsgFrequencyMs

BitratesMsgFrequencyMs: number = 4000

Static Readonly NOT_SENDING_STREAM_BITRATE

NOT_SENDING_STREAM_BITRATE: 0 = 0

Static Readonly RECENTLY_INACTIVE_STREAM_BITRATE

RECENTLY_INACTIVE_STREAM_BITRATE: -1 = -1

Static Readonly UNSEEN_STREAM_BITRATE

UNSEEN_STREAM_BITRATE: -2 = -2

Methods

StreamIdsInSameGroup

  • StreamIdsInSameGroup(streamId1: number, streamId2: number): boolean

allStreams

allVideoSendingSourcesExcludingSelf

  • allVideoSendingSourcesExcludingSelf(selfAttendeeId: string): VideoSource[]

attendeeIdForStreamId

  • attendeeIdForStreamId(streamId: number): string

attendeeIdForTrack

  • attendeeIdForTrack(trackId: string): string

convertBpsToKbps

  • convertBpsToKbps(avgBitrateBps: number): number

externalUserIdForTrack

  • externalUserIdForTrack(trackId: string): string

groupIdForStreamId

  • groupIdForStreamId(streamId: number): number

highestQualityStreamFromEachGroupExcludingSelf

integrateBitratesFrame

  • integrateBitratesFrame(bitrateFrame: SdkBitrateFrame): void

integrateIndexFrame

  • integrateIndexFrame(indexFrame: SdkIndexFrame): void

integrateSubscribeAckFrame

  • integrateSubscribeAckFrame(subscribeAck: SdkSubscribeAckFrame): void

integrateUplinkPolicyDecision

  • integrateUplinkPolicyDecision(encodingParams: RTCRtpEncodingParameters[]): void

localStreamDescriptions

numberOfParticipants

  • numberOfParticipants(): number

numberOfVideoPublishingParticipantsExcludingSelf

  • numberOfVideoPublishingParticipantsExcludingSelf(selfAttendeeId: string): number

remoteStreamDescriptions

streamIdForSSRC

  • streamIdForSSRC(ssrcId: number): number

streamIdForTrack

  • streamIdForTrack(trackId: string): number

streamSelectionUnderBandwidthConstraint

  • streamSelectionUnderBandwidthConstraint(selfAttendeeId: string, largeTileAttendeeIds: Set<string>, smallTileAttendeeIds: Set<string>, bandwidthKbps: number): DefaultVideoStreamIdSet

streamsPausedAtSource

subscribeFrameSent

  • subscribeFrameSent(): void

Generated using TypeDoc