Kodi Community Forum
[RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - 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] iPlayer - BBC Video and Music Plugin (UK only!) (/showthread.php?tid=51322)



RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2013-12-20

(2013-12-20, 10:57)zag Wrote: Yes dougp, please submit your changes to the Google code repo so we are collaborating properly.

@exobuzz, when your happy with it working please consider submitting it to the official xbmc repo. At the moment this add-on has very little exposure so having it on the public website may bring in new developers.

it also might bring in the BBC lawyers. I'm not even sure it would be accepted, and have avoided submitting due to uncertainty regarding the use of the plugin. It's not an obvious one like some which are not even allowed to be talked about on this site, but running the plugin may well breach the T&Cs.

Quote:<!--This code and data form part of the BBC iPlayer content protection system. Tampering with, removal of, misuse of, or unauthorised use of this code or data constitutes circumvention of the BBC's content protection measures and may result in legal action. BBC © 2012.-->

of course, what is unauthorised use. Is grabbing the XML and feeding the contents to a player a breach ? We are not doing much different than is done by the browser/flash player etc, or other devices etc.

further reading

http://www.freesoftwaremagazine.com/articles/bbc_drm_and_demise_get_iplayer_what_hell_going

So bearing in mind all this, I guess I'd like to stick with the status quo


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2013-12-20

Oh and the BBC has sent cease and desist letters to other projects from pc apps that allowed streaming of radio, to android apps for media streaming, as well as apps that grabbed news articles. However as the BBC is tax payer funded, it's always been a bit confusing as to what is and isn't ok (What the BBC says is and isn't OK may not be actually what is and isn't ok).

BBC has been disallowed previously to implement DRM on freeview for example. http://news.bbc.co.uk/1/hi/8352241.stm

and in regards to their T&Cs

http://www.bbc.co.uk/terms/additional_iplayer.shtml

I would be interested in whether the BBC is allowed to specify what device you can and cant stream to for those that have paid their licence fee. Are they allowed to force a "BBC Authorised Application"? In terms of their wanting to implement DRM on freeview which would have allowed this for transmitted programs, OFCOM said no. Grey area..

http://www.bbc.co.uk/blogs/bbcinternet/2010/03/bbc_iplayer_content_protection.html (check first comment too)

Anyway. just some thoughts.

Ideally the BBC would officially support XBMC.. that would be the best solution Smile


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - zag - 2013-12-20

We already have the channel 4od on our official repository, but its of course up to you whether you submit or not.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - VanZan - 2013-12-20

So umm sorry to be dense but do I got for buzz's version or dougp's version? Bit like buses really....you wait months for some activity then two new versions come within 24 hours!!! Big Grin Thanks to dougp for moving things along.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - zag - 2013-12-20

(2013-12-20, 13:06)VanZan Wrote: So umm sorry to be dense but do I got for buzz's version or dougp's version? Bit like buses really....you wait months for some activity then two new versions come within 24 hours!!! Big Grin Thanks to dougp for moving things along.

Try them out and report any problems back.

Hopefully we can merge the code into a nicely working add-on.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2013-12-20

(2013-12-20, 12:53)zag Wrote: We already have the channel 4od on our official repository, but its of course up to you whether you submit or not.

you might as well remove it though. it is broken, and unlikely ever to be fixed (DRM etc)


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - dougp - 2013-12-20

(2013-12-20, 13:06)VanZan Wrote: So umm sorry to be dense but do I got for buzz's version or dougp's version? Bit like buses really....wait for some activity then two new versions come within 24 hours!!! Big Grin Thanks to dougp for moving things along.

Mine, obviously! Big Grin

Seriously, I didn't intend to raise a debate, but I have to say discussion is good. I hadn't seen so much info on the practical concerns and issues before, its really good to get this level of detail.

Please view my version as a preview of various changes that I'm proposing, not a release. Feel free to test it out and post any issues, but my intention is to submit my changes for inclusion in an official release. Time, brainpower and various seasonal excuses for mental shutdown permitting!


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - Milhouse - 2013-12-20

What would be _really_ nice is if the iplayer2 addon (whichever version!) could use "proper" logging as the current logging is mental - it's not using the standard xbmc logging mechanism (so can't be increased or reduced, everything is output as a NOTICE even though the level the addon thinks its outputting is INFO), and there's frankly far too much of it. Cleaning up the logging so that it was native to xbmc would be much appreciated (I tail my logs while testing stuff, and the iplayer logging annoys me in its wrongness!) Smile


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2013-12-20

Some logging cleanup has been done in this release. I'm sure more will come later. Patches welcome Smile


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2013-12-20

couple of weeks ago the limelight live streams were not working, so in the latest code I force akamai for the live streams. Just tested now and they are working again. Just illustrates how most of the issues are often out of my hands! Now I'll have to re-enable it again and push out another version.

v2.5.1 now available from http://code.google.com/p/xbmc-iplayerv2/downloads/list

minor update:
* re-enable limelight cdn for live streams (they were not working before)
* xbmc4xbox compatibility fix.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - castalla - 2013-12-20

(2013-12-20, 07:28)exobuzz Wrote: v2.5.0 is available from http://code.google.com/p/xbmc-iplayerv2/downloads/list

changes:
* implemented live tv functionality into main iplayer2.py code
* various code cleanups/fixes
* more reliable removal of resume lock file

Thanks for this version. Installed okay - seems a bit laggy compared with 2.4.17 (the only version previously which worked for me - 2.4.18 never worked).



Maybe it's coincidental but News Live isn't working - it was working yesterday with earlier version. Other live channels working fine.

update: News not working on 2.5.1


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2013-12-20

it's working here.. you must post a debug log when reporting problems. Just to note: I am not interested in helping anyone who isn't based in the UK though, and who is trying to watch via some vpn/proxy. There are far too many people reporting issues that are likely related to geolocking. Not saying you are, just a general note.

Live stuff is flakey. Sometimes the CDN doesn't respond.. Sometime it fails. All the feeds some from the same source, so if one channel works, others should. if they dont, then it is likely a CDN issue. You can try forcing limelight/akamai with 2.5.1 for live streams in case one CDN is more reliable for you.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - Milhouse - 2013-12-20

With 2.5.1, trying to play Pointless Celebrities Series 5 Episode 9 on BBC One (not live) - it plays for a few seconds then playback ends and returns to the list.

The following appears in the log as playback ends:
Code:
14:23:41 1098.927979 T:2754716752 WARNING: Previous line repeats 2 times.
14:23:41 1098.927979 T:2754716752  NOTICE: COMXPlayer::OnExit()
14:23:41 1098.928711 T:2754716752  NOTICE: OMXPlayer: eof, waiting for queues to empty
14:23:41 1098.928955 T:2754716752  NOTICE: OMXPlayer: closing audio stream
14:23:41 1098.929077 T:2754716752  NOTICE: Closing audio stream
14:23:41 1098.929199 T:2754716752  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
14:23:42 1098.939697 T:2701128784  NOTICE: thread end: OMXPlayerAudio::OnExit()
14:23:42 1099.018799 T:2754716752  NOTICE: OMXPlayer: closing video stream
14:23:42 1099.019043 T:2754716752  NOTICE: Closing video stream
14:23:42 1099.019165 T:2754716752  NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
14:23:42 1099.019531 T:2726294608   ERROR: OMXPlayerVideo: Got MSGQ_IS_ERROR(-1) Aborting
14:23:42 1099.019653 T:2726294608  NOTICE: thread end: video_thread
14:23:42 1099.067627 T:2754716752  NOTICE: COMXPlayer::OnExit() deleting demuxer
14:23:42 1099.067993 T:2754716752  NOTICE: COMXPlayer::OnExit() deleting input stream
14:23:42 1099.171509 T:2885678160  NOTICE: iplayer2.py: INFO iPlayer <iplayer2.IPlayer object at 0xa51b6420>: Playback ended.
14:23:42 1099.171875 T:2885678160  NOTICE: .
14:23:42 1099.174561 T:2885678160  NOTICE: iplayer2.py: INFO iPlayer <iplayer2.IPlayer object at 0xa51b6420>: Saving resume point for pid b03l2qp5 at 10.141001s.
14:23:42 1099.174927 T:2885678160  NOTICE: .
14:23:42 1099.181396 T:2885678160  NOTICE: iplayer2.py: INFO iPlayer <iplayer2.IPlayer object at 0xa51b6420>: Saving resume point (pid b03l2qp5, seekTime 10.141001s, dateAdded 1387549422) to resume file
14:23:42 1099.181885 T:2885678160  NOTICE: .
14:23:42 1099.187622 T:2885678160  NOTICE: iplayer2.py: INFO iPlayer: Saving 2 entries to /storage/.xbmc/userdata/addon_data/plugin.video.iplayer/iplayer_resume.txt
14:23:42 1099.188232 T:2885678160  NOTICE: .
14:23:42 1099.193359 T:2885678160  NOTICE: iplayer2.py: INFO iPlayer <iplayer2.IPlayer object at 0xa51b6420>: De-initialising...
14:23:42 1099.193726 T:2885678160  NOTICE: .
14:23:42 1099.195923 T:2885678160  NOTICE: iplayer2.py: INFO iPlayer <iplayer2.IPlayer object at 0xa51b6420>: Removing lock file.
14:23:42 1099.196289 T:2885678160  NOTICE: .
14:23:42 1099.546753 T:2852123728  NOTICE: Thread BackgroundLoader start, auto delete: false
14:23:42 1099.547241 T:3045139536 WARNING: CActiveAE::StateMachine - signal: 18 from port: timer not handled for state: 5
14:23:42 1099.615112 T:2852123728  NOTICE: Thread JobWorker start, auto delete: true
14:23:42 1099.616821 T:2754716752  NOTICE: Thread LanguageInvoker start, auto delete: false
14:23:43 1100.125854 T:3045151568  NOTICE: DVDPlayer: finished waiting
14:23:43 1100.135132 T:3045139536  NOTICE: Previous line repeats 1 times.
14:23:43 1100.135132 T:3045139536  NOTICE: Found 1 Lists of Devices
14:23:43 1100.135376 T:3045139536  NOTICE: Enumerated Pi devices:
14:23:43 1100.135620 T:3045139536  NOTICE:     Device 1
14:23:43 1100.135864 T:3045139536  NOTICE:         m_deviceName      : HDMI
14:23:43 1100.136108 T:3045139536  NOTICE:         m_displayName     : HDMI
14:23:43 1100.136230 T:3045139536  NOTICE:         m_displayNameExtra:
14:23:43 1100.136353 T:3045139536  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
14:23:43 1100.136475 T:3045139536  NOTICE:         m_channels        : FL,FR
14:23:43 1100.136719 T:3045139536  NOTICE:         m_sampleRates     : 48000
14:23:43 1100.136841 T:3045139536  NOTICE:         m_dataFormats     : AE_FMT_S16LE
14:23:43 1100.136963 T:3045139536  NOTICE:     Device 2
14:23:43 1100.137207 T:3045139536  NOTICE:         m_deviceName      : Analogue
14:23:43 1100.137329 T:3045139536  NOTICE:         m_displayName     : Analogue
14:23:43 1100.137451 T:3045139536  NOTICE:         m_displayNameExtra:
14:23:43 1100.137573 T:3045139536  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
14:23:43 1100.137817 T:3045139536  NOTICE:         m_channels        : FL,FR
14:23:43 1100.137939 T:3045139536  NOTICE:         m_sampleRates     : 48000
14:23:43 1100.138062 T:3045139536  NOTICE:         m_dataFormats     : AE_FMT_S16LE
14:23:43 1100.156982 T:2726294608  NOTICE: Thread JobWorker start, auto delete: true
14:23:43 1100.488892 T:2885678160  NOTICE: Previous line repeats 1 times.
14:23:43 1100.488892 T:2885678160 WARNING: CPythonInvoker(24, /storage/.xbmc/addons/plugin.video.iplayer/default.py): the python script "/storage/.xbmc/addons/plugin.video.iplayer/default.py" has left several classes in memory that we couldn't clean up. The classes include: N14PythonBindings30XBMCAddon_xbmc_Player_DirectorE
14:23:43 1100.879395 T:2754716752  NOTICE: -->Python Interpreter Initialized<--

Edit: I'm in London. Smile


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2013-12-20

(2013-12-20, 16:25)MilhouseVH Wrote: With 2.5.1, trying to play Pointless Celebrities Series 5 Episode 9 on BBC One (not live) - it plays for a few seconds then playback ends and returns to the list.

debug logs should be pasted to pastebin.com or xbmclogs.com or similar (and complete logs please).

what setting do you have for Settings -> Video -> File Lists -> Default Select Action ? is it set to "Play"

Your log is not complete, but it looks as though player got an EOF. try again / try changing video source preference. I've not tested it on the PI, but the plugin just takes a URL and gives it to xbmc to play. after that it is out of the control of the plugin.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - castalla - 2013-12-20

(2013-12-20, 16:18)exobuzz Wrote: it's working here.. you must post a debug log when reporting problems. Just to note: I am not interested in helping anyone who isn't based in the UK though, and who is trying to watch via some vpn/proxy. There are far too many people reporting issues that are likely related to geolocking. Not saying you are, just a general note.

Live stuff is flakey. Sometimes the CDN doesn't respond.. Sometime it fails. All the feeds some from the same source, so if one channel works, others should. if they dont, then it is likely a CDN issue. You can try forcing limelight/akamai with 2.5.1 for live streams in case one CDN is more reliable for you.

Thanks for the update. You're correct! I forced Limelight and News now working!

Cheers