Skip to content

Instantly share code, notes, and snippets.

@PierfrancescoSoffritti
Created February 11, 2019 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierfrancescoSoffritti/8054d4ef0a79787a2004d528b9023c89 to your computer and use it in GitHub Desktop.
Save PierfrancescoSoffritti/8054d4ef0a79787a2004d528b9023c89 to your computer and use it in GitHub Desktop.
android-youtube-player, an open source alternative to the official YouTube Player API: https://medium.com/@soffritti.pierfrancesco/how-to-play-youtube-videos-in-your-android-app-c40427215230
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView
android:id="@+id/youtube_player_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:videoId="S0Q4gqBUs7c"
app:autoPlay="true"
app:showFullScreenButton="false" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment