![]() |
|
|||
|
4.8.1 API Documentation
The 4.8.1 preliminary API is available here:
http://code.snapstream.com/api/btv481 It should be relatively finalized, but we may still add a few more functions. Fonceur has updated the BTVLibrary developer handy tool already and it is available here: My updated addons...
__________________
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. Last edited by Kilrsat; 02-22-2008 at 07:36 PM. |
|
|||
|
Re: 4.8 API Documentation
The biggest changes:
BTVLicenseManager.Logon() now returns something!!! It returns a propertybag containing 2 properties, and looks something like this: Code:
<PVSPropertyBag xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.snapstream.com/WebService">
<Properties xmlns="http://www.snapstream.com/types">
<PVSProperty>
<Name>AuthTicket</Name>
<Value>0f2a5911-a18c-4909-98d5-e71bde3bacdc</Value>
</PVSProperty>
<PVSProperty>
<Name>UserID</Name>
<Value>8771f287-840f-4a51-979d-2a6e87a591fc</Value>
</PVSProperty>
</Properties>
</PVSPropertyBag>
Logon() also now has a username property. To make things work just like before, pass "administrator" in as the username. There is now an explicit, RenewLogonSession() function. If you do not call this within 15 minutes of calling Logon() your AuthTicket will expire and become invalid. Calling this function extends the expiration time on your AuthTicket to 15 minutes from the current time. The first parameter of basically every web service will be that AuthTicket. If you call functions with an invalid ticket, they will exception and yell at you.
__________________
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. |
|
|||
|
Re: 4.8 API Documentation
Starting in 4.8, the Beyond TV Web Server supports SSL. This means, you want to access the Web Services in a secure manner (i.e. without using plaintext passwords), you now have the option.
Insecure: http://<BTVServer>:8129/wsdl/BTVLicenseManager.asmx Secure: https://<BTVServer>:8129/wsdl/BTVLicenseManager.asmx Note: The Beyond TV server will most likely not have a valid SSL certificate. By default, .Net will exception if you attempting to contact an https:// site that doesn't have a valid cert. To get around this, use this block of code before accessing the web services. Code:
using System.Net;
using System.Net.Security;
using System.Security;
using System.Security.Cryptography.X509Certificates;
ServicePointManager.ServerCertificateValidationCallback += delegate( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) {
return true;
};
__________________
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. |
|
|||
|
Re: 4.8 API Documentation
Does this mean that all of the old applications will not work anymore with 4.8 since the login has changed?
Thanks Mike
__________________
Media Server - Q6600 Quad core, Dvico USB (x2), VBoxx USB (x2), Hauppauge PVR-950, Diamond PVR-600 USB (x2), HDHomerun, 4.5 TB BTVLink Client (x2) - Dell Optiplex GX620 USFF |
|
|||
|
Re: 4.8 API Documentation
Quote:
It's unfortunate, but something that had to be done.
__________________
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. |
|
|||
|
Re: 4.8 API Documentation
This was the first breaking change in over 3 years (it has remained basically backwards compatible all the way to 3.5), and if it could be avoided, it would have been. Unfortunately, we hit a point where the problems with the old API were too big to ignore.
What this gives you: 1. Easier development. No more having to login to the license manager before you can add a reference to anything else. Just add away. 2. No more random 403 errors. The old method really sucked because if you had your app running and Link running, closing Link resulted in 403 errors for your app. Two different apps running on the same machine would also produce the same problem. In general, multiple applications from single machine were extremely poorly handled before. 3. Security. If you don't want your kids or anyone else to be able to screw with your recordings, you can. Only tell them how to login to a limited account and keep the administrator password in your head. They won't be able to record Desperate Housewives instead of American Gladiators again. 4. Actually knowing who is logged in from where. Check out the new Link Client Management page in the Web Admin. We did spend a decent amount of time trying to come up with a way to get everything we needed and still offer complete backwards compatibility. But even the best hacked up solution would have simply delayed the point where things stopped working. Since nothing was an actual permanent solution, we decided to draw the line here. Any existing application should be able to be updated in under 30 minutes. If anyone needs help with it, I'll personally assist them in getting things working. I'd also like feedback from anyone on what we can do to make development easier in general. I know the web services can be a bit unwieldly at times, but we don't see much of it because we have all kinds of little helper classes in place to make Link happen.
__________________
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. |
|
|||
|
Re: 4.8 API Documentation
Quote:
|
|
|||
|
Re: 4.8.1 API Documentation
Only RenewLogonSession will renew. Calling Logon again will create a new session with a new AuthTicket.
__________________
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. |
|
|||
|
Re: 4.8.1 API Documentation
I just found out about this API change. I too am disappointed about it. If it's a necessary evil, I understand but it will be a headache to many third party developers.
I'm on the prebeta test group so I was able to download a copy of 4.8.1 to try it out. Sure enough, the Javascript code written for our MediaMVP BTV project doesn't work with the new API. The MediaMVP code has to be updated. It's not easy since there is alot of service calls. It will basically make the MediaMVP BTV users dead on arrival with v 4.8.1. It won't make people happy. I will see if I can figure out this new API returned AuthTicket but try to fix it before it is released but if I don't there were be some unhappy customers. (p.s. besides being a past developer of MediaMVP BTV project, I use the MediaMVP. So I have an incentive to fix it for myself. If not, I may not upgrade to 4.8.1) |
|
|||
|
Re: 4.8.1 API Documentation
I'm a "light" user of my MVP, so for now I'm not going to downgrade my 4.8.1 install. So if you need a beta tester for any of the MVP updates, PM me. I *only* use the MVP for watching recorded shows, so you definitely don't want me at the only beta tester. :-)
SnapStream, you'd be very wise to ensure that, when you release 4.8, your announcement is very, very clear on the fact that *all* add-ins will be broken and require updates. In fact, you'd be wise to provide direct links to the updated versions for all the known popular ones. If you do nothing, and let everybody not on the beta find out for themselves the hard way, guess who they're going to be pissed off with (Hint: *not* the add-in authors). Brad.
__________________
Shuttle FB65 w/ Pentium 4 @ 2.8GHz, 1GB DDR RAM, Windows XP SP2, nVidia 6600GT, PVR250, WDC 120GB EIDE drive, 250GB USB external drive, HD DVD 4x Burner, USB-UIRT + Girder 3.3 |
|
|||
|
Re: 4.8.1 API Documentation
I do not understand why Snapstream wouldn't offer a "compatibility proxy" as a separate web application process for legacy compatibility.
The new API should be hosted a a new URI, with the old API continuing to be available at the legacy URI ONLY if the proxy is running. The proxy simply maps the old interfaces to new API calls. Only users who must have both NEW features and compatibility with OLD plug-ins would need to suffer the costs associated with running the proxy. Is the color of the sky in my world not blue? |
|
|||
|
Re: 4.8.1 API Documentation
Quote:
|
|
|||
|
Re : 4.8.1 API Documentation
If I run my addon on the BTV server, the LicenseManager.GetVersionNumber() (or the login) takes a fraction of a second to return a result. When I do the same from another machine on the network, it takes 15 seconds...
How would I check if the extra delay comes from the Windows networking/firewall or if it's from the BTV web server? I tried debugview, but it only mentions when the session is starting...
__________________
BTV 4.9.2 | XP Pro SP2 (nLite'd)| PVR-250/500/Firewire | Videotron - Pace 551 HD | Hitachi 50V500 (DVI) To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. : BTV 4.9 SDK addition for developers. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. : Conflict resolution/Guide updates/Searches/etc. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. : External recordings, Firewire/clear QAM/DVB/R5000HD/etc. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. : Record from a simple .GRF file. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts. : MainLobby integration. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| x10net.dll documentation | diehard2 | Firefly PC Remote | 0 | 09-21-2005 01:04 PM |
| Documentation | Mike | Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum | 1 | 02-28-2002 11:26 PM |