• Resolved holle75

    (@holle75)


    Hi there, nice plugin. Thank you for that.

    I′m just wondering: a single video on a page, implemented with the AIOVG-Video Player-Block in Gutenberg … how to play it fullscreen automatically on mobiles? Meaning using the native mobile player.
    Right now, this is the only showstopper (for me)

    Thank you for your help and regards
    H.

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

    (@wpvideogallery)

    Kindly try adding the following code to the bottom of your theme’s functions.php file,

    function aiovg_override_video_attributes( $attributes ) {
        unset( $attributes['playsinline'] );
        return $attributes;
    }
    add_filter( 'aiovg_video_attributes', 'aiovg_override_video_attributes' );

    Hope this solved your issue!

    Thread Starter holle75

    (@holle75)

    Thank you for your kind answer and trying to solve the challenge.

    Unfortunately this script do not change anything.

    Videos on the Pages added with the video-block still are played inline on mobiles.

    With or without the script you can make the videos fullscreen but when playing, zooming automatically into fullscreen doesnt work.

    best
    H.

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Kindly send us the following details to further investigate the issue and assist you accordingly.

    1. An example page URL from your website where you use our video block (To get the video source type and the AIOVG player type you use).
    2. Name of the mobile device on which you check this.

    Thread Starter holle75

    (@holle75)

    Hi there, it′s a staging site under construction in maintenance mode.

    You can login to the dashboard to see the FrontEnd
    https://ibb.co/Q9cvx0h (3 days)

    testuser
    8fxE(b6ydR0z!*6hR&cQx^Nj

    then REVISIT the original URL from the image

    device: Iphone SE (old one) ios 13.3.1

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Thanks for providing more details. I see you are using the “JavaScript” player type. But, the solution we have suggested works only with our “Iframe” player type. Kindly remove our previous code and use the following,

    function aiovg_override_video_attributes( $attributes ) {
        unset( $attributes['playsinline'] );
        return $attributes;
    }
    add_filter( 'aiovg_video_attributes', 'aiovg_override_video_attributes' );
    add_filter( 'aiovg_player_attributes', 'aiovg_override_video_attributes' );

    Hope this solved your issue!

    Thread Starter holle75

    (@holle75)

    Beautiful! Thank you very much.

    If i understand the script right, now it works for both settings?

    By the way, i wasn′t 100% aware of this setting. I must have changed it from inline to javascript due to some differences in behavior of the players. I was searching for a documentation right now which explains these differences. Couldn′t find one.

    Would you be so kind and give me a hint where to find one? Or explain in a few words whats the difference?

    thank you very much.

    a beautiful excercised plugin. It seems very smart and thoughtful.

    best regards
    H.

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    1. If I understand the script right, now it works for both settings?

    Yes, you are correct ??

    2. By the way, I wasn’t 100% aware of this setting. I must have changed it from inline to JavaScript due to some differences in behavior of the players. I was searching for a documentation right now which explains these differences. Couldn’t find one.

    Would you be so kind and give me a hint where to find one? Or explain in a few words whats the difference?

    In reality, both the players are the same. The difference is only in the way the player element is added to the page.

    When you use the “Iframe” player type, we add the same JavaScript player as an Iframe element. The “Iframe” player type is useful when there are JavaScript conflicts or the player needs to be loaded using Ajax.

    Additionally, we have an “Embed Button” similar to YouTube. This button simply links to our Iframe player page.

    Thread Starter holle75

    (@holle75)

    Thank you for the explanation.

    I also figured out why i switched from iframe to JavaScript:

    if you use many players on the same page on desktop (dedicated ones, no gallery), starting one and without stopping this one starting another one … in iframe mode the first player keeps on playing, in JavaScript mode the first one stops when starting the second one. This is important (for me)

    thank you again. keep up your great work!

    I try this and for youtube, it is showing -https://postimg.cc/bScMtHXW this and only happening with youtube videos.
    Second, the user had to enable auto portrait for playing video in landscape. is there a way a user can directly redirect to landscape mode?
    Thanks and amazing plugin.

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    @tsarr,

    I try this and for youtube, it is showing -https://postimg.cc/bScMtHXW this and only happening with youtube videos.

    The solution we have suggested in this post works only for the videos played using our custom video player. I doubt that you are using our “Iframe Embed Code” source type and adding the embed code from the YouTube pages. Am I correct?

    If yes, kindly use the “YouTube” source type to add your YouTube videos and this should solve your issue.

    Second, the user had to enable auto portrait for playing video in landscape. is there a way a user can directly redirect to landscape mode?

    Sorry, this is not possible using our current version. But, I have taken note of this now. So, we would have an option for this in the future. Kindly be patient.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘automatic full screen on mobile’ is closed to new replies.