api - Finishing YoutubeStandAlonePlayer after completing video in Android? -


how detect when youtube video ends in youtubestandaloneplayer using google api youtube player, have finish player , write instructions after once video completes?

intent intent = youtubestandaloneplayer.createvideointent(           mactivity , developer_key, video_id, starttimemillis, autoplay, lightboxmode); startactivity(intent); 

this not possible because youtubestandaloneplayer activity related youtube app app doesn't have control on other apps activity.

as said in documentation of youtube player api,

the second option use youtubestandaloneplayer start video playback in separate activity. simpler use, gives less flexibility , control on video playback. standaloneplayer supports 2 modes, either fullscreen or lightbox. in lightbox mode, activity launching player still visible behind player, dimmed.

link:- docs


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -