New YouTube App for Stock OS - Version 1.0 – 10 July 2011
Posted: Sun Jul 10, 2011 9:24 pm
Latest Version YouTube App – Version 1.1 – Released 19 August 2011
See here:
http://www.jogglerwiki.com/forum/viewto ... ?f=2&t=217 )
-------------------------------------------------------------------------------
New YouTube App – Version 1.0 – Released 10 July 2011
-------------------------------------------------------------------------------
Having spent a little while looking into “fixing” the Openpeak YouTube app I finally decided it was quicker and easier to implement an alternative.
So I give to all those sticking by the stock Joggler OS my alternative YouTube app.
(The app is entirely free although donations to my paypal account are of course acceptable :-)
http://www.paypal.com/cgi-bin/webscr?cm ... MQ4YPZKY6Q )
The app is loosely based upon the original one but with a few improvements thrown in:
1) Twice as many built in feeds:
Featured
Most Viewed
Top Rated
Most Popular
Favorites
Trending (aka On The Web)
2) The ability to view more than just the 1st 25 results of a feed
3) A cleaner (IMHO), minimilistic interface with touch screen style scrolling lists
4) Nicer more responsive on screen keyboard (IMHO)
5) And last but by no way least it plays ALL (afaik) embeddable YouTube videos!
(for more info on why the Openpeak app stopped working see here http://groups.google.com/group/youtube- ... 049b015e34 )
At the moment the app uses the embedded YouTube player. TBH the controls on this are a bit fiddly (as they are a bit small on the joggler screen) and I would like to implement a version using the chromeless player with custom controls but that will take a bit more effort and I didn’t want to delay releasing this first version.
For those interested the URLs used to supply the data feeds are:
Featured - http://gdata.youtube.com/feeds/api/stan ... results=10
Most Viewed - http://gdata.youtube.com/feeds/api/stan ... time=today
Top Rated - http://gdata.youtube.com/feeds/api/stan ... results=10
Most Popular - http://gdata.youtube.com/feeds/api/stan ... results=10
Favorites - http://gdata.youtube.com/feeds/api/stan ... results=10
Trending (aka On The Web) - http://gdata.youtube.com/feeds/api/stan ... results=10
More info on this can be found here:
http://code.google.com/apis/youtube/2.0 ... dard_feeds
As with my iPlayer app the SWF is really just a way of obtaining the YouTube video ID and then passing it onto a script that launches a second SWF (supplied by YouTube.com so should always work!) that plays the video, this is done in the youtube.cgi file. If you look in this file you will see toward the end the line that does the launching:
./tango "http://www.youtube.com/swfbin/watch_as3.swf?iv_load_policy=3autoplay=1&controls=1&autohide=1&rel=0&video_id="$app
If you want to play around with the parameters feel free, they are defined here:
http://code.google.com/apis/youtube/pla ... eters.html
You can even use an alternative video player if you so wish (and you know what you are doing) by editing this line appropriately.
To Use:
1) To view a built-in feed, click the appropriate tab, feeds are requested each time a tab is clicked rather than the data being stored, this is due to feeds being updated fairly regularly by YouTube so when you click a tab you are getting the most current version of that feed.
2) To search click the search tab; click the input box; type any words(s) to search on; hit done; hit search button.
3) The 1st 10 Videos in a feed or results of a search are presented in a vertical scrolling list. At the bottom of the list you will usually see the word “more…”, each time this is clicked the next 10 results are added to the list.
4) To view a video tap the thumbnail.
5) When viewing a video tap the screen to toggle between pause and play and also to bring up the volume/mute, transport, closed caption and resolution controls. Hit the X in the top right to stop the video and return to the app.
To install YouTube app
telnet into joggler, then
cd media
mkdir youtube
cd youtube
wget ftp://aero.exotica.org.uk/pub/mirrors/exotica/joggler/files/youtube.tgz
tar xvf youtube.tgz
rm youtube.tgz
chmod +x youtube.cgi (VERY IMPORTANT, this makes the file executable, without this it will NOT work)
cd
cd media/appshop
cp applications.xml applications.original (creates a backup of file, just in case...)
vi applications.xml
i (enters insert mode)
Add the following immediately before the final </applications>
<app id="youtube1" title="youtube1" loc="/media/youtube/" icon="icon.swf" app="main.swf"/>
Then hit ESC followed by :x return (save and exit)
Restart joggler
1st 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!!
2nd NOTE the id and title are “youtube1” not “youtube” so as not to interfere with the exisitng YouTube app
Comments, suggestions and any constructive critisicms are of course welcome!
Hope that all makes sense!
Enjoy!
See here:
http://www.jogglerwiki.com/forum/viewto ... ?f=2&t=217 )
-------------------------------------------------------------------------------
New YouTube App – Version 1.0 – Released 10 July 2011
-------------------------------------------------------------------------------
Having spent a little while looking into “fixing” the Openpeak YouTube app I finally decided it was quicker and easier to implement an alternative.
So I give to all those sticking by the stock Joggler OS my alternative YouTube app.
(The app is entirely free although donations to my paypal account are of course acceptable :-)
http://www.paypal.com/cgi-bin/webscr?cm ... MQ4YPZKY6Q )
The app is loosely based upon the original one but with a few improvements thrown in:
1) Twice as many built in feeds:
Featured
Most Viewed
Top Rated
Most Popular
Favorites
Trending (aka On The Web)
2) The ability to view more than just the 1st 25 results of a feed
3) A cleaner (IMHO), minimilistic interface with touch screen style scrolling lists
4) Nicer more responsive on screen keyboard (IMHO)
5) And last but by no way least it plays ALL (afaik) embeddable YouTube videos!
(for more info on why the Openpeak app stopped working see here http://groups.google.com/group/youtube- ... 049b015e34 )
At the moment the app uses the embedded YouTube player. TBH the controls on this are a bit fiddly (as they are a bit small on the joggler screen) and I would like to implement a version using the chromeless player with custom controls but that will take a bit more effort and I didn’t want to delay releasing this first version.
For those interested the URLs used to supply the data feeds are:
Featured - http://gdata.youtube.com/feeds/api/stan ... results=10
Most Viewed - http://gdata.youtube.com/feeds/api/stan ... time=today
Top Rated - http://gdata.youtube.com/feeds/api/stan ... results=10
Most Popular - http://gdata.youtube.com/feeds/api/stan ... results=10
Favorites - http://gdata.youtube.com/feeds/api/stan ... results=10
Trending (aka On The Web) - http://gdata.youtube.com/feeds/api/stan ... results=10
More info on this can be found here:
http://code.google.com/apis/youtube/2.0 ... dard_feeds
As with my iPlayer app the SWF is really just a way of obtaining the YouTube video ID and then passing it onto a script that launches a second SWF (supplied by YouTube.com so should always work!) that plays the video, this is done in the youtube.cgi file. If you look in this file you will see toward the end the line that does the launching:
./tango "http://www.youtube.com/swfbin/watch_as3.swf?iv_load_policy=3autoplay=1&controls=1&autohide=1&rel=0&video_id="$app
If you want to play around with the parameters feel free, they are defined here:
http://code.google.com/apis/youtube/pla ... eters.html
You can even use an alternative video player if you so wish (and you know what you are doing) by editing this line appropriately.
To Use:
1) To view a built-in feed, click the appropriate tab, feeds are requested each time a tab is clicked rather than the data being stored, this is due to feeds being updated fairly regularly by YouTube so when you click a tab you are getting the most current version of that feed.
2) To search click the search tab; click the input box; type any words(s) to search on; hit done; hit search button.
3) The 1st 10 Videos in a feed or results of a search are presented in a vertical scrolling list. At the bottom of the list you will usually see the word “more…”, each time this is clicked the next 10 results are added to the list.
4) To view a video tap the thumbnail.
5) When viewing a video tap the screen to toggle between pause and play and also to bring up the volume/mute, transport, closed caption and resolution controls. Hit the X in the top right to stop the video and return to the app.
To install YouTube app
telnet into joggler, then
cd media
mkdir youtube
cd youtube
wget ftp://aero.exotica.org.uk/pub/mirrors/exotica/joggler/files/youtube.tgz
tar xvf youtube.tgz
rm youtube.tgz
chmod +x youtube.cgi (VERY IMPORTANT, this makes the file executable, without this it will NOT work)
cd
cd media/appshop
cp applications.xml applications.original (creates a backup of file, just in case...)
vi applications.xml
i (enters insert mode)
Add the following immediately before the final </applications>
<app id="youtube1" title="youtube1" loc="/media/youtube/" icon="icon.swf" app="main.swf"/>
Then hit ESC followed by :x return (save and exit)
Restart joggler
1st 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!!
2nd NOTE the id and title are “youtube1” not “youtube” so as not to interfere with the exisitng YouTube app
Comments, suggestions and any constructive critisicms are of course welcome!
Hope that all makes sense!
Enjoy!