Menu

WebVideoStream class

nxu

WebVideoStream class

Quick class overview for plugin developers

:::csharp
namespace NXU.WebVideoDownloader.VideoInfoManager
{
    public abstract class WebVideoStream
    {
        public WebVideoStream(string streamUri);

        public string StreamUri;

        public abstract VideoInformation GetVideoInformation();

        // ...
    }
}

Explanation

Constructor: the class has no default constructor. Inherited classes must be instanced using this constructor too by providing the Uri of the stream.

StreamUri: The Uri of the stream. Example: http://www.youtube.com/watch?v=JgtOWJfRN_s

GetVideoInformation(): This is the method that must be overridden in the plugin. It generates the video information and returns it as an instance of the [VideoInformation class] to the downloader.

Attributes

When you create a subclass of WebVideoStream class (= you create a plugin for nxu-wvd), you should add attributes to the class. For further information, visit [Plugin attributes]


Related

Wiki: Plugin Development
Wiki: Plugin attributes
Wiki: VideoInformation class

MongoDB Logo MongoDB