Software Archive
Read-only legacy content
17061 Discussions

some issue with whitelist : app stopped working after update : Crosswalk not working

Mour_D_
Beginner
307 Views

1: i had make app to play video from html crosswalk app using intel xdk my app was working well with intel xdk 2966

video is inside my project and below is code

<video width="80%" height="auto" controls="controls" id="myVideo">
                <source src="video/kitkatfinal2.mp4" type="video/mp4" />
            </video>

2: after intel update video does not plays now ,do i need to update

i can see some whitelist in update in new xdk , i did below but none of them worked

3: added below meta to top of page (video.html)

<meta http-equiv="Content-Security-Policy" content="media-src *">

4:below are screenshot for setting of my intel xdk 

screenshot 1

error1_0.png

screenshot 2

error2_0.png

 

4: After i built my app i was unable to play video 

0 Kudos
1 Reply
Anusha_M_Intel1
Employee
307 Views

Thank You Gabry for reponding.

@Mour, it does look like a missing file. CLI 5.1.1 with Embedded Crosswalk 15 should work because it uses a different build system and is not affected by the bug. However, it looks like you are on 2366. Could you try upgrading?

You do not have to worry about whitelisting as you are only trying to access a local video file. Read up on the whitelist guide to get a better understanding: https://cordova.apache.org/docs/en/4.0.0/guide_appdev_whitelist_index.md.html

[Edit] Here is another very useful article regarding whitelist rules in Intel XDK: https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk

0 Kudos
Reply