Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 930 Bytes

PlayerAudioTrack.md

File metadata and controls

38 lines (25 loc) · 930 Bytes

PlayerAudioTrack class

PlayerAudioTrack Instance Methods

PlayerAudioTrack Instance Methods

PlayerAudioTrack.prototype.id()

Get track id.

Returns

(String): track id


PlayerAudioTrack.prototype.getChannels()

Get audio track channels.

Returns

(Array): array of channel info objects

Example

player.getCurrentAudioTrack().getChannels();
// => [{label: "FrontLeft", muted: false}, {label: "FrontRight", muted: false}]

PlayerAudioTrack.prototype.isMuted()

Returns true if every channel in the track is muted.

Returns

(Boolean): true - every channel is muted, false - otherwise