Calss containing the information about the Stream Request event
Inheritance: System.EventArgs
示例#1
0
        /// <summary>
        /// This method raises the stream request event used by the audio player to start a streaming session
        /// </summary>
        /// <param name="args">Parameter that will be passed to the handler</param>
        public virtual void OnStreamRequest(StreamRequestedArgs args)
        {
            StreamRequestedEventHandler handler = StreamRequested;

            if (handler != null)
            {
                handler(this, args);
            }
        }
示例#2
0
 /// <summary>
 /// Callback used when the streaming is requested using the seach list. This method calls the <see cref="setResource"/> method.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void SetResourceHandler(object sender, StreamRequestedArgs args)
 {
     setResource(args.RequestedResource);
 }
示例#3
0
 /// <summary>
 /// Callback used when the streaming is requested using the seach list. This method calls the <see cref="setResource"/> method.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void SetResourceHandler(object sender, StreamRequestedArgs args)
 {
     setResource(args.RequestedResource);
 }
示例#4
0
 /// <summary>
 /// This method raises the stream request event used by the audio player to start a streaming session
 /// </summary>
 /// <param name="args">Parameter that will be passed to the handler</param>
 public virtual void OnStreamRequest(StreamRequestedArgs args)
 {
     StreamRequestedEventHandler handler = StreamRequested;
     if (handler != null)
     {
         handler(this, args);
     }
 }