MillicastSDK 2.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
millicast::RtsRemoteAudioTrack Class Referenceabstract

#include <track.h>

Inheritance diagram for millicast::RtsRemoteAudioTrack:
Inheritance graph
[legend]
Collaboration diagram for millicast::RtsRemoteAudioTrack:
Collaboration graph
[legend]

Public Member Functions

 RtsRemoteAudioTrack ()=default
 
 MC_DISABLE_COPY_AND_ASSIGN (RtsRemoteAudioTrack)
 
virtual Promise< void > enable ()=0
 
virtual Promise< void > set_volume (double volume)=0
 
- Public Member Functions inherited from millicast::RtsRemoteTrack
 RtsRemoteTrack ()=default
 
 MC_DISABLE_COPY_AND_ASSIGN (RtsRemoteTrack)
 
virtual EventConnectionPtr add_event_handler (EventHandler< Active > &&handler)=0
 
virtual EventConnectionPtr add_event_handler (EventHandler< Inactive > &&handler)=0
 
virtual EventConnectionPtr add_event_handler (EventHandler< Layers > &&handler)=0
 
virtual EventConnectionPtr add_event_handler (EventHandler< MidUpdated > &&handler)=0
 
virtual EventConnectionPtr add_event_handler (EventHandler< FrameMetadata > &&handler)=0
 
virtual const std::optional< std::string > & source_id () const =0
 
virtual Kind kind () const =0
 
virtual bool is_active () const =0
 
virtual std::optional< std::string > get_current_mid () const =0
 
virtual Promise< void > disable ()=0
 
virtual RtsRemoteVideoTrackas_video ()=0
 
virtual RtsRemoteAudioTrackas_audio ()=0
 

Additional Inherited Members

- Public Types inherited from millicast::RtsRemoteTrack
using MidUpdated = WebrtcRemoteTrack::MidUpdated
 
using Kind = WebrtcRemoteTrack::Kind
 

Detailed Description

The RTS logical track's audio interface.

Constructor & Destructor Documentation

◆ RtsRemoteAudioTrack()

millicast::RtsRemoteAudioTrack::RtsRemoteAudioTrack ( )
default

Member Function Documentation

◆ enable()

virtual Promise< void > millicast::RtsRemoteAudioTrack::enable ( )
pure virtual

Enable and project this RTS track onto its default webrtc track.

Returns
asynchronous status.

◆ MC_DISABLE_COPY_AND_ASSIGN()

millicast::RtsRemoteAudioTrack::MC_DISABLE_COPY_AND_ASSIGN ( RtsRemoteAudioTrack  )

◆ set_volume()

virtual Promise< void > millicast::RtsRemoteAudioTrack::set_volume ( double  volume)
pure virtual

Set volume

The volume will only be set if projected, and will be reset when unprojected.

Parameters
volumethe volume in range 0.0 ... 1.0
Returns
asynchronous status.

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