Skip to content

moq-wasm (Rust) 0.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 09:24
· 56 commits to master since this release
afd040c
  • Breaking: moqt::Subscription has a new end: SubscriptionEnd field; code
    building it with a struct literal adds end: SubscriptionEnd::default().

  • Breaking: Subscriber::subscribe_update and
    moqt::subscribe::SubscribeUpdateOption are removed; use
    Subscription::set_priority or end_before_group.

  • Breaking: an object of a track with Retention::For(duration) expires once
    its age reaches duration, also when the track is no longer written to, so
    Retention::For(Duration::ZERO) caches nothing; use Retention::NewestOnly
    to keep the newest object.

  • moq_wasm::robotics runs a robot room: run_robot(session, broadcast, config) runs the Robot of the <room>/robot broadcast, and
    offer_actions(broadcast) returns a Driver that sends action chunks
    from an operator or policy broadcast. Robot, Driver, Command,
    HoldReason, ArbiterConfig, State and decode_object are re-exported.

  • New on the session (moqt::client::Session):

    • follow_track(namespace, track) returns a TrackFollower that follows a
      track across the publishers that serve it.
    • watch_tracks(prefix) returns a TrackWatch of the namespaces and
      PUBLISH requests one SUBSCRIBE_NAMESPACE brings; TrackWatch::next
      returns None once the session ends.
    • PublishTrackOptions::priority sets a track's Publisher Priority
      (default 128).
    • moqt_session().publishes_namespace(namespace) tells whether the session
      publishes a namespace, and Publisher::begin_publish_subscribed_namespace
      sends a namespace only on the peer's SUBSCRIBE_NAMESPACE.
  • moq_wasm::connect fails when the relay accepts the connection but sends no
    SERVER_SETUP within 30 s, instead of waiting forever.

  • moq_wasm::media::Catalog::parse returns CatalogParseError::Malformed for
    a catalog without a tracks array (draft-ietf-moq-msf-02 §5.1.4), and the
    media timeline lists each group's capture time in Unix milliseconds, the
    LOC Timestamp's clock (§7.1.1).

  • A SUBSCRIBE to a track MediaSource::remove_track removed gets
    TRACK_DOES_NOT_EXIST until the track is published again; FETCH still
    returns its cached objects.

  • Memory no longer grows without bound: Rendition::push_video drops frames
    up to the next keyframe beyond about 300 queued frames (and
    MediaSource::keyframe_request resolves), MediaSource::demand_change
    takes &self and keeps only each track's latest unread change, and a
    TrackWriter that never calls next_subscriber no longer holds memory per
    SUBSCRIBE.

  • Fixed:

    • Subscription::done not resolving when PUBLISH_DONE arrives right after
      SUBSCRIBE_OK;
    • on draft-18, a PUBLISH the peer accepted and at once unsubscribed failing
      with "request stream reset";
    • answering a request handler twice sending both answers;
    • follow_track resubscribing to a publisher that withdrew its namespace.
  • GOAWAY migration and protocol details: after a GOAWAY a subscription no
    longer drops or duplicates a group, and a session closed during the
    migration stays closed (#2073, #2074); NEW_GROUP_REQUEST throttling and
    Prior Group ID Gap are sent correctly (#2071, #2072).