You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+11
Original file line number
Diff line number
Diff line change
@@ -389,6 +389,17 @@ If you need to change the orientation of your Activity/Fragment, remember that b
389
389
</application>
390
390
```
391
391
392
+
### Playlist
393
+
You can initialize the player to play playlists instead of videos. This can be done by setting `listType` to `playlist` and then providing the id of the playlist to `list`.
394
+
395
+
```kotlin
396
+
val iFramePlayerOptions =IFramePlayerOptions.Builder()
397
+
.controls(1)
398
+
.listType("playlist")
399
+
.list(PLAYLIST_ID)
400
+
.build()
401
+
```
402
+
392
403
### Release the YouTubePlayerView
393
404
Remember to release the `YouTubePlayerView` when you're done using it, by calling `YouTubePlayerView.release()`.
Copy file name to clipboardexpand all lines: chromecast-sender/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/chromecastsender/ChromecastYouTubePlayer.kt
+43
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,49 @@ class ChromecastYouTubePlayer internal constructor(private val chromecastCommuni
Copy file name to clipboardexpand all lines: chromecast-sender/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/chromecastsender/io/youtube/ChromecastCommunicationConstants.kt
Copy file name to clipboardexpand all lines: core/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/player/views/WebViewYouTubePlayer.kt
+5
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,11 @@ private class YouTubePlayerImpl(private val webView: WebView) : YouTubePlayer {
0 commit comments