Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    They are old posts. Our last version introduced a setting for this option. So, you no longer need to depend on the code patch.

    Kindly go to the “Video Gallery => Settings” menu from your WordPress Admin Dashboard, find the “Playsinline” option, and simply disable that.

    Hope this solved your issue!

    In case the issue remains, kindly share with us an example page URL from your website where the issue remains. So, we could get a clue about the issue and assist you accordingly.

    Note the “Playsinline” option works only on iOS. Also, the video goes fullscreen only when you click the “Play Button”.

    Thread Starter Dan Caragea

    (@dancaragea)

    You said: option works only on iOS. So, for Android there is no option?

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Unfortunately, the “Playsinline” attribute is supported only on iOS.

    No worries, kindly try adding the following code to the bottom of your theme’s functions.php file to open the videos in fullscreen on your Android devices.

    function aiovg_custom_extend_player() {
    if ( ! wp_is_mobile() ) return;
    ?>
    <script type="text/javascript">
    // Listen to the player initialized event
    window.addEventListener( 'player.init', function( evt ) {
    var player = evt.detail.player;

    // play
    var fullscreenRequested = false;

    player.on( 'play', function() {
    if ( fullscreenRequested ) return true;

    player.requestFullscreen();
    fullscreenRequested = true;
    });

    // ended
    player.on( 'ended', function() {
    player.exitFullscreen();
    });
    });
    </script>
    <?php
    }
    add_action( 'aiovg_player_footer', 'aiovg_custom_extend_player' );

    But, the above code works only when the videos are played using our custom video player. I remember that you use Dailymotion videos on your website but that uses the native Dailymotion embed. Sorry, the code patch above will not work for Dailymotion videos ??

    The Dailymotion’s Player API has been completely changed. So, our current custom player version cannot play the Dailymotion videos. But, I promise that we will support their latest Player API very soon. Kindly be patient.

    Thread Starter Dan Caragea

    (@dancaragea)

    Thank you for your quick answer. Also Facebook videos and YouTube videos are not played in fullscreen on Android. Only Self Hosted videos. Maybe you have a different code for them…

    P.S. I don’t have Vimeo videos to try.

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Thanks for your reply.

    Unfortunately, Facebook videos must be added using their native embed because their Player API doesn’t offer enough flexibility to integrate with our custom video player. As a result, it’s not possible to enable fullscreen mode with Facebook videos when clicking the play button.

    However, YouTube videos can be played using our custom video player. To enable this, go to the “Video Gallery => Settings” menu in your WordPress Admin Dashboard, find the “Use Native Controls” setting, and make sure the “YouTube” option is unchecked. This will allow YouTube videos to be played with our custom player, and the fullscreen option will be available.

    The same procedure applies to Vimeo videos.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.