private void OnPlayBackStarted(global::MediaPortal.Player.g_Player.MediaType type, string filename) { Log.Debug("TvHome: OnPlayBackStarted"); if (PluginMain.Navigator.IsLiveStreamOn) { if (type == g_Player.MediaType.TV || type == g_Player.MediaType.Radio) { // set audio track based on user prefs. g_Player.CurrentAudioStream = HomeBase.GetPreferedAudioStreamIndex(); } else { // Playback of another type has started while live TV was still on, so let's end the live TV stream. PluginMain.Navigator.StopLiveStream(); } } }
private void OnAudioTracksReady() { g_Player.CurrentAudioStream = HomeBase.GetPreferedAudioStreamIndex(); }