Missing playlist failover

What happens when an entire playlist is missing, such as when the m3u8 file referenced by a top- level manifest file fails to download. If the playlist associated with the middle-resolution bit rate is missing, the AVE searches for a variant playlist at the same resolution.

If the high-resolution playlist is missing, the AVE switches to a variant playlist for the same high resolution and starts downloading segments from there.

If the missing playlist still cannot be found, the AVE cycles through all variants and bit rates to attempt to find a valid playlist. If none is found, the process fails and the PSDK moves into the ERROR state. Your application can choose how to handle this. The PSDK demo application handles this situation by closing the player activity and directing the user to the catalog activity. (See the PlayerFragment.java file; the MediaPlayer.PlaybackEventListener class implements callbacks that are attached to various events. The event of interest here is the STATE_CHANGED event, whose corresponding callback is the onStateChanged method. The code monitors whether the player changes its internal state to ERROR.)

case ERROR:
PMPDemoApp.logger.e(LOG_TAG + "::MediaPlayer.PlayerStateEventListener#onStateChanged()", "Error: " + notification + ".");
getActivity().finish(); // this is where we close the current activity (the Player activity)
break;