Remote Data Track
class RemoteDataTrack
A data track published by a remote participant.
Call subscribe to start receiving frames.
remoteTrack.subscribe().onSuccess { stream ->
stream.flow.collect { frame -> process(frame.payload) }
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
suspend fun subscribe(@IntRange(from = 1 ) bufferSize: Int = DEFAULT_BUFFER_SIZE): Result<DataTrackStream>
Subscribes to the track and returns a DataTrackStream of incoming frames.
Link copied to clipboard
Waits until the track is unpublished, by either the publisher or the SFU.