Type Alias: PublisherState
PublisherState =
"idle"|"ready"|"publishing"|"closed"
Represent the state of the Publisher instance.
- "idle": No tracks added, not connected. Can add tracks or prepare.
- "ready": Tracks added and producer started, but not connected. Can publish or add tracks.
- "publishing": Connected and publishing. Can unpublish.
- "closed": Terminal state after close() is called or a fatal error occurs. Cannot be reused.