DVBLink Remote API

DVBLink Remote API clients and tools

Re: DVBLink Remote API

Postby Oberon » Thu Nov 01, 2012 3:17 pm

azebro wrote:Thanks Oberon,

It appeared that there was a serialization issue with the request, I can get the response now.
Could you please look at the post above re the children objects included in the reply?

Thanks,

Adam

I have answered it already. You always get one level of children. And then you need to ask for the next level.
Oberon
 
Posts: 11763
Joined: Thu Sep 06, 2007 5:04 am


Re: DVBLink Remote API

Postby Videonisse » Mon Feb 04, 2013 12:04 pm

Oberon wrote:
neil_coggins wrote:Hi,
Media Center on Windows 7 x64.

Here is how the string should look like:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<epg_searcher xmlns="http://www.dvblogic.com"><channels_ids xmlns="http://www.dvblogic.com"><channel_id>7881299348048738</channel_id></channels_ids><program_id/><keywords/><start_time>-1</start_time><end_time>-1</end_time></epg_searcher>

It uses channels_ids instead of channel_ids.


Should this work as described in http://188.121.56.29//download/dvblink_remote_api.htm also when using "mc_recorder"?

I'm trying to use the API from the RESTclient plugin in Firefox to verify output of selected XMLTV sources, but the respons I get lacks most of the expected EPG tags. :?
Attachments
RESTClient_2013-02-04_11-59-42.png
RESTClient_2013-02-04_11-59-42.png (39.73 KiB) Viewed 12491 times
Win 7 64-bit SP1, Intel i5-3570K 3,4GHz HD 4000 Graphics, 6GB, TBS 6984 S2 Quad,TBS 6280 T2 Dual
DVBLink 5.5.0 Connect & TVSource (mc_recorder), CD S Thor 0.8W,FTA Aastra 19.2E, S FTA T2, ACAMD 0.6.2
Clients iPhone 4S 5S 6S, iPad2 iOS 9,Win 7 PCs
Videonisse
 
Posts: 573
Joined: Mon Nov 21, 2011 10:29 pm
Location: Stocholm, sweden

Re: DVBLink Remote API

Postby Videonisse » Tue Feb 05, 2013 8:43 am

Videonisse wrote:
Oberon wrote:
neil_coggins wrote:Hi,
Media Center on Windows 7 x64.

Here is how the string should look like:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<epg_searcher xmlns="http://www.dvblogic.com"><channels_ids xmlns="http://www.dvblogic.com"><channel_id>7881299348048738</channel_id></channels_ids><program_id/><keywords/><start_time>-1</start_time><end_time>-1</end_time></epg_searcher>

It uses channels_ids instead of channel_ids.


Should this work as described in http://188.121.56.29//download/dvblink_remote_api.htm also when using "mc_recorder"?

I'm trying to use the API from the RESTclient plugin in Firefox to verify output of selected XMLTV sources, but the respons I get lacks most of the expected EPG tags. :?


@Oberon: should above work with system using mc_recorder as well? Am I using the correct XML code to request the EPG data?


Sent from my iPad using Tapatalk
Win 7 64-bit SP1, Intel i5-3570K 3,4GHz HD 4000 Graphics, 6GB, TBS 6984 S2 Quad,TBS 6280 T2 Dual
DVBLink 5.5.0 Connect & TVSource (mc_recorder), CD S Thor 0.8W,FTA Aastra 19.2E, S FTA T2, ACAMD 0.6.2
Clients iPhone 4S 5S 6S, iPad2 iOS 9,Win 7 PCs
Videonisse
 
Posts: 573
Joined: Mon Nov 21, 2011 10:29 pm
Location: Stocholm, sweden

Re: DVBLink Remote API

Postby Oberon » Tue Feb 05, 2013 9:11 am

This rest plugin cannot specify POST parameters. That's why it does not work as it should for you.
You cam check how the API works using the following approach. Save the following code:
Code: Select all
<form action="http://localhost:8080/cs/" method="POST">
<input type="text" name="command" value="get_channels"/>
<textarea name="xml_param"><?xml version="1.0" encoding="utf-8" ?><channels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.dvblogic.com" /></textarea>
<input type="submit" />
</form>

in the html file and open it in the web browser.
Of course you can put any other relevant commands and parameters in it.
Oberon
 
Posts: 11763
Joined: Thu Sep 06, 2007 5:04 am

Re: DVBLink Remote API

Postby Videonisse » Tue Feb 05, 2013 9:54 am

I also have Chrome with the Advanced Rest Client App installed but it gives me only error codes as I don't know how to format the POST request, could you maybe give me an example how to extract the EPG using this client? :roll:
Attachments
Advanced Rest Client Application_2013-02-05_09-46-52.png
Advanced Rest Client Application_2013-02-05_09-46-52.png (30.03 KiB) Viewed 12402 times
Win 7 64-bit SP1, Intel i5-3570K 3,4GHz HD 4000 Graphics, 6GB, TBS 6984 S2 Quad,TBS 6280 T2 Dual
DVBLink 5.5.0 Connect & TVSource (mc_recorder), CD S Thor 0.8W,FTA Aastra 19.2E, S FTA T2, ACAMD 0.6.2
Clients iPhone 4S 5S 6S, iPad2 iOS 9,Win 7 PCs
Videonisse
 
Posts: 573
Joined: Mon Nov 21, 2011 10:29 pm
Location: Stocholm, sweden

Re: DVBLink Remote API

Postby Oberon » Tue Feb 05, 2013 10:39 am

Please use the method that I have described in my previous post.
Oberon
 
Posts: 11763
Joined: Thu Sep 06, 2007 5:04 am

Re: DVBLink Remote API

Postby Realman » Tue Feb 05, 2013 11:19 am

Or try this
dvblink-api.png
dvblink-api.png (172.22 KiB) Viewed 12416 times
Realman
 
Posts: 805
Joined: Fri Mar 07, 2008 7:57 am

Re: DVBLink Remote API

Postby Videonisse » Tue Feb 05, 2013 1:02 pm

Oberon wrote:Please use the method that I have described in my previous post.


I did, I only get an respons of "1000", see below. Also added a copy the html file I created based on the code from you.

Does it matter if I use dlrecorder or mc_recorder, or what should I expect as respons based on the code you provided?

My intention is to view and verify the EPG data provided via the API for my DVBLink setup.
Attachments
DVBLink EPG Test.zip
(405 Bytes) Downloaded 329 times
192.168.10.png
192.168.10.png (6.14 KiB) Viewed 12390 times
Win 7 64-bit SP1, Intel i5-3570K 3,4GHz HD 4000 Graphics, 6GB, TBS 6984 S2 Quad,TBS 6280 T2 Dual
DVBLink 5.5.0 Connect & TVSource (mc_recorder), CD S Thor 0.8W,FTA Aastra 19.2E, S FTA T2, ACAMD 0.6.2
Clients iPhone 4S 5S 6S, iPad2 iOS 9,Win 7 PCs
Videonisse
 
Posts: 573
Joined: Mon Nov 21, 2011 10:29 pm
Location: Stocholm, sweden

Re: DVBLink Remote API

Postby Realman » Tue Feb 05, 2013 2:01 pm

Try to use dlrecorder.
Realman
 
Posts: 805
Joined: Fri Mar 07, 2008 7:57 am

Re: DVBLink Remote API

Postby Videonisse » Tue Feb 05, 2013 8:55 pm

Realman wrote:Try to use dlrecorder.


Changed to dlrecorder in the config for my second DVBLink Server; unfortunately, it gives exact same result. :(

In fact, it seems to fully ignore the "payload" and the URL http://192.168.10.50:8080/cs redirects to http://192.168.10.50:8080/channel/list/?sort=number. See this pdf for the complete response.

I use Win 7 for the server, Realman, what are you using?

@Oberon: Could you give me an example how I get the EPG data for one channel via the API?

The data I expect as respons are the relevant fields below:

Code: Select all
            <channel_epg> - optional
                        <channel_id/> - string mandatory
                        <dvblink_epg> - mandatory
                                   <program> - mandatory
                                               <program_id – string mandatory
                                               <name/> — string mandatory
                                               <start_time/> — long mandatory
                                               <duration/> — long mandatory

                                               string optional:
                                               <short_desc/>
                                               <subname/>
                                               <language/>
                                               <actors/>
                                               <directors/>
                                               <writers/>
                                               <producers/>
                                               <guests/>
                                               <categories/>
                                               <image/>
 
                                               long optional:
                                               <year/>
                                               <episode_num/>
                                               <season_num/>
                                               <stars_num/>
                                               <starsmax_num/>
 
                                               Optional.true if tag is present, false otherwise:
                                               <hdtv/>
                                               <premiere/>
                                               <repeat/>
                                               <cat_action/>
                                               <cat_comedy/>
                                               <cat_documentary/>
                                               <cat_drama/>
                                               <cat_educational/>
                                               <cat_horror/>
                                               <cat_kids/>
                                               <cat_movie/>
                                               <cat_music/>
                                               <cat_news/>
                                               <cat_reality/>
                                               <cat_romance/>
                                               <cat_scifi/>
                                               <cat_serial/>
                                               <cat_soap/>
                                               <cat_special/>
                                               <cat_sports/>
                                               <cat_thriller/>
                                               <cat_adult/>
                                               <is_record/>
                                               <is_series/>
                                               <is_repeat_record/>
                                   </program>
                                   ...
                        </dvblink_epg>
            </channel_epg>
Win 7 64-bit SP1, Intel i5-3570K 3,4GHz HD 4000 Graphics, 6GB, TBS 6984 S2 Quad,TBS 6280 T2 Dual
DVBLink 5.5.0 Connect & TVSource (mc_recorder), CD S Thor 0.8W,FTA Aastra 19.2E, S FTA T2, ACAMD 0.6.2
Clients iPhone 4S 5S 6S, iPad2 iOS 9,Win 7 PCs
Videonisse
 
Posts: 573
Joined: Mon Nov 21, 2011 10:29 pm
Location: Stocholm, sweden

Re: DVBLink Remote API

Postby Realman » Wed Feb 06, 2013 6:41 am

Enter url at the end with a backslash http://192.168.10.50:8080/cs/
Realman
 
Posts: 805
Joined: Fri Mar 07, 2008 7:57 am

Re: DVBLink Remote API

Postby Videonisse » Wed Feb 06, 2013 11:53 am

Realman wrote:Enter url at the end with a backslash http://192.168.10.50:8080/cs/


@Realman: you are my hero, you made my day! It works now, many thanks! :D
Win 7 64-bit SP1, Intel i5-3570K 3,4GHz HD 4000 Graphics, 6GB, TBS 6984 S2 Quad,TBS 6280 T2 Dual
DVBLink 5.5.0 Connect & TVSource (mc_recorder), CD S Thor 0.8W,FTA Aastra 19.2E, S FTA T2, ACAMD 0.6.2
Clients iPhone 4S 5S 6S, iPad2 iOS 9,Win 7 PCs
Videonisse
 
Posts: 573
Joined: Mon Nov 21, 2011 10:29 pm
Location: Stocholm, sweden

Re: DVBLink Remote API

Postby ralphFFM » Fri Sep 05, 2014 4:26 pm

Are there any changes to the API which are needed when using with Server Version 5?
Especially any added/deleted/modified parameters for direct streaming (play_channel command) or indirect streaming.
ralphFFM
 
Posts: 19
Joined: Sat Jul 27, 2013 12:53 pm

Re: DVBLink Remote API

Postby Oberon » Sun Sep 07, 2014 12:47 pm

All functionality, described in Remote API doc works in DVBLink v5, except for asf streaming.
We will add coming weeks the new information regarding direct transcoded and time-shifted streaming options.
Oberon
 
Posts: 11763
Joined: Thu Sep 06, 2007 5:04 am

Re: DVBLink Remote API

Postby gatolus » Tue Dec 16, 2014 3:34 pm

Oberon wrote:All functionality, described in Remote API doc works in DVBLink v5, except for asf streaming.
We will add coming weeks the new information regarding direct transcoded and time-shifted streaming options.


When can we Get Updated API Information on direct transcoded Streams for live tv and recorded tv For Windows phone/ Windows 8 RT..

as asf is down.
gatolus
 
Posts: 37
Joined: Mon Aug 20, 2012 4:58 pm

PreviousNext

Return to Development corner

Who is online

Users browsing this forum: No registered users and 1 guest

cron