Embedding videos from Viyard

This forum is for all Flare issues not related to any of the other categories.
Post Reply
daStern
Jr. Propeller Head
Posts: 5
Joined: Wed Jan 10, 2018 4:30 am

Embedding videos from Viyard

Post by daStern »

Hello,

Does anyone have any experience in successfully embedding Vidyard videos into Flare?

You are given a number of options (Inline responsive, Lightbox responsive, iFrame, and Shareable embed link) but I can't get any of them to work.
Vidyard provides you with some code to add to your topics, for example:

<!-- The script tag should live in the head of your page if at all possible -->
<script type="text/javascript" async src="https://play.vidyard.com/embed/v4.js"></script>

<!-- Put this wherever you would like your player to appear -->
<img
style="width: 100%; margin: auto; display: block;"
class="vidyard-player-embed"
src="https://play.vidyard.com/xFraGQs6AXpQfu4zQFgPda.jpg"
data-uuid="xFraGQs6AXpQfu4zQFgPda"
data-v="4"
data-type="inline"
/>

When I add the code in the header, I get the following warning in Flare: 'src' is an unexpected token, The expected token is '='.

Does anyone know a way around this?

Thanks.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Embedding videos from Viyard

Post by NorthEast »

You can get rid of the error by changing async to async="" in the first line.

You get that error because Flare's editor uses XHTML, which is a stricter form of HTML. In HTML you can write attributes in minimised form without quotes, but in XHTML all attributes must be written in full with the equals sign and quotes (even if blank).
See: https://www.w3schools.com/html/html_xhtml.asp
daStern
Jr. Propeller Head
Posts: 5
Joined: Wed Jan 10, 2018 4:30 am

Re: Embedding videos from Viyard

Post by daStern »

Thanks NorthEast - worked a treat.
Post Reply