mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Notify eventDispatcher.loadError when wrong kind of playlist is loaded
PiperOrigin-RevId: 309390501
This commit is contained in:
parent
eb7c14704f
commit
192b6832b6
1 changed files with 2 additions and 0 deletions
|
|
@ -545,6 +545,8 @@ public final class DefaultHlsPlaylistTracker
|
|||
eventDispatcher.loadCompleted(loadEventInfo, C.DATA_TYPE_MANIFEST);
|
||||
} else {
|
||||
playlistError = new ParserException("Loaded playlist has unexpected type.");
|
||||
eventDispatcher.loadError(
|
||||
loadEventInfo, C.DATA_TYPE_MANIFEST, playlistError, /* wasCanceled= */ true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue