Ejemplo n.º 1
0
        /// <summary>
        /// Transcodings the changed handler.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="CasparCG.Conformer.Core.Events.TranscodingChangedEventArgs"/> instance containing the event data.</param>
        private static void TranscodingChangedHandler(object sender, TranscodingChangedEventArgs e)
        {
            Console.Clear();

            lock (e.Items)
            {
                if (e.Items.Count == 0)
                    Console.WriteLine("Waiting for work...");

                foreach (var item in e.Items)
                {
                    Console.Write("{0}", item.Key);

                    if (item.Value == "Waiting")
                        Console.ForegroundColor = ConsoleColor.Magenta;
                    else
                        Console.ForegroundColor = ConsoleColor.Yellow;

                    Console.WriteLine(" {0}", item.Value);
                    Console.ForegroundColor = ConsoleColor.White;
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Fires the transcoding changed event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="CasparCG.Conformer.Core.Events.TranscodingChangedEventArgs"/> instance containing the event data.</param>
 public void FireTranscodingChangedEvent(object sender, TranscodingChangedEventArgs e)
 {
     TranscodingChanged(sender, e);
 }