Some questions for playing youtube videos in webBrowser component.
I played youtube video in webBrowser component. But it keeps playing when the form is backed as well. It only stops playing when the app is removed. I tried
webBrowser.stop()andwebBrowser.destroy()method etc in the back command but with 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 the problem on android phones but not on Android Tablets.While viewing the video, if the mobile is set to sleep by the user, the display goes out while watching the video. So how to disable the sleep mode? Mobile screen display out problem.
When the video completes, the youtube video gives video link of the related videos & they can be played too, how can I disable that. I don't want to make other videos play from the app
The video doesn't play in android icecream sandwich and below.