2013-09-16, 09:56
Hi everyone,
A few months ago, BBC changed licensing agreement and LiveStation, the official BBC provider, implemented a 'token' system which prevents users from blocked countries from watching the RTMP stream.
I have never coded using Python before and am struggling to debug this script which sometimes works and plays the RTMP stream and sometimes will just hang.
https://github.com/seddonm1/plugin.video...default.py
I believe the xbmc.Player(xbmc.PLAYER_CORE_AUTO).play(rtmp_url) is hanging if it is unable to play the stream and is very ungracefully hanging.
If any Python gurus could rip apart my script and add some decent error handling I would be very grateful.
Cheers
A few months ago, BBC changed licensing agreement and LiveStation, the official BBC provider, implemented a 'token' system which prevents users from blocked countries from watching the RTMP stream.
I have never coded using Python before and am struggling to debug this script which sometimes works and plays the RTMP stream and sometimes will just hang.
https://github.com/seddonm1/plugin.video...default.py
I believe the xbmc.Player(xbmc.PLAYER_CORE_AUTO).play(rtmp_url) is hanging if it is unable to play the stream and is very ungracefully hanging.
If any Python gurus could rip apart my script and add some decent error handling I would be very grateful.
Cheers