mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
Update dash chunk source to handle in-progressive recording dash stream.
Using calculated segments timeline duration to compare with period duration to update whether period has reach it the end of stream.
This commit is contained in:
parent
670658f3ae
commit
fb847cad66
1 changed files with 4 additions and 0 deletions
|
|
@ -420,6 +420,10 @@ public class DefaultDashChunkSource implements DashChunkSource {
|
|||
|
||||
long firstAvailableSegmentNum = representationHolder.getFirstAvailableSegmentNum(nowUnixTimeUs);
|
||||
long lastAvailableSegmentNum = representationHolder.getLastAvailableSegmentNum(nowUnixTimeUs);
|
||||
if(manifest.dynamic) {
|
||||
long lastAvailableSegmentEndTimeUs = representationHolder.getSegmentEndTimeUs(lastAvailableSegmentNum);
|
||||
periodEnded &= (lastAvailableSegmentEndTimeUs >= periodDurationUs);
|
||||
}
|
||||
long segmentNum =
|
||||
getSegmentNum(
|
||||
representationHolder,
|
||||
|
|
|
|||
Loading…
Reference in a new issue