Ejemplo n.º 1
0
 /// <summary>
 /// Fires a OnPlayBitrateChange event. This function assumes we are on the UI thread. Once Silverlight
 /// gives us a better way to determine that we are on the UI thread, we can merge this and
 /// FireOnBitrateChange into one function.
 /// </summary>
 /// <param name="sender">object that sent this</param>
 /// <param name="args">bitrate changed event args</param>
 private void FireOnPlayBitrateChangeFromUIThread(object sender, BitrateChangedEventArgs args)
 {
     if (null != PlayBitrateChange)
     {
         PlayBitrateChange(this, args);
     }
 }
		void adaptiveSource_PlayBitrateChange(object sender, BitrateChangedEventArgs e)
		{
			this.player.Header = e.Bitrate;
		}
Ejemplo n.º 3
0
 /// <summary>
 /// Fires the actual OnDownloadBitrateChange event. This must always be called from the UI thread.
 /// </summary>
 /// <param name="sender">object that sent this</param>
 /// <param name="args">bitrate changed event args</param>
 private void FireOnDownloadBitrateChangeFromUIThread(object sender, BitrateChangedEventArgs args)
 {
     if (null != DownloadBitrateChange)
     {
         DownloadBitrateChange(sender, args);
     }
 }