The attachment of this topic contains a set of C# classes that we use in our products to work with DVBLink Connect! Server using its Remote API.
With this library we would like to provide kick-start experience for our users who would like to write their own client for DVBLink Connect! Server.
At the moment there is not much documentation or sample code for this library. We will add them at a later stage. In the meanwhile I will provide a very short introduction to the code, hoping that it is largely self-explaining.
The core class is DataProvider.
This calss has a number of functions that directly correspond to the Remote API commands - like GetChannels, SearchEpg etc. Each of this functions takes an appropriate command object as input - ChannelsRequest object in case of GetChannels function, EpgSearcher object in case of SearchEpg function etc.
The result is returned asynchronously via IDataProvider interface implementation. DataProcessing function is called in case of success and ErrorProcessing in case of error. DataProcessing function returns a response object of a type that directly corresponds to the type of request: ChannelIdWithPrograms SearchEpg request, Channels in case of GetChannels request etc.
Stream can be requested from the server using PlayChannel function. The returned Streamer object contains url that can be used to retrieve a stream and a handle, which should be used to stop streaming using StopChannel function.
The code published "as is" without any guarantees, warranties or obligations. You may use this code in modified or unmodified form in any kind of application.
- (9.99 KiB) Downloaded 613 times
Server: Synology DS212j, TBS5980CI (Dutch CanalDigitaal), TeVii s660 unicable Astra 28.2E, DVBLink TVSource 4.6.0, all DVBLink EPG Loaders
Clients: AsRock ION 330 Win7 MediaCenter, Samsung DLNA TV, IPad, Samsung Galaxy S, Nexus 7