Languages

Menu
Sites
Language
Can`t play the video.

Hi, I cant play the video on the phone but it video play in emulator. What can I do wrong?

I added <feature> in the config.xml

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/ytyututyu" version="1.0.0" viewmodes="maximized">
    <tizen:application id="SYjc47dU4v.ytyututyu" package="SYjc47dU4v" required_version="2.2"/>
    <content src="index.html"/>
    <feature name="http://tizen.org/feature/screen.size.all"/>
    <feature name="http://tizen.org/feature/application.launch" required="true"/>
    <icon src="icon.png"/>
    <name>ytyututyu</name>
</widget>

My html file

<video id="video" src="http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4" width="500" height="350" controls>

When I click play, nothing happens.

Responses

2 Replies
Alex Dem

Hi,
just try to add into your config.xml:

<access origin="*" subdomains="true"/>

Alexey.

AVSukhov

Hello,

For using of external resources you need to define network resource permissions. 

Refer following article:

https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.appprogramming/html/app_dev_process/accessing_external_network_resources.htm