Languages

Menu
Sites
Language
Youtube videos are not running on z1 and z3 device.

Hi,

I've used html5 tags, While launching the app it will load youtube initially. after used to hardware back key, it will come to lobby screen. but the app videos are not running on the device.

Responses

1 Replies
Armaan-Ul- Islam

Hello,

Use iframe with allowfullscreen. Try this code, it worked for me :

<div class="ui-content">
    
<iframe class="youtube-player" width="640" height="385”    src="https://www.youtube.com/watch?v=7d16CpWp-ok&feature=youtu.be" frameborder="0" allowfullscreen> </iframe>

</div>

You have to Add internet access privilege for your Tizen application in the config.xml file. Internet Privilege allows the application to access the Internet. If you require access to an external network resource, you must also request network resource permissions. So, Add this two lines in the config.xml file.

<tizen:privilege name="http://tizen.org/privilege/internet"/>
<access origin="*" subdomains="true"></access>

 

 If found helpful Please mark it as the Best Answer to promote & help others to solve similar issues.