New Landing How can we help? Themeforest Theme Support Dante Disable autoplay with fullscreen video shortcode

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #183279
    eternalbeta
    Member
    Post count: 76

    I’d like to disable autoplay with the fullscreen video shortcode as YouTube made a change within the last few years that does not count autoplays towards total video views.

    From reading some older threads, it looks like the change I have to make is in /swift-framework/page-builder/builder/shortcodes/media.php with lines 41/42. I’ve tried adding the following code just after based on the older threads, but am not having any luck:

    $embed = str_replace('&autoplay=1','&autoplay=0',$embed);

    I’m probably just missing something easy here, hope you can help.

    Thanks

    #183458
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit sf-media.php file at /dante/includes. Find this autoplay=1 and change with autoplay=0.
    Thanks
    Mohammad

    #184638
    eternalbeta
    Member
    Post count: 76

    Thanks Mohammad, that did the trick.

    #184649
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great, thanks Mohammad

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.