Commit a66b4a9b by aquilescanta Committed by Oliver Woodman

Parse ID3 sample timestamp for HLS audio chunks

Pending improvement:

* Peek just the required priv frame. Avoid decoding all id3 information.
* Sniff the used container format instead of using the extension.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=141181781
parent e5bc00ea
...@@ -278,10 +278,9 @@ import java.util.Locale; ...@@ -278,10 +278,9 @@ import java.util.Locale;
DataSpec dataSpec = new DataSpec(chunkUri, segment.byterangeOffset, segment.byterangeLength, DataSpec dataSpec = new DataSpec(chunkUri, segment.byterangeOffset, segment.byterangeLength,
null); null);
out.chunk = new HlsMediaChunk(dataSource, dataSpec, initDataSpec, variants[newVariantIndex], out.chunk = new HlsMediaChunk(dataSource, dataSpec, initDataSpec, variants[newVariantIndex],
trackSelection.getSelectionReason(), trackSelection.getSelectionData(), trackSelection.getSelectionReason(), trackSelection.getSelectionData(), startTimeUs,
startTimeUs, startTimeUs + segment.durationUs, chunkMediaSequence, startTimeUs + segment.durationUs, chunkMediaSequence, segment.discontinuitySequenceNumber,
segment.discontinuitySequenceNumber, isTimestampMaster, timestampAdjuster, previous, isTimestampMaster, timestampAdjuster, previous, encryptionKey, encryptionIv);
encryptionKey, encryptionIv);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment