• Resolved exxis

    (@exxis)


    Hello,

    I use this iframe/embed code

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

    until recently it worked to display cloudflare stream videos, but now it doesn’t work anymore.
    Is there a new working code (I got this bit of code here in the support forum of the plugin)

    Best wishes

    exxis

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

    (@wpvideogallery)

    Sorry, the stream tags are disabled by default in our Iframe embed code field for security reasons.

    Solution:

    Kindly add the following code to the bottom of your theme’s functions.php file,

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

    Then, try adding the embed code again in our video form.

    Hope this solved your issue!

    Thread Starter exxis

    (@exxis)

    Hello,

    thanks for providing it, but sadly it still doesn’t work. When was this changed to “default” it worked at least back in february.

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Our plugin never supported the “stream” tag. So, this is how it worked from the initial release. Maybe you had used the “Iframe” based embed code before but currently using a different embed code with a JavaScript code too.

    Kindly refer to the Cloudflare documentation here https://developers.cloudflare.com/stream/viewing-videos/using-the-stream-player/

    You can see they also support an Iframe-based embed code. Kindly try using this code and that should solve your issue.

    Thread Starter exxis

    (@exxis)

    I’ve used the code I’ve posted in my first post here, because that post was provided from one user here in the board and it worked. Somehow it doesn’t now.

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Yes, I see that you already have contacted us on this and we shared the same code. Here is the relevant post https://www.ads-software.com/support/topic/cloudflare-stream-videos/

    Maybe you have switched to a new theme and the code patch stopped working.

    I confirm that after adding the code patch, the Cloudflare embed with stream tag works fine for me in my development environment here. Actually, you must re-add the embed code after adding the code patch. Also, please try adding a new video. If still the issue remains, kindly submit a ticket here https://plugins360.com/support/. So, we can more details about your website privately to further investigate the issue.

    Note: Our next version would support stream tags in the standard version itself.

    Thread Starter exxis

    (@exxis)

    Got it working now with that normal iframe code from cloudflare

    <iframe src="https://iframe.videodelivery.net/$videoid" style="border: none" height="400" width="400"></iframe>

    and switched player time from iframe to javascript, after that it worked again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cloudflare stream doesn’t work anymore’ is closed to new replies.