mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix manifest uri in SsDownloadHelper.
This is the same as in SsMediaSource. PiperOrigin-RevId: 225001911
This commit is contained in:
parent
272a5e59f2
commit
8d137c2e61
1 changed files with 3 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ import com.google.android.exoplayer2.source.TrackGroup;
|
||||||
import com.google.android.exoplayer2.source.TrackGroupArray;
|
import com.google.android.exoplayer2.source.TrackGroupArray;
|
||||||
import com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest;
|
import com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest;
|
||||||
import com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifestParser;
|
import com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifestParser;
|
||||||
|
import com.google.android.exoplayer2.source.smoothstreaming.manifest.SsUtil;
|
||||||
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
|
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
|
||||||
import com.google.android.exoplayer2.upstream.DataSource;
|
import com.google.android.exoplayer2.upstream.DataSource;
|
||||||
import com.google.android.exoplayer2.upstream.ParsingLoadable;
|
import com.google.android.exoplayer2.upstream.ParsingLoadable;
|
||||||
|
|
@ -93,7 +94,8 @@ public final class SsDownloadHelper extends DownloadHelper<SsManifest> {
|
||||||
@Override
|
@Override
|
||||||
protected SsManifest loadManifest(Uri uri) throws IOException {
|
protected SsManifest loadManifest(Uri uri) throws IOException {
|
||||||
DataSource dataSource = manifestDataSourceFactory.createDataSource();
|
DataSource dataSource = manifestDataSourceFactory.createDataSource();
|
||||||
return ParsingLoadable.load(dataSource, new SsManifestParser(), uri, C.DATA_TYPE_MANIFEST);
|
Uri fixedUri = SsUtil.fixManifestUri(uri);
|
||||||
|
return ParsingLoadable.load(dataSource, new SsManifestParser(), fixedUri, C.DATA_TYPE_MANIFEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue