This is a migrated thread and some comments may be shown as answers.

Play video inline in cordova when developping on the telerik platform

2 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Antoine
Top achievements
Rank 1
Antoine asked on 14 May 2017, 09:25 AM

I achieved to play a video inline on safari on IOS with playsinline like this : <video src="file.mp4" playsinline> and a button to play/pause the video.

Unfortunatelty is not working on the platform telerik with cordova.

How van I to that ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 17 May 2017, 01:42 PM
Hi Antoine,

Video playback inline is possible as of iOS 10 - see this blogpost. I tested the following code on device with iOS 10 and it runs just fine inline:
<video autoplay
       muted
       playsinline
       width="310"
</video>


Make sure to edit your projects iOS Config.xml  so that the AllowInlineMediaPlayback attribute is set to "true" - otherwise the playback would enter fullscreen when starting playback and not inline.

Let me know if this has helped.

Regards,
Martin
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Antoine
Top achievements
Rank 1
answered on 17 May 2017, 03:34 PM
Awesome. My problem was that I couldn't find the config.xml file and though the platform didn"t allow to modify it. 
Tags
General Discussions
Asked by
Antoine
Top achievements
Rank 1
Answers by
Martin
Telerik team
Antoine
Top achievements
Rank 1
Share this question
or