Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultVideoStreamIndex

DefaultVideoStreamIndex 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

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(bitrates: ISdkBitrateFrame): void

integrateIndexFrame

  • integrateIndexFrame(indexFrame: SdkIndexFrame): void

integrateSubscribeAckFrame

  • integrateSubscribeAckFrame(subscribeAck: SdkSubscribeAckFrame): void

integrateUplinkPolicyDecision

  • integrateUplinkPolicyDecision(param: 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