2010-12-01, 23:49
I tried the option of opening the netflix via the external player, there's just too much on the screen to navigate with a controller (i use the xbox 360 controller as my xbmc controller, the keyboard is tucked away and only used when i need to do something else on the machine). So I started digging abit into how to interact with the netflix api.
So i've come up with a way to display the instant queue, and open the movie via the external app (IE), but there's gotta be some cool scripting options that i can use to make it seem more like something that's meant for xbmc.
I have the basic netflix api parts working, i can retrieve the instant queue and provide the url that can be used to play the movie. I can write out, in any format, the movie url that will play the movie, the title, the poster URL (Or just write the image to a local file moviename.tbn)
The POC for that is just a simple windows form that has a picture box that onclick opens the url in the browser.
This is done using the c# oauth base class and the wrapnetflix .net code
From the user perspective in XBMC, i'd like to have it display the poster and when clicked it would play the movie
This could be done with the following
A MOVIE_NAME.htm file is created for each item in instant queue by the .net app
(this is done by a .net app that runs in the background, updating on a user specified inteval)
It could also just have a REFRESH_QUEUE.htm, with a listener in the .net app that would tell it to recreate those items.
source added to video sources where those .htm files are located
on disc it would be
c:\xbmc\netflix - this is the source we add to the video section of xbmc
in there there is a file, Refresh_Queue.htm
in there is also a folder, Netflix_Instant_Queue
in the folder (Netflix_Instant_Queue) are the Movie_Name.htm files that the .net app creates, that link to movie on netflix
when one of those Movie_Name.htm are clicked on, the external player opens ie in full screen and plays the movie.
Thoughts?? Ideas?
Right now i'm just opening up my windows form in full screen and can click on the image using my remote to play the movie, but when it's done i have to close the browser window, then exit the windows form. To interact with the queue, it must stay in my windows app, there's a bunch of oauth stuff and hashes that must be done for each item in order to add/delete/modify/list the queue (dev key, user key, secrets, and a hash in sha1 of the requested resource). Also, I have to auth the user before I make a bunch of requests so that I dont hit the limits per day, 4 per second (app limit) 5,000 per day (that are not authenticated, this would be app level), 5,000 per day authenticated (i.e. that counter is at the user level, this is where those requests need to be, otherwise the daily limit for the app would be hit after only a few users)
The Movie_Name.htm is just a redirect to the real URL of the movie in the browser.
So i've come up with a way to display the instant queue, and open the movie via the external app (IE), but there's gotta be some cool scripting options that i can use to make it seem more like something that's meant for xbmc.
I have the basic netflix api parts working, i can retrieve the instant queue and provide the url that can be used to play the movie. I can write out, in any format, the movie url that will play the movie, the title, the poster URL (Or just write the image to a local file moviename.tbn)
The POC for that is just a simple windows form that has a picture box that onclick opens the url in the browser.
This is done using the c# oauth base class and the wrapnetflix .net code
From the user perspective in XBMC, i'd like to have it display the poster and when clicked it would play the movie
This could be done with the following
A MOVIE_NAME.htm file is created for each item in instant queue by the .net app
(this is done by a .net app that runs in the background, updating on a user specified inteval)
It could also just have a REFRESH_QUEUE.htm, with a listener in the .net app that would tell it to recreate those items.
source added to video sources where those .htm files are located
on disc it would be
c:\xbmc\netflix - this is the source we add to the video section of xbmc
in there there is a file, Refresh_Queue.htm
in there is also a folder, Netflix_Instant_Queue
in the folder (Netflix_Instant_Queue) are the Movie_Name.htm files that the .net app creates, that link to movie on netflix
when one of those Movie_Name.htm are clicked on, the external player opens ie in full screen and plays the movie.
Thoughts?? Ideas?
Right now i'm just opening up my windows form in full screen and can click on the image using my remote to play the movie, but when it's done i have to close the browser window, then exit the windows form. To interact with the queue, it must stay in my windows app, there's a bunch of oauth stuff and hashes that must be done for each item in order to add/delete/modify/list the queue (dev key, user key, secrets, and a hash in sha1 of the requested resource). Also, I have to auth the user before I make a bunch of requests so that I dont hit the limits per day, 4 per second (app limit) 5,000 per day (that are not authenticated, this would be app level), 5,000 per day authenticated (i.e. that counter is at the user level, this is where those requests need to be, otherwise the daily limit for the app would be hit after only a few users)
The Movie_Name.htm is just a redirect to the real URL of the movie in the browser.