publish
Starts encoding and publishing. Suspends until codecs have started, then returns. Subsequent errors are exposed through failure. Queue overflow terminates the stream instead of dropping arbitrary TS packets or retaining unbounded data.
Throws
If disposed, already active, not connected, or the transport is in use.
If no tracks or an unsupported encoder codec is selected.
If codec startup fails; all partially started resources are stopped.