YoutubeStandAlonePlayer shutting down after ending video in Android?

How to determine when a YouTube video ends in YoutubeStandAlonePlayer using google api for a Youtube player, do I need to end the player and write instructions after that after the video ends?

Intent intent = YouTubeStandalonePlayer.createVideoIntent(
          mActivity , DEVELOPER_KEY, VIDEO_ID, startTimeMillis, autoplay, lightboxMode);
startActivity(intent);
+4
source share
1 answer

This is currently not possible because YouTubeStandalonePlayer is an action related to the YouTube application, which is another application in which we do not control the activity of other applications.

As stated in the YouTube Player Api documentation,

- YouTubeStandalonePlayer, . , . StandalonePlayer : . "" , , - , .

: - docs

0

Source: https://habr.com/ru/post/1584679/


All Articles