Xtream .net standard client for Xtream Api
dotnet add package Xtream.Client
using(var xtreamClient = new XtreamClient(new XtUrlConnectionFactory(url)))
{
//Get Panel Info
var panelInfo = await xtreamClient.GetPanelAsync(url, CancellationToken.None);
// Get Server and user info
var allInfos = await xtreamClient.GetUserAndServerInfoAsync(url, CancellationToken.None);
// Get live streams
var livestreams = await xtreamClient.GetLiveStreamsAsync(url, CancellationToken.None);
// Get Vod
var vods = await xtreamClient.GetVodStreamsAsync(url, CancellationToken.None);
}
using(var xtreamClient = new XtreamClient(new XtBasicConnectionFactory(server, username, password)))
{
//Get Panel Info
var panelInfo = await xtreamClient.GetPanelAsync(url, CancellationToken.None);
// Get Server and user info
var allInfos = await xtreamClient.GetUserAndServerInfoAsync(url, CancellationToken.None);
// Get live streams
var livestreams = await xtreamClient.GetLiveStreamsAsync(url, CancellationToken.None);
// Get Vod
var vods = await xtreamClient.GetVodStreamsAsync(url, CancellationToken.None);
}