|
|
@ -80,8 +80,14 @@ async function loadVideoPlayer(playlistURL) {
|
|
|
|
if (data.fatal) {
|
|
|
|
if (data.fatal) {
|
|
|
|
switch (data.type) {
|
|
|
|
switch (data.type) {
|
|
|
|
case Hls.ErrorTypes.NETWORK_ERROR:
|
|
|
|
case Hls.ErrorTypes.NETWORK_ERROR:
|
|
|
|
|
|
|
|
if (data.reason === "no level found in manifest") {
|
|
|
|
|
|
|
|
addError(
|
|
|
|
|
|
|
|
"There is no video data between the specified start and end times. Change the times so that there is video content to play."
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
console.log("A fatal network error occurred; retrying", data);
|
|
|
|
console.log("A fatal network error occurred; retrying", data);
|
|
|
|
globalPlayer.startLoad();
|
|
|
|
globalPlayer.startLoad();
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Hls.ErrorTypes.MEDIA_ERROR:
|
|
|
|
case Hls.ErrorTypes.MEDIA_ERROR:
|
|
|
|
console.log("A fatal media error occurred; retrying", data);
|
|
|
|
console.log("A fatal media error occurred; retrying", data);
|
|
|
|