MediaStream

The MediaStream model contains information about media streams.

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


hashCode

hashCode(): int

Gets the hash code of the media stream.

Returns: int - list of video tracks ids