Android youtube API play two or more Youtube players in one main activity

前端 未结 2 1165
有刺的猬
有刺的猬 2021-02-14 12:32

Using the Android Youtube api i want to play two videos in my app main activity without using fragment we have the same problem with this Multiple Youtube players in one activi

2条回答
  •  半阙折子戏
    2021-02-14 13:13

    To achieve two or more youtube players at one activity you need to use YouTubeThumbnailView(It is an ImageView) to show a list of preview images. When the user touch the thumb, you redirect to full screen video player.

    Check out this project.

提交回复
热议问题