Last active
February 12, 2019 06:23
-
-
Save PierfrancescoSoffritti/b8139fc90851bdf3b63bc76302158b17 to your computer and use it in GitHub Desktop.
How to play YouTube videos in an Android WebView: https://medium.com/@soffritti.pierfrancesco/how-to-play-youtube-videos-in-an-android-webview-90e4b89adf79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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:useWebUi="true" /> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment