Repository navigation
moq-wasm (JS) 0.6.0
-
Breaking: the video, each rendition and the audio of a source are encoded
and sent only while a subscriber takes them, sostats()reports 0 for a
track nobody watches. A track taken up again starts with a keyframe. Deploy
a relay that turns on a track published in Forward State 0 before upgrading
the SDK; with an older relay no video or audio is sent. -
Breaking:
MoqSubscription.endBeforeGroup(groupId)no longer takes the
Forward State, which the subscription now keeps. Drop the second argument:// before await subscription.endBeforeGroup(groupId, forward) // after await subscription.endBeforeGroup(groupId)
-
LivePlayer.setVideoPriority(priority)sets the Subscriber Priority of the
video a player receives: on a congested downlink the relay sends the video
of a lower value first. It is an integer from 0 to 255, 128 by default; the
audio stays at 0, ahead of every video. ASourceViewsets it through
view.player.remote.listen({ onSourceAdd: (view) => { if (view.name === 'screen') view.player.setVideoPriority(64) } })
-
MoqSubscription.setPriority(priority)changes the Subscriber Priority of
a subscription, andMoqSession.subscribeGroupStart()takes one as its
fourth argument. -
addSourcetakesencoding.latencyMode('realtime'by default), which
applies to the video and its renditions.'quality'can be set again, for
example for text on a shared screen. -
LivePlayerOptions.latencyToleranceandLivePlayer.setLatencyTolerance()
set how much the live video may fall behind before the automatic quality
steps down:'low'(400 ms, the default),'high'(2 s), or milliseconds.
ASourceViewsets it throughview.player.remote.listen({ onSourceAdd: (view) => { if (view.name === 'screen') view.player.setLatencyTolerance('high') } })
-
The
adaptive quality:log names the reason of the switch (height,
raise,congestedorcalm) with the picture height, lag and throughput
it was decided on. -
The automatic quality no longer steps down while a picture stands still. A
shared screen sends no frames while the screen does not change, and each
pause dropped it to its lowest rendition, where it stayed until the screen
kept moving for 10 s. -
A source with renditions keeps publishing when its video and audio start
within a few frames of each other. Its video and audio could stop with
media publishing stopped: group ... precedes the next group ...while the
renditions kept flowing. -
LivePlayerlogs at debug instead of warning that the catalog codec
changed after the decoder started, when it switches to a rendition whose
codec string differs only in its level, such asavc1.64001Eand
avc1.64000B. -
LivePlayerandRemoteBroadcaststart a live broadcast with audio as soon
as the audio output reports its latency. Playback waited 400 ms before it
presented anything. A picture without audio, and a browser without
AudioContext.outputLatency, still wait 400 ms. -
Under
Auto,LivePlayerwaits for its container to have a height before
it subscribes to the video, and starts on the rendition that fits it. A
player of aRemoteBroadcastsource started on the top rendition and
switched down about 80 ms later, so the first picture waited for a keyframe
of the top rendition. A container that never gets a height, such as one the
page never places, subscribes to no video.