mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix a minor bug in SsMediaSource.
When SsMediaSource loads Manifest, it dispatches loadCompleted event even when the load is cancelled. This change makes sure SsMediaSource dispatch loadCancelled event instead. GitHub: #3754 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=183241940
This commit is contained in:
parent
f402a84dfa
commit
3d320e9506
1 changed files with 6 additions and 2 deletions
|
|
@ -485,8 +485,12 @@ public final class SsMediaSource implements MediaSource,
|
|||
@Override
|
||||
public void onLoadCanceled(ParsingLoadable<SsManifest> loadable, long elapsedRealtimeMs,
|
||||
long loadDurationMs, boolean released) {
|
||||
eventDispatcher.loadCompleted(loadable.dataSpec, loadable.type, elapsedRealtimeMs,
|
||||
loadDurationMs, loadable.bytesLoaded());
|
||||
eventDispatcher.loadCanceled(
|
||||
loadable.dataSpec,
|
||||
loadable.type,
|
||||
elapsedRealtimeMs,
|
||||
loadDurationMs,
|
||||
loadable.bytesLoaded());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue