This plug-in streams high quality YouTube videos to your Android Device.
This plug-in is based on this project:
http://keyeslabs.com/joomla/projects/youtube-player/244-open-youtube-activity-project-launched-by-keyes-labsGoogle Coded project is located here:
http://code.google.com/p/android-youtube-player/http://code.google.com/p/android-youtube-player/wiki/OpenYouTubePlayerActiviyInstructionsIMPORTANT NOTICE: This plug-in works with the YouTube API (as of February 2013). When
YouTube makes changes to that API this plugin may cease to operate. This may require you
to wait for an updated jar to be be released; you will need to recompile your project
with the new jar and update your app binary. By purchasing and using this plugin you
are agreeing that you will not hold the developer liable for any damages or inconveniences
due to changes to the Youtube API.
Sample video ID:
J467jzLlDcc
This plug-in requires "openyoutubeactivity.jar" to be added to your Build Path.
1. Copy the openyoutubeactivity.jar to your libs folder
2. Right click the jar and select "Add To Build path". A copy of the jar is in the source-android
folder OR you can download it from here.
http://dl.dropbox.com/u/73858894/openyoutubeactivity.jar. This is the jar that has been tested and confirmed to works with this plug/code version 2.0 Use
of other jars is not supported by the developer - although they MAY work.
This plug-in requires you to make the following additions to the Androindmanifext.xml
1. add these to your "required device permissions" element if they don't already exist.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
note: "android.permission.INTERNET" is most likely in your Android manifest already.
You do not need to add it twice.
2. You MUST add this activity to your AndroidManifest.
<activity android:name="com.keyes.youtube.OpenYouTubePlayerActivity" android:configChanges="orientation"></activity>
3. You MAY need to add the following activity. If you download a full app source code with
this plug-in installed in your control panel it will already be present. If you are adding this
source code to an existing project source code it will likely need to be added.
<activity android:name=".Sp_youtube_android" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity>
iOS Project
------------------------
Not Supported. Use the BT Launch Native App and information here to stream YouTube on iOS
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/YouTubeLinks.htmlAndroid Project
------------------------
Sp_youtube_android.java
screen_sp_youtube_android.xml
openyoutubeactivity.jar (supported version included with package or from the download link posted above)
JSON Data
------------------------
{"itemId":"BED542DCBE111A3A0FB25B5",
"itemType":"Sp_youtube_android",
"itemNickname":"sp youtube",
"navBarTitleText":"sp youtube",
"videoURL":"J467jzLlDcc"}