예제 #1
0
 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();
         }
     }
 }
예제 #2
0
 private void OnAudioTracksReady()
 {
     g_Player.CurrentAudioStream = HomeBase.GetPreferedAudioStreamIndex();
 }