Handle media playback end