codenameone - Youtube video keeps playing until app is closed -


some questions playing youtube videos in webbrowser component.

  1. i played youtube video in webbrowser component. keeps playing when form backed well. stops playing when app removed. tried webbrowser.stop() , webbrowser.destroy() method etc in command no success.

    string getvideourl = "https://www.youtube.com/embed/" + videoid + "?autoplay=1"; webbrowser player = new webbrowser(); player.seturl(getvideourl); f.addcomponent(borderlayout.center, player); 

    however webbrowser.reload() solves problem on android phones not on android tablets.

  2. while viewing video, if mobile set sleep user, display goes out while watching video. how disable sleep mode? mobile screen display out problem.

  3. when video completes, youtube video gives video link of related videos & can played too, how can disable that. don't want make other videos play app

  4. the video doesn't play in android icecream sandwich , below.

  1. try: webbrowser.setpage("<html><head></head><body></body></html>", null);

  2. you can use display.getinstance().setscreensaverenabled(false);.

  3. that's setting on youtube embedded links. can select disallow it.

  4. that's limitation of html embed code google. not can here.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -