Repository navigation
moq-wasm (Python) 0.1.0
-
Breaking: the
codecsextra (and sopipecat) requiresav>=15, and the
pipecatextra requirespipecat-ai>=1.13,<2. -
Breaking: a request made after the session ended raises what ended it
(SessionClosed,ConnectionLostorTokenExpired, all subclasses of the
newmoq_wasm.SessionEnded) instead ofRuntimeError; catch
SessionEndedwhere you caughtRuntimeErrorfor a closed session.
Session.runandclose()return only once the session's cleanup
finished, and entering oneconnect()result twice at once raises
RuntimeError. -
Breaking: without
refresh_token, the session ends withConnectionLost
when the relay closes it at the token's expiry, instead of reconnecting with
the expired token. With it, the token is refreshed five minutes before
expiry (or halfway through a shorter lifetime) and failed refreshes are
retried. -
Breaking:
moq_wasm.Subscription,GroupandFetchare SDK types
wrapping the native ones. A read while another waits raisesRuntimeError,
and so does reading groups after objects (or the reverse). A read cancelled
by a timeout no longer loses the object it took, and a request cancelled
before it returns undoes what the relay accepted.Subscription.close()
sends UNSUBSCRIBE at once. -
Breaking:
NamespaceWatch.close()is a coroutine that sends
UNSUBSCRIBE_NAMESPACE, so the prefix can be watched again; await it. -
Breaking: a track has one
TrackWriterand a namespace one announcement per
session:publish_trackorannounceraisesRuntimeErroruntil the
earlier one'sclose()finished, andpublish_trackwith another
retention_secondsthan the first registration raisesValueError.
TrackWritertakes the session as its first argument. The new
TrackWriter.close()ends the track's subscriptions with PUBLISH_DONE, and
registered()waits for the registration. -
Breaking:
LocalBroadcastholds its namespace and tracks until it is left:- Entering it raises
RuntimeErrorwhile another announcement or broadcast
of the session publishes the namespace, and after it was left
publish_track,event_timeline,add_media_sourceand its writers
raise. Create a new broadcast instead. - A media broadcast claims its catalog, LOC,
<video>_timeline, CMAF,
chatandaudio-placeholder tracks; give raw tracks other names. - Leaving a block that exited normally raises the namespace refusal unless
it was raised before; leaving ends the subscribers' media and catalog
subscriptions, even when cancelled. LocalBroadcast.publish_tracktakespriority.
- Entering it raises
-
Breaking: media sources check their input:
- Invalid options raise
ValueErrororTypeErrorfrom
add_media_source,add_renditionandconfigure_audio, and
MediaSource.video,MediaSource.audioandRendition.nameare
read-only. - Frames pushed before the relay accepted the namespace are dropped:
await broadcast.published()before pushing.push_video,push_audio
andRendition.push_videoreturn whether the frame was taken. - Once native publishing failed, pushes and configuration raise
RuntimeErrorinstead of logging; rebuild the broadcast. - A second concurrent
keyframe_request()ordemand_change()raises
RuntimeError.
- Invalid options raise
-
Breaking:
RemoteBroadcast.catalogs(),follow()andevent_timeline()
return amoq_wasm.media.Followinginstead of an async generator: a
cancelled read no longer ends the iteration. Read them in
contextlib.aclosing(...);async forkeeps working.
RemoteBroadcast.subscriptions(name, ...)andon_subscribed=are new. -
Breaking:
watch_broadcastsraises what ended the session (SessionEnded)
instead of returning, and cancels and waits for its handlers before it
ends. A republished broadcast's handler starts only after the previous one
finished. -
Breaking:
Catalog.parseraisesValueErrorfor a catalog without a
tracksarray (draft-ietf-moq-msf-02 §5.1.4).Catalog.init_data(track)
returns a track's inline initialization data, andCatalog.fieldsholds
every root field. -
Breaking:
VideoDecoder.decode(payload, location=None)returns a list of
(picture, location)pairs, every picture the object completes in
presentation order, andflush()returns the pictures held back.
decode_picturesreturns aFollowingand yields every picture of each
group (B-frames included):# before picture = decoder.decode(payload) # after for picture, _ in decoder.decode(payload): ...
-
Breaking:
OpusEncoder.encoderaisesValueErrorfor a sample rate that
is not a positiveint(such as16000.0); it now takes a rate that
changes between calls, and empty PCM.VideoEncoder.encodetakesBGRand
BGRAand raisesValueErrorfor another format or a mismatched size. -
Breaking: the chat track's
eventTypeis now
io.skyway.research.moqt.chat.v1(wascom.skyway.chat.v1). Accept both
names to read the chat of publishers on 0.0.1. -
Breaking: pipecat (
MoqWasmTransport):- It raises
ValueErrorforaudio_out_destinations/
video_out_destinations,audio_in_filter,audio_out_channelsor
audio_in_channelsother than 1 or 2,SoundfileMixerwith stereo
output, and a nonpositiveaudio_out_10ms_chunks. Run one transport per
broadcast and oneMoqWasmParticipantInputper filtered participant. - The output encodes Opus at
audio_out_bitrate(pipecat's default
96 kbit/s, formerly a fixed 32 kbit/s; passaudio_out_bitrate=32_000to
keep it) and video atvideo_out_bitrate, and publishes stereo with
audio_out_channels=2. - A room that cannot open fires
on_errorand leaves the input and output
unusable; build thePipelineWorkerwith
processor_unusable_policy=ProcessorUnusablePolicy.CANCEL(orEND). - Each processor serves one pipeline run: build each pipeline from
input()/output()and a newMoqWasmParticipantInput. ParticipantSink.push_pictureandMoqWasmTransport.push_picturereturn
whether the picture was passed on.
- It raises
-
pipecat behavior:
- Speech is written packet by packet at most 100 ms ahead, so an
interruption stops at the next packet, and the end of an utterance is no
longer lost atTTSStoppedFrame,EndFrame,StopFrameor a pause. - Pictures are written synchronized with the audio, and track messages as
they reach the output, in frame order. - A failed media or message write is a non-fatal
ErrorFrame; a failed
participant track is received again with backoff up to 30 s. - An image request no picture answers within 5 s gets
{"error": ...}. MoqWasmTransport.get_client_idreturns the participant id.
- Speech is written packet by packet at most 100 ms ahead, so an
-
moq_wasm.codecs.follow_pictures(remote, name, codec)follows a video track
across its subscriptions, decoding each from the start of the current group
and carrying the Video Config over.VideoDecoderanddecode_pictures
takeconfig=(the LOC Video Config, e.g. an avcC record), decode AV1, and
OpusEncoder/OpusDecodertake a channel count. -
RemoteBroadcast.event_timeline(name, ...)yields the records of an MSF
event timeline track, starting with the group the relay holds, without a
record twice across resubscriptions.Session.subscribe_current_group
takespriority,delivery_timeoutandgroup_order. -
Session.close()waits up to 2 s until the relay has acknowledged the
groups the session finished writing, so a group written just before
closing is no longer lost. -
moq_wasm.connectwaits up to 30 s (was 10 s) for awss://relay or the
WebSocket fallback, fails when no SERVER_SETUP arrives within 30 s, and
logs asession connect failedwarning with the reason. -
A media source with
on_demand=Trueandcmaf=Truereports the demand of
its AAC CMAF track, andMediaSource.demand_change()keeps only each
track's latest unread change. -
retention_secondsis honoured on a track no longer written to, and a
track writer that never callsnext_subscriberno longer holds memory per
SUBSCRIBE. Renditions drop frames up to the next keyframe beyond about 300
queued frames instead of growing memory. -
session.publish_trackwithdatagram=Trueaccepts a track registered
again; without it, a track that sent datagrams raisesValueError. A
refused PUBLISH raisesRequestError. A SUBSCRIBE to a track
remove_trackremoved is refused withTRACK_DOES_NOT_EXIST. -
Telemetry and log delivery no longer stop after one failure, and a NaN or
unserializable field is sent as itsstr. -
The wheel carries the MIT license, the README and the project's URLs.
-
Fixed:
- exiting a
create_broadcastblock right after publishing sometimes
hanging; - a subscriber missing objects of overlapping or cancelled
TrackWriter.writecalls; Subscription.done()not resolving when PUBLISH_DONE arrives right after
SUBSCRIBE_OK;- on CPython 3.14.0 to 3.14.6, finished tasks being kept until the session
ends; - a dropped unfinished group ending with a FIN, so subscribers took it for
complete; - an H.264/H.265 frame without a slice being published;
- media publishing stopping, or CMAF taking another group id than LOC,
when a frame repeated the previous timestamp, and CMAF samples
overlapping by one tick.
- exiting a
-
GOAWAY migration, protocol limits and malformed input: after a GOAWAY a
subscription no longer drops or duplicates a group, and a session closed
during the migration stays closed (#2073, #2074); a request with more than
32 namespace fields, an empty field on draft-18, or a Full Track Name over
4,096 bytes raisesRequestErrorinstead of closing the session (#1740,
#1812); draft-18 request edge cases, NEW_GROUP_REQUEST throttling and Prior
Group ID Gap are handled (#2071, #2072, #2085); and draft-14 parsing edge
cases are handled (#1707, #1738).