2014-01-19, 11:41 PM
Yep I gave you a mix of XML and JSON Bottom line is sub uses mainly XML with a little JSON and NEWA uses JSON
Martin
Martin
2014-01-19, 11:41 PM
Yep I gave you a mix of XML and JSON Bottom line is sub uses mainly XML with a little JSON and NEWA uses JSON
Martin
2014-01-20, 12:16 AM
Svekke Wrote:Is there also an api call to get the version of the nextpvr client? No API at present for NPVR version.... I can create one though.... I will post when added. As for the recording..... 1st upgrade to the latest NEWA dev build following instructions on wiki Also.... you need to post the web.log when you have issues so I can see if anything unusual is happening in there... as a tip... you will need to stop the npvr recording service to zip the log since it holds it open.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE Windows 10 Pro x64 PVR Software: NPVR 5.1.1 SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner Roku Ultra 2 PCH A-100's
2014-01-20, 12:34 AM
UJB the setting.get method from sub basically returns the XPath into config.xml it is not really a version check but I'd prefer sub's way to dedicated calls for each setting value that sub might add to config.xml
However a JSON call to get NEWA version instead of this XML call http://forums.nextpvr.com/showthread.php...WA-version would be helpful. Martin
2014-01-20, 02:13 AM
mvallevand Wrote:UJB the setting.get method from sub basically returns the XPath into config.xml it is not really a version check but I'd prefer sub's way to dedicated calls for each setting value that sub might add to config.xml Is the request for the NPVR version, the NEWA version or both? I was thinking svekke wanted the current NPVR version.... I can do both... just need to make sure I know what people want. Also... the changelog is also available on the wiki.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE Windows 10 Pro x64 PVR Software: NPVR 5.1.1 SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner Roku Ultra 2 PCH A-100's
2014-01-20, 02:51 AM
Ideally I think many developers want a full API that only requires JSON although reven seems satisfied with XML. Right now to get everything both are required. As an example I showed that sub has a api that exposes config.xml valyes NEWA does not have this. It doesn't have a login either Right now NEWA exposes more via JSON so it makes a richer client.
The wiki change log is pointless I read changelog attributes as xml to determine the actual running NEWA's version needed until SOAP is dead. Martin
2014-01-20, 06:41 AM
If you can give both, that would be great.
The problem now is that we need to do also the login (salt,sid). When we only use the newa json calls, we don't need to do some extra stuff. It would make our code much cleaner.
2014-01-20, 02:01 PM
Hmm for the LiveStream I still need the login(sid/salt). Not?
2014-01-20, 03:29 PM
Svekke Wrote:Hmm for the LiveStream I still need the login(sid/salt). Not? No that is YANA (Yet Another NextPVR API) Now that JSON has most of XML there is no login required, it is not integrated with the SID login, although I am hoping sub and UJB work something out so we can have safer internet access in the next version. From an MB3 perspective you it probably isn't an issue. Personally I still use the XML for the Now/Next guide info because the server side is much faster. Martin
2014-01-20, 05:34 PM
mvallevand Wrote:No that is YANA (Yet Another NextPVR API) Now that JSON has most of XML there is no login required, it is not integrated with the SID login, although I am hoping sub and UJB work something out so we can have safer internet access in the next version. From an MB3 perspective you it probably isn't an issue. Do you maybe have an example how to call it? Pointing me in the right direction.
2014-01-20, 05:50 PM
There are two
/live?channel=##&client=uniqueid /live?channeloid=##&client=uniqueid You are responsible for the uniqueid if &client is not provided only one stream is available via the API. Martin |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Looking for C# UPnP Media Server code | bgowland | 5 | 7,288 |
2016-12-16, 08:25 PM Last Post: mvallevand |
|
Media\Show Directory | mvallevand | 12 | 5,677 |
2014-07-02, 10:58 AM Last Post: sub |
|
Media\Shows Metadata | mvallevand | 2 | 1,709 |
2013-05-22, 04:09 AM Last Post: mvallevand |
|
Streaming media | imilne | 44 | 11,998 |
2012-12-14, 04:05 AM Last Post: mvallevand |
|
SkyDrive Eplorer Integration Released.....also available for Mac and iPad | UncleJohnsBand | 0 | 1,351 |
2012-04-24, 01:06 AM Last Post: UncleJohnsBand |
|
Building a list of files in media folders (npvr Music and Videos) | bgowland | 2 | 1,703 |
2012-02-05, 10:29 AM Last Post: bgowland |
|
Windows Media Connect - Storing stuff on a Home Server | psycik | 3 | 2,508 |
2009-09-29, 03:47 AM Last Post: mvallevand |
|
Plugin notification of stopped media | mvallevand | 7 | 2,060 |
2009-08-19, 11:16 PM Last Post: mvallevand |
|
GBPVR Media Events | KingArgyle | 1 | 1,440 |
2005-03-27, 07:12 PM Last Post: sub |