Open krackjack234 opened 1 year ago
Hi, does anyone has any thoughts about this?
What is the timeShiftBufferDept
of the stream? Do you see three retry attempts for the same segment?
@dsilhavy The timeshift buffer depth is "PT6.0S" Here is the mpd schema that we see
<?xml version="1.0" encoding="utf-8"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:mpeg:dash:schema:mpd:2011"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd"
profiles="urn:mpeg:dash:profile:isoff-live:2011"
type="dynamic"
minimumUpdatePeriod="PT500S"
suggestedPresentationDelay="PT5S"
availabilityStartTime="2023-05-01T15:11:24.236Z"
publishTime="2023-05-01T15:11:44.326Z"
timeShiftBufferDepth="PT6.0S"
maxSegmentDuration="PT1.0S"
minBufferTime="PT1.0S">
<ProgramInformation>
</ProgramInformation>
<ServiceDescription id="0">
</ServiceDescription>
<Period id="0" start="PT0.0S">
<AdaptationSet id="0" contentType="video" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true" maxWidth="1920" maxHeight="1080" par="16:9">
<Resync dT="1000000" type="0"/>
<Representation id="1" mimeType="video/mp4" codecs="avc1.64002a" bandwidth="3000000" width="1920" height="1080" scanType="unknown" sar="1:1">
<ProducerReferenceTime id="1" inband="true" type="captured" wallClockTime="2023-05-01T15:11:24.367Z" presentationTime="0">
<UTCTiming schemeIdUri="urn:mpeg:dash:utc:http-xsdate:2014" value="https://time.akamai.com/?iso"/>
</ProducerReferenceTime>
<Resync dT="1000000" type="1"/>
<SegmentTemplate timescale="1000000" duration="1000000" availabilityTimeOffset="0.983" availabilityTimeComplete="false" initialization="1682953881/init_$RepresentationID$.m4s" media="1682953881/chunk-stream_t_$RepresentationID$-$Number%06d$.m4s" startNumber="1">
</SegmentTemplate>
</Representation>
<Representation id="2" mimeType="video/mp4" codecs="avc1.64002a" bandwidth="5000000" width="1920" height="1080" scanType="unknown" sar="1:1">
<ProducerReferenceTime id="2" inband="true" type="captured" wallClockTime="2023-05-01T15:11:24.375Z" presentationTime="0">
<UTCTiming schemeIdUri="urn:mpeg:dash:utc:http-xsdate:2014" value="https://time.akamai.com/?iso"/>
</ProducerReferenceTime>
<Resync dT="1000000" type="1"/>
<SegmentTemplate timescale="1000000" duration="1000000" availabilityTimeOffset="0.983" availabilityTimeComplete="false" initialization="1682953881/init_$RepresentationID$.m4s" media="1682953881/chunk-stream_t_$RepresentationID$-$Number%06d$.m4s" startNumber="1">
</SegmentTemplate>
</Representation>
<Representation id="3" mimeType="video/mp4" codecs="avc1.640020" bandwidth="1000000" width="1280" height="720" scanType="unknown" sar="1:1">
<ProducerReferenceTime id="3" inband="true" type="captured" wallClockTime="2023-05-01T15:11:24.375Z" presentationTime="0">
<UTCTiming schemeIdUri="urn:mpeg:dash:utc:http-xsdate:2014" value="https://time.akamai.com/?iso"/>
</ProducerReferenceTime>
<Resync dT="1000000" type="1"/>
<SegmentTemplate timescale="1000000" duration="1000000" availabilityTimeOffset="0.983" availabilityTimeComplete="false" initialization="1682953881/init_$RepresentationID$.m4s" media="1682953881/chunk-stream_t_$RepresentationID$-$Number%06d$.m4s" startNumber="1">
</SegmentTemplate>
</Representation>
</AdaptationSet>
<AdaptationSet id="1" contentType="audio" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true">
<Resync dT="1000000" type="0"/>
<Representation id="0" mimeType="audio/mp4" codecs="mp4a.40.2" bandwidth="128000" audioSamplingRate="48000">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2" />
<Resync dT="21333" type="1"/>
<SegmentTemplate timescale="1000000" duration="1000000" availabilityTimeOffset="0.979" availabilityTimeComplete="false" initialization="1682953881/init_$RepresentationID$.m4s" media="1682953881/chunk-stream_t_$RepresentationID$-$Number%06d$.m4s" startNumber="1">
</SegmentTemplate>
</Representation>
</AdaptationSet>
</Period>
<UTCTiming schemeIdUri="urn:mpeg:dash:utc:http-xsdate:2014" value="https://time.akamai.com/?iso"/>
</MPD>
Do you see abandoned segment requests? If so, how many? Adjusting retryAttempts
might help.
hi @dsilhavy Apologies for late reply, we had some issues with the live streaming setup and hence could not test .
Below is a snapshot of the network log when the issue happens
We see that few segments get cancelled and then the init segments gets downloaded but after that nothing happens even when we change the network speed to "No Throttling"
Here are the player logs
:135237 [80570][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000346.m4s
:135237 [80626][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000346.m4s
:135237 [81593][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000347.m4s
:135237 [81608][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000347.m4s
:135237 [82586][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000348.m4s
:135237 [82616][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000348.m4s
:135237 [83597][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000349.m4s
:135237 [83614][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000349.m4s
:135237 [84579][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000350.m4s
:135237 [84593][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000350.m4s
:135237 [85601][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000351.m4s
:135237 [85838][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000351.m4s
:135237 [86611][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000352.m4s
:135237 [86623][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000352.m4s
:135237 [87569][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000353.m4s
:135237 [87604][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000353.m4s
:135237 [88600][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000354.m4s
:135237 [88611][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000354.m4s
:135237 [89833][StreamProcessor][video] Buffer is empty! Stalling!
:135237 [89834][StreamProcessor][audio] Buffer is empty! Stalling!
:146766 onWaiting...........
:135237 [89847][PlaybackController] Native video element event: waiting
:135237 [91582][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000355.m4s
:146690 #####onPlaying#####
:135237 [91585][PlaybackController] Native video element event: playing
:135237 [92534][StreamProcessor][audio] Buffer is empty! Stalling!
:146766 onWaiting...........
:135237 [92598][PlaybackController] Native video element event: waiting
:135237 [93829][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000355.m4s
:135237 [94585][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000356.m4s
:135237 [95434][PlaybackController] Requesting seek to time: 355.27425
:135237 [95439][PlaybackController] Seeking to: 355.27425
:135237 [95442][StreamProcessor][video] onFragmentLoadingAbandoned request: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_3-000356.m4s has been aborted
:146766 onWaiting...........
:135237 [95445][PlaybackController] Native video element event: waiting
:135237 [97486][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/init_0.m4s
:135237 [97487][ScheduleController][audio] [audio] lastInitializedRepresentationInfo changed to 0
:135237 [97941][StreamProcessor][video] OnFragmentLoadingCompleted for stream id 0 and media type video - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/init_3.m4s
:135237 [97942][ScheduleController][video] [video] lastInitializedRepresentationInfo changed to 0
:135237 [99982][StreamProcessor][audio] OnFragmentLoadingCompleted for stream id 0 and media type audio - Url: https://sample.akamaized.net/cmaf/live-ull/2099527/640c3daee4b0868976f9169e/1684242454/chunk-stream_t_0-000357.m4s
We have the below retry configurations
"retryIntervals": {
"MPD": 500,
"XLinkExpansion": 500,
"MediaSegment": 1000,
"InitializationSegment": 1000,
"BitstreamSwitchingSegment": 1000,
"IndexSegment": 1000,
"FragmentInfoSegment": 1000,
"license": 1000,
"other": 1000,
"lowLatencyReductionFactor": 10
},
"retryAttempts": {
"MPD": 3,
"XLinkExpansion": 1,
"MediaSegment": 3,
"InitializationSegment": 3,
"BitstreamSwitchingSegment": 3,
"IndexSegment": 3,
"FragmentInfoSegment": 3,
"license": 3,
"other": 3,
"lowLatencyMultiplyFactor": 5
},
hi @dsilhavy any thoughts on the logs shared above?
Environment
Steps to reproduce
Observed behavior
When we switch the network to low speed, after some time the player stops downloading new segments. Once we switch back to normal speed, the player does not resume playback
Console output
Expected behaviour
The stream should start playing once we switch from low to high network speed.
Streaming Configuration used