The RTS logical track's video interface.
virtual Promise< void > millicast::RtsRemoteVideoTrack::enable |
( |
const std::shared_ptr< VideoRenderer > & |
renderer, |
|
|
const Layer & |
layer = {} , |
|
|
bool |
promote = false |
|
) |
| |
|
pure virtual |
Enable and project this RTS track onto its default webrtc track.
If the track is already projected onto the default webrtc track, the old renderer will be reset to the new one, and layer info and priority will be updated according to the new arguemnts.
The RTS track gets unprojected from the default webrtc track when it goes inactive.
- Parameters
-
renderer | the renderer to set for this video track. |
layer | layer information. If the default value is passed, the service will allocate layers automatically depending on bandwidth estimation and the priority |
promote | set this track to be the main video track. The main video track has highest priority for bandwidth assignment when SVC layers are managed by the service. |
- Returns
- asynchronous status.