sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.63k stars 2.93k forks source link

playsinline not working with fullscreen iosNative #1406

Open Ninos opened 5 years ago

Ninos commented 5 years ago

Hey there,

I want to play a vimeo-video inline but use ios native player on fullscreen. Problem is, that playsinline is always false, if iosNative is true: https://github.com/sampotts/plyr/blob/master/src/js/plugins/vimeo.js#L79

ATM I'm using following code:

const Plyr = require('plyr');

jQuery(document).ready(function () {
    jQuery('.video').each(function () {
        let video = this,
            player;

        player = new Plyr(jQuery(video).find('.video-player').get(0), {
            iconUrl: require('../../img/icons/plyr/plyr.svg'),
            fullscreen: {
                enabled: true,
                fallback: true,
                iosNative: true
            },
            playsinline: true
        });
    });
});
<div id="video-{{ video.type }}-{{ video.id }}" class="video video-{{ video.type }}">
    <div class="video-player" data-plyr-provider="{{ video.type }}" data-plyr-embed-id="{{ video.id }}"></div>
</div>

Is it possible to enable iosNative only on fullscreen, but as default display videos inline?

Kindest regards

matfennell-Personal commented 5 years ago

Any update on this?

asobralr commented 5 years ago

I'm having the same issue. Couldn't solve it yet.

tmk1991 commented 4 years ago

Anyone able to find a fix?

smlparry commented 4 years ago

Also getting this issue

TaraOShea commented 4 years ago

Having the same issue

cqthanh commented 3 years ago

The same issue here

eduardofischer commented 3 years ago

Same issue here

erikt9 commented 3 years ago

I think this is the same issue: https://github.com/sampotts/plyr/issues/1988 and has a workaround at least.