-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smooth Stream (MSS Parser): Multi-audio track selection bug #3187
Comments
Changing the following line: dash.js/src/mss/parser/MssParser.js Line 120 in 7981d20
To (for e.g.):
resolves the issue as playback continues. |
The Smooth manifest in question (albeit sanitised and trimmed): <?xml version="1.0" encoding="utf-8"?>
<SmoothStreamingMedia MajorVersion="2" MinorVersion="0" Duration="182924666670">
<StreamIndex Type="video" QualityLevels="7" Chunks="9147" Url="QualityLevels({bitrate})/exp=001/Fragments(video={start time})">
<QualityLevel Index="0" Bitrate="345713" FourCC="H264" MaxWidth="512" MaxHeight="288" />
<QualityLevel Index="1" Bitrate="596238" FourCC="H264" MaxWidth="640" MaxHeight="360" />
<QualityLevel Index="2" Bitrate="965860" FourCC="H264" MaxWidth="896" MaxHeight="504" />
<QualityLevel Index="3" Bitrate="1501769" FourCC="H264" MaxWidth="1280" MaxHeight="720" />
<QualityLevel Index="4" Bitrate="3352592" FourCC="H264" MaxWidth="1280" MaxHeight="720" />
<QualityLevel Index="5" Bitrate="4841763" FourCC="H264" MaxWidth="1920" MaxHeight="1080" />
<QualityLevel Index="6" Bitrate="7759345" FourCC="H264" MaxWidth="1920" MaxHeight="1080" />
</StreamIndex>
<StreamIndex Type="audio" QualityLevels="3" Chunks="9147" Language="deu" Url="QualityLevels({bitrate})/exp=001/Fragments(audio={start time})">
<QualityLevel Index="0" Bitrate="64683" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
<QualityLevel Index="1" Bitrate="129910" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
<QualityLevel Index="2" Bitrate="194093" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
</StreamIndex>
<StreamIndex Type="audio" QualityLevels="3" Chunks="9147" Language="rus" Url="QualityLevels({bitrate})/exp=001/Fragments(audio={start time})">
<QualityLevel Index="0" Bitrate="64611" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
<QualityLevel Index="1" Bitrate="129342" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
<QualityLevel Index="2" Bitrate="193358" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
</StreamIndex>
<StreamIndex Type="audio" QualityLevels="3" Chunks="9147" Language="hin" Url="QualityLevels({bitrate})/exp=001/Fragments(audio={start time})">
<QualityLevel Index="0" Bitrate="64585" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
<QualityLevel Index="1" Bitrate="129744" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
<QualityLevel Index="2" Bitrate="194052" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" />
</StreamIndex>
</SmoothStreamingMedia> |
@eowino Can you open a. pull request for your change/fix? |
@dsilhavy Sure can! |
Fixed in #3195 thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description
There seems to be a bug when changing audio tracks for Smooth streams with multiple audio tracks.
When a Smooth stream manifest does not have
Name
attribute on theStreamIndex
element, the internal Id of theAdaptionSet
is set to be theType
.dash.js/src/mss/parser/MssParser.js
Line 120 in 7981d20
In the scenario where the
URL
value for eachStreamIndex
of type audio is identical, when changing audio tracks, I suspect the player is not capable of internally handling this and playback is subsequently disrupted.The Smooth Streaming documentation seem to state that the
Language
attribute is optional.The following players continued playback when executing the steps below:
Steps to reproduce
Observed behaviour
Console output
The text was updated successfully, but these errors were encountered: