Kodi Community Forum
[RELEASE] Amazon Prime Instant Video plug-in addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Amazon Prime Instant Video plug-in addon (/showthread.php?tid=108124)



- huckw - 2012-01-12

OK...now I think I have the eden beta 1 (built Dec 23, 2011) but different errors. Thanks for looking at these...

http://pastebin.com/rmkB21j4


- BlueCop - 2012-01-12

I think it took up your playback slots without freeing them before when you were testing things.

CDP.Playback.NoAvailableStreams means that your playback slots are taken right now. They will time out in a little while. I don't know the exact time. Once they time out you can play again.

This is a problem that occur when the plugin doesn't get to post the proper stop events to amazon to free it up. It must have failed somewhere when you were testing and took the slot.

Please check the amazon site and see if your slots are free for playback.


So you should just have to wait a few minutes for the sessions to time out. You should be able to playback again.

Thanks for the log. I have been meaning to add detection of the all sessions being taken. I will try to inform the user of the slots being taken.


- huckw - 2012-01-12

Uh...woops...was watching amazon prime video through browser while trying to debug this issue. Is that the "slot" you are talking about? I can't stream 2 videos at one time from amazon?


- BlueCop - 2012-01-12

I believe you are allowed 2 of them. Sometimes one of those slots can be taken up without your knowledge though and needs to time out before you can use it again.

I have had this problem a few times when I started developing the plugin. I added something to post stop event soon after starting the stream to free up the slots quickly.

I have had a slot mistakenly taken when switching around videos in a browser. I have also had one taken up with a browser crash.

They always free up in 10-15 minutes though if I didn't have the session info to manually post a stop event.


- huckw - 2012-01-12

SWEET!! I'm up and running AND no more script error when adding shows to favorites either. If I get any dropped streams I'll see how the resume feature works. Love this plugin...great work BlueCop!!


- primetime34 - 2012-01-14

BlueCop Wrote:I thought I linked to this before. it was the top google search result.

librtmp for atv1
http://forum.xbmc.org/showpost.php?p=839939&postcount=8

further down in the thread is confirmation of it working for atv1

This link mentioned earlier for using this on ATV1 is still dead. Anybody have the file that they could upload somewhere else? Here is the original post


- BlueCop - 2012-01-14

is eden beta1 for atv1 available? it has the new librtmp.


- TheWaterbug - 2012-01-14

huckw Wrote:Love this plugin...great work BlueCop!!
++

Feel free to ignore this if you're too busy Bluecop, but if you have time, would you mind a 30-second summary of how the plugin works, e.g. how you reverse-engineered the streaming client, what parts are XBMC core, and what parts are yours, etc.? Is there an actual API for an Amazon streaming client?

This is solely for curiosity, as I'm not a programmer, so I can't really read code very well.

I am just wondering how a single, 3rd-party programmer can make this happen, on unsupported hardware, with no official help from Amazon, yet there are other official Amazon-compatible boxes out there *cough* TiVo *cough* that haven't done it.


- BlueCop - 2012-01-14

The heavy lifting is done by rtmpdump/librtmp. The plugin just provides xbmc a url for playback.

It is really easy to figure out if you proxy all your traffic including tsl/ssl. You get plain text versions of everything ussually. Once you have a log of the traffic then I just search for the rtmp:// link. It is just a matter of figuring out what is needed to get that link.

Amazon requires a cookie to show you are logged into the site. When you are logged in it sends you embedded flash variables in the html for prime video pages. The plug-in parses those variables which are used to make requests from amazon servers for the rtmp links of that video. There isn't a public api. It does seem to be an api though. There are a variety of events and requests you can post through it.

It just scrapes website for the list of shows and movies. I found the amazon product api is rather limited. I don't actually use it because it requires api keys. some of which you are supposed to keep private which i can't with an open source plugin.


- primetime34 - 2012-01-14

BlueCop Wrote:is eden beta1 for atv1 available? it has the new librtmp.


I have eden beta1 running on my atv1. However, when I try to run this addon, nothing happens. It just stays on the addon screen. It doesn't load or anything.


- BlueCop - 2012-01-14

try to remove and reinstall it. I have had a few reports of dependencies not getting installed.

post a log of the failure to pastebin if reinstall doesn't help.


- primetime34 - 2012-01-15

BlueCop Wrote:try to remove and reinstall it. I have had a few reports of dependencies not getting installed.

post a log of the failure to pastebin if reinstall doesn't help.

I removed and reinstalled. This time something happened, but it was telling me that the script failed. Here is the pastebin

http://pastebin.com/yVaLuFY1


- BlueCop - 2012-01-15

it is missing the mechanize module. I am not sure why it isn't being installed.

are you letting the install success pop up before running it?


- primetime34 - 2012-01-15

A 3rd reinstall finally got it working. Thanks.


error - nchaurdia - 2012-01-17

Trying to play the episode for a TV show and it says to check the log. Not sure what is going on. I tried it once yesterday and it had worked. Now it's not working.

Reinstalled, rebooted too, but still doesn't work.

http://pastebin.com/Gnx08ZGR