예제 #1
0
 internal VideoInfo(VideoInfo info)
     : this(info.FormatCode, info.VideoType, info.Resolution, info.Is3D, info.AudioType, info.AudioBitrate, info.AdaptiveType)
 {
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoDownloader"/> class.
 /// </summary>
 /// <param name="video">The video to download.</param>
 /// <param name="savePath">The path to save the video.</param>
 /// <param name="bytesToDownload">An optional value to limit the number of bytes to download.</param>
 /// <exception cref="ArgumentNullException"><paramref name="video"/> or <paramref name="savePath"/> is <c>null</c>.</exception>
 public VideoDownloader(VideoInfo video, string savePath, int?bytesToDownload = null)
     : base(video, savePath, bytesToDownload)
 {
 }