I develop a mobile application with cordova, and I really need to be able to play inline youtube video.
I tried to resolve it for a while:
I set the attribute
playsinline
to1
in the youtube iframe APII put
<preference name="AllowInlineMediaPlayback" value="true"/>
in my config.xmlThen I set
AllowsInlineMediaPlayback
totrue
in the plist in XcodeI even try to put webkit-playsinline directly on the iframe
The results are weird. When I play my video the first time, it goes fullscreen. So I inspect my HTML via the remote developer tools to check if the attribute is well set. It is! I do as I would edit it, I leave it without modification, and the magic happen: my video plays inline!
Obviously, I can't ask my users to do this trick.
Someone have an idea to solve this out?
It's kind of an emergency issue...