support multiple #EXT-X-MAP tags #4164
Closed
+19
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm trying to play HLS + fmp4 contents, and it didn't work when the HLS playlist has multiple contents separated by
#EXT-X-DISCONTINUITY
.It looks like
HlsPlaylistParser.java
captures the only one initialSegment the parser found at last eventually, but I think there is a situation where multiple init files exist separated by#EXT-X-DISCONTINUITY
.According to the spec, it says
what shown below is what i tested for this pr.
content description
this HLS url is available and it can be reproduced, this is what I prepared.
playlist.m3u8
how I made each content.
the first content (widevine) using shaka-packager
i used test widevine test credential (https://google.github.io/shaka-packager/html/tutorials/widevine.html#widevine-test-credential)
packager \ 'in=input1.mp4,stream=video,init_segment=video1/init.mp4,segment_template=video1/$Number$.m4s,playlist_name=video.m3u8' \ --hls_master_playlist_output playlist2.m3u8 \ --enable_widevine_encryption \ --key_server_url https://license.uat.widevine.com/cenc/getcontentkey/widevine_test \ --content_id 7465737420636f6e74656e74206964 \ --signer widevine_test \ --aes_signing_key 1ae8ccd0e7985cc0b6203a55855a1034afc252980e970ca90e5202689f947ab9 \ --aes_signing_iv d58ce954203b7c9a9a9d467f59839249 \ --protection_scheme cenc
the second content (aes-128) using ffmpeg