youtube in full screen

exjey

Member
Licensed User
Longtime User
I did some search here and i 've found a great post for native support playing youtube videos, but the libraries needs 2.2 android and some other requirements. Many clients have only android 2.1 and i must respect this.

So, i have the youtube address for the video. What is please the way of opening that video but not opening the default web browser first, just the internal android's youtube player app in full screen and after the user watches it, return to the app.

I have also vimeo's video links to be managed from the application i am making, but i think this cannot be supported yet.
 

NJDude

Expert
Licensed User
Longtime User
Try this:
B4X:
Dim PlayVideo As Intent

MyVideo = "0xdZXOM_Otc"

PlayVideo.Initialize(PlayVideo.ACTION_VIEW, "vnd.youtube:" & MyVideo)
PlayVideo.PutExtra("force_fullscreen", True) '<-- Full screen
            
StartActivity(PlayVideo)
 
Upvote 0
Top