/// <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); } }
/// <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); }