mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Assume TS when the HLS segment URI has no path
Issue:#4033 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190603518
This commit is contained in:
parent
6d9201e8db
commit
50457d9110
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ public final class DefaultHlsExtractorFactory implements HlsExtractorFactory {
|
||||||
Format format, List<Format> muxedCaptionFormats, DrmInitData drmInitData,
|
Format format, List<Format> muxedCaptionFormats, DrmInitData drmInitData,
|
||||||
TimestampAdjuster timestampAdjuster) {
|
TimestampAdjuster timestampAdjuster) {
|
||||||
String lastPathSegment = uri.getLastPathSegment();
|
String lastPathSegment = uri.getLastPathSegment();
|
||||||
|
if (lastPathSegment == null) {
|
||||||
|
lastPathSegment = "";
|
||||||
|
}
|
||||||
boolean isPackedAudioExtractor = false;
|
boolean isPackedAudioExtractor = false;
|
||||||
Extractor extractor;
|
Extractor extractor;
|
||||||
if (MimeTypes.TEXT_VTT.equals(format.sampleMimeType)
|
if (MimeTypes.TEXT_VTT.equals(format.sampleMimeType)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue