Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1445640

    Hello
    I would like to play videos on mobile in the original video window with the option to click on fullscreen. But with or without the “show fullscreen button” enabled, the video only plays in fullscreen. (all videos under: Our Work)
    I don’t want it on Autoplay, because they are music videos and I need to hear the sound when the video starts playing.
    Music video only playing fullscreen on mobile

    On the homepage I have 2 videos on autoplay, they play the video in the original video window and on fullscreen when that fullscreen button is clicked.
    Video original size and fullscreen on mobile
    Why does this only work with autoplay enabled? Is there a way to change that?

    #1446475

    Hey birte5,
    Thanks for your patience, with I check your video “Roar”, linked below, on Android mobile the video will play in screen with the fullscreen button, this video is not autoplay:
    Enfold Support 5918
    Enfold Support 5920
    Enfold Support 5922
    I don’t have a iPhone so I don’t know if it is different. Please check this page and see if this is the same for you.

    Best regards,
    Mike

    #1446647

    Hi Mike,
    the way it shows on Android is exactely how I want it, no autoplay, when you press play, video should play in screen with fullscreen option. Unfortunately, it is not like that on iPhone, even though it does show the fullscreen button before you start the video, it will only play in fullscreen and not in screen.
    Iphone display“>
    Is there a solution?
    Thank you for your help!

    best,
    Birte

    #1446661

    Hi,

    Why does this only work with autoplay enabled? Is there a way to change that?

    The theme only adds the playsinline attribute when autoplay is enabled. This attribute (playsinline) allows the video to play directly on the page without going into fullscreen. If you want to alter this behavior, keep the autoplay option enabled, then add this code in the functions.php file:

    add_filter('avf_html5_autoplay_mobile', function($play, $video, $attributes) {
        return "playsinline";
    }, 10, 3);
    

    Please note that this will be applied to every video, so you may need to add a few conditions, such as checking for the video URL.

    Best regards,
    Ismael

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