Embedding Youtube code: possible?

Dear Wackowiki insiders

Is it possible to embed a Youtube video with the code given by Youtube like this:

<object width="560" height="340">
	<param name="movie" value="http://www.youtube.com/v/InhbSdcNBZw&hl=de_DE&fs=1&rel=0"></param>
	<param name="allowFullScreen" value="true"></param>
	<param name="allowscriptaccess" value="always"></param>
	<embed src="http://www.youtube.com/v/InhbSdcNBZw&hl=de_DE&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>

Thanks for any help.



  1. Embedding Youtube HTML5 Video

    <# <iframe width="320" height="180" src="//www.youtube-nocookie.com/embed/XqxwwuUdsp4" frameborder="0" allowfullscreen></iframe> #>

    Ensure you allowed the formatter to process HTML and the CSP (Content Security Policy) to load from the media source.

    1. enable HTML support
      1. for a page (page properties > extended) as Admin or 
      2. for everyone (secondary config ['allow_rawhtml'])
    2. If CSP is enabled, what is recommended, you must set the CSP directives in your csp_custom.conf:
      1. Content-Security-Policy:
        	default-src 'self';
        	script-src 'self' 'unsafe-inline';
        	style-src 'self' 'unsafe-inline';
        	img-src * data:;
        	media-src 'self' archive.org *.youtube.com *.youtube-nocookie.com dailymotion.com;
        	object-src 'self' archive.org *.googlevideo.com *.ytimg.com *.youtube.com *.youtube-nocookie.com dailymotion.com;
        	child-src 'self' archive.org *.youtube.com *.youtube-nocookie.com *.dailymotion.com;
      2. set your Content-Security-Policy (CSP) in your secondary config config['csp'] to 2 (custom)

    • WikiAdmin
    • edited