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

    (@wpvideogallery)

    I see 2 issues.

    1. The script end tag is encoded. So, the script tag is not closed properly.

    2. The quotes are not actually quotes and looks like they are special characters.

    Please use the following corrected code,

    <stream src="eacbcc45bd1d7d31cef15233d8f03262" controls></stream>
    <script type="text/javascript" src="//embed.videodelivery.net/embed/r4xu.fla9.latest.js?video=eacbcc45bd1d7d31cef15233d8f03262"></script>

    But still, this would not work. Because, our plugin strips unknown HTML tags from your embed code for security reasons. So, the “STREAM” tag in your embed code is removed.

    Solution:

    1. Edit open the /wp-content/plugins/all-in-one-video-gallery/includes/functions.php file.

    2. Locate the aiovg_allow_iframe_script_tags function.

    3. Add the following code before the line return $allowed_tags;

    // Allow stream and the following attributes
    $allowed_tags['stream'] = array(
    	'src'      => true,
    	'controls' => true
    );

    So, the final code looks like,

    // Allow stream and the following attributes
    $allowed_tags['stream'] = array(
    	'src'      => true,
    	'controls' => true
    );
    
    return $allowed_tags;

    4. Save the changes and try adding the embed code again.

    Hope, this solved your issue!

    Thread Starter exxis

    (@exxis)

    Looks like that it works, only one video is displayed and the video controls are clickable and its playing.

    Can this code added to the theme child function.php so it does not get changed/removed if the plugin gets updated?

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Instead of our previous fix, kindly try adding the following code in your theme’s functions.php file.

    function aiovg_allow_stream_tag( $allowed_tags ) {
        if ( ! current_user_can( 'unfiltered_html' ) ) return $allowed_tags;
    
    	$allowed_tags['stream'] = array(
    		'src'      => true,
    		'controls' => true
    	);
    
        return $allowed_tags;
    }
    add_filter( 'wp_kses_allowed_html', 'aiovg_allow_stream_tag' );

    Hope this solved your issue!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[NSFW] Cloudflare Stream videos’ is closed to new replies.