BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
spoyser
Posts: 134
Joined: Mon Mar 07, 2011 6:45 pm

BBC iPlayer/Live for stock OS - FIXED JERKY PLAYBACK

Post by spoyser » Fri Apr 08, 2011 7:49 am

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?
Last edited by spoyser on Thu Jul 07, 2011 9:26 am, edited 4 times in total.

User avatar
offbeatdave
Posts: 1037
Joined: Wed Mar 09, 2011 10:43 pm

Re: BBC iPlayer for Joggler (stock OS)

Post by offbeatdave » Fri Apr 08, 2011 12:40 pm

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!).
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!

User avatar
BuZz
Site Admin
Posts: 1450
Joined: Fri Mar 04, 2011 1:15 am

Re: BBC iPlayer for Joggler (stock OS)

Post by BuZz » Fri Apr 08, 2011 2:34 pm

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 ;-)

gegs
Posts: 1143
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

Re: BBC iPlayer for Joggler (stock OS)

Post by gegs » Fri Apr 08, 2011 7:05 pm

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.

spoyser
Posts: 134
Joined: Mon Mar 07, 2011 6:45 pm

Re: BBC iPlayer for Joggler (stock OS)

Post by spoyser » Sat Apr 09, 2011 7:55 am

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

User avatar
BuZz
Site Admin
Posts: 1450
Joined: Fri Mar 04, 2011 1:15 am

Re: BBC iPlayer for Joggler (stock OS)

Post by BuZz » Sat Apr 09, 2011 10:27 am

i just noticed the file you uploaded isnt a tgz. its just a tar. want me to rename it ?

Ben
Posts: 15
Joined: Tue Apr 12, 2011 12:23 pm

Re: BBC iPlayer for Joggler (stock OS)

Post by Ben » Tue Apr 12, 2011 12:28 pm

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?

spoyser
Posts: 134
Joined: Mon Mar 07, 2011 6:45 pm

Re: BBC iPlayer for Joggler (stock OS)

Post by spoyser » Tue Apr 12, 2011 6:32 pm

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.

spoyser
Posts: 134
Joined: Mon Mar 07, 2011 6:45 pm

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

Post by spoyser » Tue Apr 12, 2011 7:28 pm

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.

Ben
Posts: 15
Joined: Tue Apr 12, 2011 12:23 pm

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

Post by Ben » Tue Apr 12, 2011 8:13 pm

Thanks - that solved it. Working great now :-)

gegs
Posts: 1143
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

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

Post by gegs » Tue Apr 12, 2011 10:09 pm

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!

danjog2
Posts: 60
Joined: Fri Mar 04, 2011 12:01 pm

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

Post by danjog2 » Wed Apr 13, 2011 3:22 pm

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

User avatar
BuZz
Site Admin
Posts: 1450
Joined: Fri Mar 04, 2011 1:15 am

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

Post by BuZz » Wed Apr 13, 2011 5:32 pm

This iplayer stuff is nowt to do with me though :)

moka
Posts: 34
Joined: Thu Apr 14, 2011 2:36 am

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

Post by moka » Thu Apr 14, 2011 2:37 am

Superb stuff, been waiting for something like this for a while now! Loving the ondemand feature!

dave
Posts: 6
Joined: Thu Apr 14, 2011 9:35 am

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

Post by dave » Thu Apr 14, 2011 9:37 am

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!

ordessa
Posts: 79
Joined: Tue Mar 15, 2011 3:25 pm

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

Post by ordessa » Thu Apr 14, 2011 11:17 pm

OK..1 recovered Joggler... Squeeze play added
OK

added this expecting the worst..
and WOW

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

Well done that man!

gegs
Posts: 1143
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

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

Post by gegs » Fri Apr 15, 2011 12:03 am

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.

User avatar
BuZz
Site Admin
Posts: 1450
Joined: Fri Mar 04, 2011 1:15 am

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

Post by BuZz » Fri Apr 15, 2011 12:14 am

[drunken post edited].. it wasn't worth the read anyway ;-)

User avatar
offbeatdave
Posts: 1037
Joined: Wed Mar 09, 2011 10:43 pm

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

Post by offbeatdave » Mon Apr 18, 2011 9:22 pm

Just to add my thanks for this - finally got round to installing it last night and it is brilliant! Thank you!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!

mo55y
Posts: 2
Joined: Wed May 11, 2011 8:59 am

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

Post by mo55y » Wed May 11, 2011 9:05 am

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

Post Reply