Page 1 of 2

BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Fri Apr 08, 2011 7:49 am
by spoyser
NOW UPDATED please refer to this thread http://www.jogglerwiki.com/forum/viewto ... ?f=2&t=129

----------------------------------------------------------------------------------------------------------------------------

http://files.exotica.org.uk/?file=joggl ... Player.tgz

FIXED JERKY PLAYBACK - NOW SILKY SMOOTH (for both OnDemand and Live streams)
Streams are now played using exactly the same mechanism as the SWF manager plays them.

iPlayer is a modified version of the BBC Live app (the one shipped with PNP).

The original BBC Live app was written by Darren Lee.

iPlayer adds the ability to search via an on-screen keyboard through the current iPlayer programme database and play any TV or Radio Program found.

The iPlayer uses the following 20 RSS feeds to supply the data:

http://feeds.bbc.co.uk/iplayer/bbc_1/list/
http://feeds.bbc.co.uk/iplayer/bbc_2/list/
http://feeds.bbc.co.uk/iplayer/bbc_3/list/
http://feeds.bbc.co.uk/iplayer/bbc_4/list/
http://feeds.bbc.co.uk/iplayer/cbeebies/list/
http://feeds.bbc.co.uk/iplayer/cbbc/list/
http://feeds.bbc.co.uk/iplayer/bbc_parliament/list/
http://feeds.bbc.co.uk/iplayer/bbc_news24/list/
http://feeds.bbc.co.uk/iplayer/bbc_alba/list/
http://feeds.bbc.co.uk/iplayer/hd/list/

http://feeds.bbc.co.uk/iplayer/bbc_radio1/list/
http://feeds.bbc.co.uk/iplayer/bbc_1xtra/list/
http://feeds.bbc.co.uk/iplayer/bbc_radio2/list/
http://feeds.bbc.co.uk/iplayer/bbc_radio3/list/
http://feeds.bbc.co.uk/iplayer/bbc_radio4/list/
http://feeds.bbc.co.uk/iplayer/radio_four_extra/list/
http://feeds.bbc.co.uk/iplayer/bbc_5live/list/
http://feeds.bbc.co.uk/iplayer/bbc_5liv ... xtra/list/
http://feeds.bbc.co.uk/iplayer/bbc_6music/list/
http://feeds.bbc.co.uk/iplayer/bbc_7/list/

These are requested on startup of the application and normally take only a few seconds to all load, as a feed is loaded the corresponding channel icon on the iPlayer screen will light up to indicate this channel is now in the database and fully searchable, the database is recreated each time the application is restarted.

Individual channels can also be switched on/off simply by clicking their icon in the iPlayer screen.

To Use:
To watch live TV just click the appropriate icon in the main screen.
To search iPlayer click the iPlayer icon from the main screen (this appears as soon as one feed has loaded)
Click the input-box to bring up the keyboard, enter search term (currently it uses a simple text match), hit "Done", followed by "Find".
Click a thumbnail to play/listen to a programme.
When playing, to close a programme click the close icon in the top-left corner.

To install (NOTE the 2 new chmod commands)

telnet into joggler, then

cd media
mkdir iPlayer
cd iPlayer
wget ftp://aero.exotica.org.uk/pub/mirrors/exotica/joggler/files/iPlayer.tgz
tar xvf iPlayer.tgz
rm iPlayer.tgz
chmod +x app.cgi
chmod +x iPlayer.cgi
cd
cd media/appshop
vi applications.xml

i (enters insert mode)
Add the following immediately before the final </applications>

<app id="iPlayer" title="iPlayer" loc="/media/iPlayer/" icon="icon.swf" app="main.swf"/>

Then hit ESC followed by :x return (save and exit)

Restart joggler

NOTE the final slash at the end of the app tag, if you miss this you will get no icons on the main joggler screen!!

Comments appreciated.



For those interested the onDemand streams are actually played by launching the URL:

http://www.bbc.co.uk/emp/10player.swf?config_settings_autoPlay=true&config_settings_transportHeight=50&playlist=http://www.bbc.co.uk/iplayer/playlist/pid

where pid is the unique program identifier

And the live streams:
http://www.bbc.co.uk/emp/10player.swf?config_settings_autoPlay=true&config_settings_transportHeight=50&playlist=http://www.bbc.co.uk/iplayer/playlist/pgm

where pgm is the channel identifier

I have now also decompiled the original 10player.swf and discovered a few neat config_setting parameters that I will add in the near future.

In order to acheive the smooth playback of the streams it is necessary to do this:

export LD_LIBRARY_PATH=./:/lib/intel:/openpeak/tango/common_libs
export KMP_DUPLICATE_LIB_OK=TRUE
export DISPLAY=:0.0
export SDL_AUDIODRIVER=alsa

cd /openpeak/tango

/bin/busybox kill -STOP `ps | grep "tango.*opphone" | grep -v grep | awk '{print $1}'`
/bin/busybox kill -STOP `ps | grep "operamobile" | grep -v grep | awk '{print $1}'`

Before launching the feed (and reversing it when stopping the feed).
Anyone know what this actually does?

Re: BBC iPlayer for Joggler (stock OS)

Posted: Fri Apr 08, 2011 12:40 pm
by offbeatdave
Wow! Have just found this whilst checking out the forum in my lunch break! Can't wait to try it as soon as possible! Thanks (in advance and in anticipation!).

Re: BBC iPlayer for Joggler (stock OS)

Posted: Fri Apr 08, 2011 2:34 pm
by BuZz
http://files.exotica.org.uk/?file=joggl ... Player.tgz would be a better url, as it will redirect to a random mirror - the url above is on my home adsl, which is the slowest of available mirrors, although not actually a problem, just saying ;-)

Re: BBC iPlayer for Joggler (stock OS)

Posted: Fri Apr 08, 2011 7:05 pm
by gegs
Fantastic functionality, but is there a reason why the feeds are so jerky compared with the ones in gforums' SWF Manager implementation in P'n'P?
Admittedly, they are only the live feeds.

Re: BBC iPlayer for Joggler (stock OS)

Posted: Sat Apr 09, 2011 7:55 am
by spoyser
gegs:

I have investigated this and too be honest I never realized before how much smoother it is when played through SWF (even the on demand feeds).

If I could implement the same mechanism for playing the feeds as SWF then the playblack would be just as smooth, unfortunately I have no idea how SWF does it at the moment :-(

If someone can shed any light on how SWF launches a URL, and puts the close button on screen that would be most appreciated

Re: BBC iPlayer for Joggler (stock OS)

Posted: Sat Apr 09, 2011 10:27 am
by BuZz
i just noticed the file you uploaded isnt a tgz. its just a tar. want me to rename it ?

Re: BBC iPlayer for Joggler (stock OS)

Posted: Tue Apr 12, 2011 12:28 pm
by Ben
Hi. I've got what's probably a daft question, but hoping it rings a bell with someone. I've installed as per instructions, and the app starts - and channel images are populated. I'm inferring that means the feeds are found and loaded. I can also search and find individual programs. But I can't get either live streams or found programs to play. Tapping the Joggler screen on the icon/link doesn't start the playback. Am I missing something silly?

Re: BBC iPlayer for Joggler (stock OS)

Posted: Tue Apr 12, 2011 6:32 pm
by spoyser
Ben,

If you are able to search for individual programs then it should work, to play you need to click the thumbnail icon next to the program name, to play live streams click on the larger icons on the first screen.

I am about to upload a new version whith much smoother playpack of the streams so I would recommend waiting for that one and then seeing if you still have the same issue.

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Tue Apr 12, 2011 7:28 pm
by spoyser
Ben,

I think I have just realized the issue you are having, I presume you downloaded it today after about 10:30am, in this case you have the newer version, and the installation is very slightly different.

You just need to telnet in and navigate to the /media/iPlayer directory and perform these 2 commands:

chmod +x app.cgi
chmod +x iPlayer.cgi

These scripts are now used to launch the streams, therefore they have to be executable.

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Tue Apr 12, 2011 8:13 pm
by Ben
Thanks - that solved it. Working great now :-)

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Tue Apr 12, 2011 10:09 pm
by gegs
Wow! I am totally gobsmacked. The SWF Manager does a pretty good job with the live feeds but the on demand facility on this iPlayer app is superb. Playback is slightly less smooth with the on demand feeds - but only just - although that is nitpicking. Where this has a massive edge over the SWF feeds (apart from on demand itself) is the ability to play subtitles. Anything which increases the Joggler's accessibility deserves hearty congratulations.

Very well done!

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Wed Apr 13, 2011 3:22 pm
by danjog2
fantastic, can't wait to try this at the weekend!

Seriously guys if you haven't donated to BuZz yet, what are you waiting for?

This is his Amazon wishlist

http://www.amazon.co.uk/wishlist/253IVVZP6VTUC

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Wed Apr 13, 2011 5:32 pm
by BuZz
This iplayer stuff is nowt to do with me though :)

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Thu Apr 14, 2011 2:37 am
by moka
Superb stuff, been waiting for something like this for a while now! Loving the ondemand feature!

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Thu Apr 14, 2011 9:37 am
by dave
Wow, works a treat, love the iplayer section.

Thanks!

Is it possible to remove some of the radio stations from the iPlayer section that I am never going to listen to or some of the TV channels from the main screen? Never heard of BBC Alba let alone watched it!

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Thu Apr 14, 2011 11:17 pm
by ordessa
OK..1 recovered Joggler... Squeeze play added
OK

added this expecting the worst..
and WOW

Flipping heck! this works well!!!!!!!!

Well done that man!

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Fri Apr 15, 2011 12:03 am
by gegs
dave wrote:Never heard of BBC Alba let alone watched it!
Alba is Gaelic for Scotland. It's a Gaelic language channel that only broadcasts limited hours. I don't speak the language but I suppose it's a great thing to have, especially for those who do speak it but perhaps live outside the broadcast area. You can cheerfully ignore it - along with all the radio channels you don't listen to.

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Fri Apr 15, 2011 12:14 am
by BuZz
[drunken post edited].. it wasn't worth the read anyway ;-)

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Mon Apr 18, 2011 9:22 pm
by offbeatdave
Just to add my thanks for this - finally got round to installing it last night and it is brilliant! Thank you!

Re: BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Posted: Wed May 11, 2011 9:05 am
by mo55y
Hi
installed the iPlayer ...Icons come up and the programmes play beautifully...very impressed

one problem the off/back button in the top left screen does not function.....I have to reboot to get out :?

button changes from white to red when pressed so seems to be recognised

any clues?

Cheers