WackoWiki: Action: Embed

https://wackowiki.org/doc     Version: 28 (04.01.2021 10:03)

Action: Embed

Also available in Deutsch[link1], Français[link2], Русский[link3]

Allows you to embed PDFs and clips from youtube and some other sites.
The first three arguments here are required. The rest are optional.

{{embed url="file:the_movie.mp4" width=100 height=100 [align="left|center|right"]}}

Example

{{embed url="https://www.youtube-nocookie.com/embed/zhec3tHwLzo" width=640 height=385}}


Notes


  1. If CSP is enabled what is recommended, you must set the CSP directives in your csp_custom.conf:
  2. check your Content-Security-Policy settings
    • Content-Security-Policy:
      	default-src 'self' *.wackowiki.org;
      	script-src 'self' 'unsafe-inline';
      	style-src 'self' 'unsafe-inline';
      	img-src *;
      	media-src 'self' youtube.com youtube-nocookie.com;
      	object-src 'self' *.googlevideo.com *.ytimg.com *.youtube.com *.youtube-nocookie.com;
      	frame-src 'self' *.youtube.com *.youtube-nocookie.com;	
    • uMatrix add-on for Firefox
  3. set your Content-Security-Policy (CSP) in your secondary config[link4] config['csp'] to 2 (custom)