Q-Video not working with cordova
-
Hey all,
I’m using Q-Video component in my app to display a video from youtube. The component is used in a cardview.While development, the video is working fine on the browser but when i compile for cordova on device the video is not displayed … I see the iframe in the node but the document is empty …
The code is simple … :
<q-video :src=“item[‘video-url’]” style=“height:200px”/>Do you have any idea of the problem ? the Url is https, the video exists … any help appreciate !
John
-
-
@rstoenescu Yes thank you !
for others that have the same problem, just add
<preference name=“AllowInlineMediaPlayback” value=“true” />
<preference name=“MediaPlaybackRequiresUserAction” value=“false” />
<allow-navigation href=“youtube” />
<allow-navigation href=“ytimg” />
in your config.xml file