tryPush

open override fun tryPush(frame: DataTrackFrame): Result<Unit>

Pushes a frame to subscribers.

Non-blocking. Fails with DataTrackPushFrameException.TrackUnpublished if the track was unpublished by the local participant or the SFU, or if the room is no longer connected; DataTrackPushFrameException.QueueFull if frames are being pushed faster than they can be sent, which hands the rejected frame back on the exception.

Return

A successful Result if the frame was enqueued, or a failure containing DataTrackPushFrameException.