328
Views
5
Comments
Solved
How to play youtube video in mobile app
Question


Hi All,

I have developed a test mobile application as follow: 

when I click on the the button on the home screen it redirects to another screen where I created a iframe as shown in below image. In iframe I am running a YouTube video by giving a embed link in src property as shown below. This is working fine means video from YouTube is getting played.

But the problem here is the full screen option is disabled in the video player. So don't know where I am getting wrong or some tags are missing in iframe.  

Anybody please help me here to get the full screen option enabled or is there any other way to play the YouTube video, like when I click on the button mobile app will show open with YouTube, browser etc. 

Below are the images of the application

1) Home screen of the test application:

2) Button on click logic:

3) Iframe on screen 2:

4) Fullscreen Function disabled:

2021-02-02 11-55-27
Tushar Panpaliya
Solution

Kaustubh Kamble wrote:


Hi All,

I have developed a test mobile application as follow: 

when I click on the the button on the home screen it redirects to another screen where I created a iframe as shown in below image. In iframe I am running a YouTube video by giving a embed link in src property as shown below. This is working fine means video from YouTube is getting played.

But the problem here is the full screen option is disabled in the video player. So don't know where I am getting wrong or some tags are missing in iframe.  

Anybody please help me here to get the full screen option enabled or is there any other way to play the YouTube video, like when I click on the button mobile app will show open with YouTube, browser etc. 

Below are the images of the application

1) Home screen of the test application:

2) Button on click logic:

3) Iframe on screen 2:

4) Fullscreen Function disabled:

 In the extended properties try setting allowFullScreen = True.


Cheers,

Tushar 

 

2023-06-10 09-22-21
Kaustubh Kamble

Tushar Panpaliya wrote:

Kaustubh Kamble wrote:


Hi All,

I have developed a test mobile application as follow: 

when I click on the the button on the home screen it redirects to another screen where I created a iframe as shown in below image. In iframe I am running a YouTube video by giving a embed link in src property as shown below. This is working fine means video from YouTube is getting played.

But the problem here is the full screen option is disabled in the video player. So don't know where I am getting wrong or some tags are missing in iframe.  

Anybody please help me here to get the full screen option enabled or is there any other way to play the YouTube video, like when I click on the button mobile app will show open with YouTube, browser etc. 

Below are the images of the application

1) Home screen of the test application:

2) Button on click logic:

3) Iframe on screen 2:

4) Fullscreen Function disabled:

 In the extended properties try setting allowFullScreen = True.


Cheers,

Tushar 

 


Hi Tushar,

I added this in attributes and it is working fine. Thank you for the solution.

Regards,

Kaustubh

2022-12-07 04-24-30
Neha Lawange

Yes, I have also added it in attributes. It's working. Thanks for solution. Kaustubh and Tushar.


Regards,

Neha

2021-02-02 11-55-27
Tushar Panpaliya

Additionally you can refer to this for various options. This is a reactive solution which works almost same for mobile apps. 


https://www.outsystems.com/forge/component-overview/8606/reactive-web-embed-video-sample-application 


Cheers 

UserImage.jpg
johan mark

It sounds like the issue might be with how the mobile app handles embedded videos, and sometimes the best solution is to open the YouTube video directly in the app or browser to get full-screen playback and all controls. For anyone looking for smooth video experiences and advanced features in mobile apps, CapCut Mod APK download is a good example of an app that handles media playback efficiently while providing extra functionality, making the overall experience much more seamless.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.