MillicastSDK 2.0.0
Loading...
Searching...
No Matches
Instance Methods | List of all members
MCAudioTrack Class Reference

Manages and plays a single audio resource. More...

#import <track.h>

Inheritance diagram for MCAudioTrack:
Inheritance graph
[legend]
Collaboration diagram for MCAudioTrack:
Collaboration graph
[legend]

Instance Methods

(void) - addRenderer:
 
(void) - removeRenderer:
 
(void) - setVolume:
 
- Instance Methods inherited from MCTrack
(NSString *) - getId
 
(NSString *) - kind
 
(BOOL) - isEnabled
 
(void) - enable:
 
 cpp_track
 
 source
 
 initWithCppTrack:
 
 initWithSource:cppTrack:
 

Detailed Description

Manages and plays a single audio resource.

Method Documentation

◆ addRenderer:

- (void) addRenderer: (id< MCAudioRenderer >)  renderer

Adds an audio renderer to render this track. Several renderers can be added to the track. Each one will be called when a new frame becomes available.

  • Parameters:
    • renderer: The audio renderer to add.

◆ removeRenderer:

- (void) removeRenderer: (id< MCAudioRenderer >)  renderer

Removes a renderer from the list.

  • Parameters:
    • renderer: The renderer to remove.

◆ setVolume:

- (void) setVolume: (double)  volume

Sets the volume of the remote audio track.

  • Parameters:
    • volume: The volume level between 0 (mute) and 1 (full volume).

The documentation for this class was generated from the following file: