Add MSF (MOQT Streaming Format) catalog support#993
Draft
Conversation
Whenever a hang catalog.json track is published, an msf.json track is now published alongside it containing the equivalent MSF-format catalog. The conversion lives in a single place (hang::catalog::msf::MsfCatalog) so both formats stay in sync automatically. Changes: - New rs/hang/src/catalog/msf.rs with MsfCatalog/MsfTrack types and From<&Catalog> conversion - CatalogProducer now owns an msf_track and CatalogGuard publishes both formats on drop - All publish call-sites (moq-cli, libmoq, video example) insert the msf_track into the broadcast - Added base64 dependency for initData encoding https://claude.ai/code/session_01G5w463kcSQrXJ3XMZchLL3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for the MSF (MOQT Streaming Format) catalog format as defined in draft-ietf-moq-msf-00. An MSF catalog track (
msf.json) is now published alongside the native hang catalog (catalog.json), allowing the same media configuration to be described in both formats.Key Changes
New MSF catalog module (
rs/hang/src/catalog/msf.rs):MsfCatalogandMsfTracktypes with proper serialization/deserializationCatalogtoMsfCatalogviaFromtraitUpdated catalog producer (
rs/hang/src/catalog/producer.rs):CatalogProducernow manages both hang and MSF catalog tracksCatalogGuardpublishes both catalogs on drop when mutations occurUpdated catalog root (
rs/hang/src/catalog/root.rs):DEFAULT_MSF_NAMEconstant anddefault_msf_track()method for MSF track definitionUpdated examples and CLI:
video.rsexample now inserts both catalog tracks into the broadcastmoq-clipublish command inserts both catalog trackslibmoqpublish implementation updated to handle MSF trackDependencies:
base64 = "0.22"for encoding initialization dataImplementation Details
https://claude.ai/code/session_01G5w463kcSQrXJ3XMZchLL3