2020 API AWARDS WINNER - BEST IN MEDIA APIs LEARN MORE

MediaStream

The MediaStream model retrieves lists od audio and video tracks. It also gets labels and types of MediaStream, and the peer ID.

Available in the package com.voxeet.android.media.MediaStream.

Methods

audioTracks

audioTracks(): List<AudioTrack>

Retrieves the hard list of AudioTracks.

Returns: @NonNull List<AudioTrack> - the list of audio tracks

videoTracks

videoTracks(): List<VideoTrack>

Retrieves the hard list of VideoTracks.

Returns: @NonNull List<VideoTrack> - the list of video tracks

peerId

peerId(): String

Gets the peer identifier.

Returns: String - a valid string

label

label(): String

Gets the MediaStream label.

Returns: String - the label written

label

label(@NonNull label: String): void

Sets the MediaStream label. This method is designed only for the internal use.

Parameters

NameTypeDescription
labelStringnon null the new label of this MediaStream

getType

getType(): MediaStreamType

Gets the current MediaStream type representation.

Returns: @NonNull MediaStreamType - a valid enum value

equals

equals(@Nullable obj: Object): boolean

Parameters

NameTypeDescription
objObjectnullable

Returns: boolean