Patched

89 views
Skip to first unread message

Naushad Kasu

unread,
Jan 20, 2012, 5:17:51 PM1/20/12
to Android YouTube Player
I patched the source and provided an update that works. You can
download the file as an attachment to the comment:
http://code.google.com/p/android-youtube-player/issues/detail?id=3

Instructions:
1) Load the jar into your project

2) Add to your manifest file:

<activity
android:name="com.controlledsenility.android.youtube.OpenYouTubePlayerActivity"
android:configChanges="orientation"
/>

3) Call the activity the same way as before:

String url = "http://www.youtube.com/watch?v=yourvideoid";
Uri uri = Uri.parse(url);
String videoId = uri.getQueryParameter("v");
Intent videoIntent = new Intent(null, Uri.parse("ytv://" + videoId),
this,OpenYouTubePlayerActivity.class);
startActivity(videoIntent);
Reply all
Reply to author
Forward
0 new messages