ReadonlyisReadonlytrackReadonlytypeWhen called, waits for all in flight packets to be sent before resolving.
Use this to:
await track.tryPush(/* ... */);
await track.flush();
await track.tryPush(/* ... */);
await track.flush();
// ... etc ...
await track.tryPush(/* ... */);
await track.tryPush(/* ... */);
await track.tryPush(/* ... */);
// ... etc ...
await track.flush();
await track.unpublish();
Try pushing a frame to subscribers of the track.
Pushing a frame can fail for several reasons:
Unpublish the track from the SFU. Once this is called, any further calls to tryPush will fail.
Metrics about the data track publication.