Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="YoutubeSong"/> class.
 /// </summary>
 /// <param name="path">The path of the song.</param>
 /// <param name="audioType">The audio type.</param>
 /// <param name="duration">The duration of the song.</param>
 /// <param name="isStreaming">if set to true, the song streams from YouTube, instead of downloading.</param>
 /// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
 public YoutubeSong(string path, AudioType audioType, TimeSpan duration, bool isStreaming)
     : base(path, audioType, duration)
 {
     this.IsStreaming = isStreaming;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="YoutubeSong"/> class.
 /// </summary>
 /// <param name="path">The path of the song.</param>
 /// <param name="audioType">The audio type.</param>
 /// <param name="duration">The duration of the song.</param>
 /// <param name="isStreaming">if set to true, the song streams from YouTube, instead of downloading.</param>
 /// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
 public YoutubeSong(string path, AudioType audioType, TimeSpan duration, bool isStreaming)
     : base(path, audioType, duration)
 {
     this.isStreaming = isStreaming;
 }