سؤال

Is it possible to setup new YouTubePlayer for Android to make it play video in loop (repeatedly)?

I haven't found yet such methods in docs.

هل كانت مفيدة؟

المحلول

You could attach a YouTubePlayer.PlayerStateChangeListener then start the video over in onVideoEnded.

To restart the video, call this method - youTubePlayer.seekToMillis(0) in onVideoEnded().

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top