PrivMX Endpoint v2.8.0
Loading...
Searching...
No Matches
privmx::endpoint::stream::OnTrackInterface Class Referenceabstract

#include <stream/webrtc/include_pub/privmx/endpoint/stream/webrtc/OnTrackInterface.hpp>

Public Member Functions

virtual void OnRemoteTrack (Track tack, TrackAction action)=0
virtual void OnData (std::shared_ptr< Data > data)=0

Protected Member Functions

virtual ~OnTrackInterface ()=default

Detailed Description

Interface which delivers the content of the Streams you subscribe to.

Register your implementation with StreamApi::addRemoteStreamListener, either for one remote Stream or for every Stream in the Stream Room. The library calls these methods on its own threads, so keep them short and hand the heavy work over to a thread of your own.

Constructor & Destructor Documentation

◆ ~OnTrackInterface()

virtual privmx::endpoint::stream::OnTrackInterface::~OnTrackInterface ( )
protectedvirtualdefault

//doc-gen:ignore

Member Function Documentation

◆ OnData()

virtual void privmx::endpoint::stream::OnTrackInterface::OnData ( std::shared_ptr< Data > data)
pure virtual

Delivers the content of a remote track.

This method runs for every video frame, every portion of audio, and every message of a data track, so it runs often.

Parameters
datadelivered content, which you cast to VideoData, AudioData, or PlainData after reading its type

◆ OnRemoteTrack()

virtual void privmx::endpoint::stream::OnTrackInterface::OnRemoteTrack ( Track tack,
TrackAction action )
pure virtual

Reports that a remote track arrived or that it is gone.

Parameters
tackthe track which the change concerns
actionchange which happened to the track

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