• Resolved Dan Caragea

    (@dancaragea)


    Videos uploaded from Facebook (as Source Type) are not played automatically, neither on the desktop nor on mobile, although ?Autoplay” is enabled (checked) in Settings. For other source types, autoplay is working fine – except Youtube videos on mobile.
    Please check if is a general issue.
    P.S. My videos are only from Facebook pages.

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

    (@wpvideogallery)

    Autoplay is not guaranteed to work 100% on all the devices. Because each browser applies a specific restriction on this feature. They do this to save user bandwidth. Mostly the autoplay will fail in Mobile devices.

    But, for the Facebook videos, we have disabled it on our own. During the final preparation of our last release, we found the “Autoplay” feature from Facebook was not working as expected and it brought some issues. So, we disabled it from our code.

    But, I decided to check this again after reading your POST, and surprisingly it works for me now. I’m not sure if there was an API error on Facebook when we checked this last time.

    Here is the solution:

    1. Open /wp-content/plugins/all-in-one-video-gallery/public/templates/player-html5.php

    2. Find the code block below,

    if ( isset( $sources['facebook'] ) ) {
    	if ( empty( $attributes['poster'] ) ) {
    		$settings['bigPlayButton'] = false;
    	}
    	$settings['autoplay'] = 0;
    	$settings['techOrder'] = array( 'facebook' );
    
    	$sources['facebook']['src'] = add_query_arg( 'nocache', rand(), $sources['facebook']['src'] );
    }

    3. Remove the following line from the code above,

    $settings['autoplay'] = 0;

    4. Save the changes and check now.

    Thread Starter Dan Caragea

    (@dancaragea)

    Thanks for your prompt answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Videos from Facebook’ is closed to new replies.