Kodi Community Forum
[REQUEST] BBC iPlayer (Video) Plugin or Script? - 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: [REQUEST] BBC iPlayer (Video) Plugin or Script? (/showthread.php?tid=27063)



- frosty - 2008-10-20

@lukeraynor : your log shows the iPlayer plugin has created what looks like a valid URL for a stream, but XBMC can't connect to the server:
Code:
11:42:29 M: 39956480   ERROR: RTMP_LIB::CRTMP::Connect, failed to connect. file: rtmp://cp41752.edgefcs.net:1935/ondemand?_fcs_vhost=cp41752.edgefcs.net&auth=daEbVaKcIajatcUckbFbcafdWbabLc9cEav-bi_gb5-cCp-InrFEnFnODtGnxD&aifp=v001&slist=secure/b000f5sx0streaming94513426

Unfortunately the reason for the error isn't currently logged by the code. Is your xbox's connection to the internet otherwise OK - Do other streaming media plugins/scripts work?


- lukerayner - 2008-10-21

I have now disabled my routers firewall and all seems to work fine, didn’t expect that one as I thought the Xbox was just emulating a browser on port 80. Any idea what ports I need to open so I can put my firewall back on?

Thanks for the help guys, i got there in the end.

Edit : Just looked at the line it failed on its got the port there 1935


- frosty - 2008-10-21

The real iPlayer tries both rtmp and rtmpt connections for playback. rtmpt is rtmp tunneled over http (and so uses port 80), which is why iPlayer can work for you without having connections to port 1935 allowed through your router.

XBMC only attempts to play the URL given (yours was to port 1935) and only implements the rtmp protocol (not rtmpt).

However, should anyone be interested a quick check shows that the akamai servers will accept rtmp connections to BBC streams on port 80 too, so the 1953 can be replaced with 80 in an URL to a BBC stream. Why you'd want to do this, I'm not sure...


- mrtickle - 2008-10-21

I'm afraid I still have a niggling problem with the buffering. Am I right in saying that we can't configure the size of XBMC's RTMP buffer? The Apple movie trailers script has a "buffering" window in the middle of the screen but with RTMP we get a plain text "buffering" so it looks as if it's not using the main code...

<does some googling>

Aha, I see you're already on the case!
http://forum.xbmc.org/showpost.php?p=236169&postcount=1


- Arctic Feather - 2008-10-21

I'm also getting the "Remote Share. Could not connect to network server." error message.

I'm definitely updated to the latest t3ch release and am using the SVN release of the iPlayer plugin.

I have no idea what's causing it. I'm in the UK, my net connection is fine and I've tried a few XBMC scripts to confirm this. I checked the filename of BeautifulSoup.py and it has capital letters where expected.

The directory listings are as follows:
E:\Apps\XBMC\plugins\video\iplayer\
lib
resources
default.py
default.tbn

E:\Apps\XBMC\plugins\video\iplayer\lib\
BeautifulSoup.yp
feedparser.py
httplib2.py
iplayer2.py
iri2uri.py

Any ideas?


- johnsto - 2008-10-21

Arctic Feather Wrote:I'm also getting the "Remote Share. Could not connect to network server." error message.

I'm definitely updated to the latest t3ch release and am using the SVN release of the iPlayer plugin.

I updated the code this evening, can you try the very latest version on the website (either SVN or the 21st October .zip).

If it still doesn't work, please turn on system debug logging (in Settings), run the script again, and then upload xbmc.log to pastebin and link it here.


- Arctic Feather - 2008-10-21

johnsto Wrote:I updated the code this evening, can you try the very latest version on the website (either SVN or the 21st October .zip).

If it still doesn't work, please turn on system debug logging (in Settings), run the script again, and then upload xbmc.log to pastebin and link it here.

I just tried both versions and they both result in the following error:
Quote:No module named iplayer2
Please check you installed this plugin correctly

There is a iplayer2.py in the lib folder though. After clicking OK on this error it comes up with the same network server error as before.

Will get a debug log up in a few minutes. EDIT: Here's the debug log: http://pastebin.com/m3cc0bf56


- johnsto - 2008-10-22

Arctic Feather Wrote:Will get a debug log up in a few minutes. EDIT: Here's the debug log: http://pastebin.com/m3cc0bf56

The log shows your version of XBMC is wildly out-of-date - March 2008! You should update to the latest version (Atlantis Beta 2) and then the plugin will work.


- Arctic Feather - 2008-10-22

johnsto Wrote:The log shows your version of XBMC is wildly out-of-date - March 2008! You should update to the latest version (Atlantis Beta 2) and then the plugin will work.

It is? I updated it using t3ch updater.

EDIT: Have updated it now manually and it works fine Smile Sorry about that!


- gavjbrown - 2008-10-22

lukerayner Wrote:Is yours working now gavjbrown?

Yes mine was working fine until today. Im sorry I can help you much as I dont really understand what im doing anyway.


Not seeing the list of programmes - redwax - 2008-10-24

I have installed this plugin as per the instructions (I'm very excited about the prospect of this working by the way) and havebrowsed through, selected a channel, say bbc, selected all, waited whilst loading directory (it sits of retreived 0 items) and then I am ledt with no programmes, just able to return to the list of channels again.

I have looked in the log and it seems to be finding programms, just not giving me a list of them in xbmc. Sample from the end of the log is:

2008-10-24 16:00:47,250 INFO Found item: ident, bbc_one
2008-10-24 16:00:47,250 INFO Found item: programme, b00drwv5
2008-10-24 16:00:47,312 INFO Read playlist for b00dpwyp...
2008-10-24 16:00:47,312 INFO Getting XML playlist at URL: http://www.bbc.co.uk/iplayer/playlist/b00dpwyp
2008-10-24 16:00:47,358 INFO Parsing playlist XML...
2008-10-24 16:00:47,375 INFO Found programme: After You've Gone: Series 3: Not Love Actually
2008-10-24 16:00:47,375 INFO Found item: ident, bbc_one
2008-10-24 16:00:47,375 INFO Found item: programme, b00dpwvm
2008-10-24 16:00:47,483 INFO Read playlist for b00dq8tn...
2008-10-24 16:00:47,483 INFO Getting XML playlist at URL: http://www.bbc.co.uk/iplayer/playlist/b00dq8tn
2008-10-24 16:00:47,562 INFO Parsing playlist XML...
2008-10-24 16:00:47,578 INFO Found programme: Merlin: The Dragon's Call
2008-10-24 16:00:47,578 INFO Found item: ident, bbc_one
2008-10-24 16:00:47,592 INFO Found item: programme, b00dq8mr
2008-10-24 16:00:47,671 INFO Read playlist for b00dmsmv...
2008-10-24 16:00:47,687 INFO Getting XML playlist at URL: http://www.bbc.co.uk/iplayer/playlist/b00dmsmv
2008-10-24 16:00:47,780 INFO Parsing playlist XML...
2008-10-24 16:00:47,796 INFO Found programme: After You've Gone: Series 3: Dawn of the Dad
2008-10-24 16:00:47,812 INFO Found item: ident, bbc_one
2008-10-24 16:00:47,812 INFO Found item: programme, b00dmsf9

Any help would be greatly appreciated!


- johnsto - 2008-10-25

Heads-up! I just committed some experimental Radio support, so try it out and let me know what you think Smile

It's currently only in SVN, so you'll need to use this release:
http://xbmc-iplayer.googlecode.com/svn/trunk/xbmc-iplayer-plugin.zip


- Rocky5 - 2008-10-26

johnsto Wrote:Heads-up! I just committed some experimental Radio support, so try it out and let me know what you think Smile

It's currently only in SVN, so you'll need to use this release:
http://xbmc-iplayer.googlecode.com/svn/trunk/xbmc-iplayer-plugin.zip

very nice works fine for me though it would be better if you had made the radios have there one section so like this.

TV Shows
-BBC1
-BBC2
-***
Radio Stations
-Radio1
-Radio2
-***

this way its less cluttered.


- whufclee - 2008-10-26

I have to agree about having TV & Radio as seperate entities. it looks a good plugin though.

I've found that if you're in Library mode the filenames don't display correctly - it displays the actual filename thats on the server and not a clear description of the program. You can just about work out the radio ones but the tv ones get more tricky!

Good work though.


- marlboroman1 - 2008-10-26

thanks lot for adding radio support and it seems to work as expected but I think I clutters the main the list some what. I was wondering if you would consider at some point making a separate audio plugin for radio as it would prevent clutter fit better into xbmc in the music section.