A
A
Anna Bakurova2015-07-27 15:16:19
JavaScript
Anna Bakurova, 2015-07-27 15:16:19

How to enable default html video player behavior on iPad?

On the iPhone, when enabled by default, the video opens in a pop-up window
. On the iPad, this behavior does not work
. I read that on the iPhone it is possible to cancel this pop-up (and the video will play in the place where it is) using the webkit-playsinline attribute. The problem is that I need the opposite, I need not to turn off the pop-up, but to connect it.
The behavior of the standard player depends on the parameter allowsInlineMediaPlayback which can be set in objective-c or swift. Is there any easier way to solve this problem?
And in general, if you change this parameter, then what needs to be done for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kano, 2015-07-31
@Libris

Don't disable at all. It is necessary to program, and each platform has its own code.
Previously, on safari, it was necessary to wait for the metadata loading event and only after that put the bool value in special. the field of the video object - link
Now there is a fullscreen api - a post on habré

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question