Forum Replies Created

Viewing 1 replies (of 1 total)
  • First of all, I want to thank you for this module, it does simply wht it has to 🙂

    I found also that it is not working on apple devices, but hardcoded the “playsinline” attribute on the video tag and now it is working but not all devices. I think that it can be something related to different versions of OS or device.

    In my case, it is in “autoplay&loop” mode as the video is a short one to feature a products on my site.

    I added the “playsinline” in Shortcode.php line 86:
    return '<video class="rsfv-video" id="rsfv-video-' . $post->ID . '" src="' . $video_url . '" style="max-width:100%;display:block;"' . "{$has_controls} {$is_autoplay} {$is_loop} {$is_muted} {$is_pip}" . ' playsinline ></video>'

    Also added in ForntEnd.php line 119:
    $html = '<div class="woocommerce-product-gallery__image rsfv-video__wrapper" data-thumb="' . RSFV_PLUGIN_URL . 'assets/images/video_frame.png"><video class="rsfv-video" id="rsfv_video_' . $product->get_id() . '" src="' . $video_url . '" style="max-width:100%;display:block;"' . "{$has_controls} {$is_autoplay} {$is_loop} {$is_muted} {$is_pip}" . ' playsinline ></video></div>' . $html;

    I think it has to be mandatory to has this property by default in oreder to work in most devices as possible.

    Thanks again!

Viewing 1 replies (of 1 total)