Creates a new SubscribePublication instance.
The MOQT client managing the subscription.
The track being published.
The subscribe message containing subscription details.
Optional
largestLocation: LocationThe largest location seen so far, used for determining start location.
The latest location that was published to the subscriber.
Readonly
trackThe track being published.
Cancels the publication and cleans up resources. Removes the publication from the client's publication map.
Marks the publication as done and sends a SubscribeDone message to the client.
The status code indicating why the subscription ended.
:InternalError If sending the message fails.
Publishes MOQT objects to the subscriber as they become available. Handles stream creation, object writing, and stream closure based on subscription parameters.
:InternalError If the track does not support live content.
Updates the subscription parameters and locations based on a SubscribeUpdate message.
The update message containing new subscription details.
Manages the publication of MOQT objects to a subscriber for a specific track. Handles live object streaming, subscription lifecycle, and stream management.