DEV Community

Discussion on: Build a Video Conference App from Scratch using WebRTC,Websocket,PHP +JS Day 1

Collapse
 
shriekdj profile image
Shrikant Dhayje

cool Video But how do you add the youtube video embed at dev.to markdown i wasn't able to add the iframe tag into it...?

Collapse
 
andersbjorkland profile image
Anders Björkland

You can use liquid tags. Here's an example for YouTube:

{% youtube dQw4w9WgXcQ %}

Collapse
 
codinsonn profile image
Thorr ⚡️ codinsonn.dev

But how do you make it start and end at a certain point?

Thread Thread
 
paulwababu profile image
paulsaul621

Try:
{% youtube dQw4w9WgXcQ start=30 end=60 %}

Thread Thread
 
pierre profile image
Pierre-Henry Soria ✨ • Edited

Really? That's great Paul! I didn't know we could also set the start and end ms on an embedded YT video...

Thread Thread
 
paulwababu profile image
paulsaul621

Yes you can 😊

Collapse
 
paulwababu profile image
paulsaul621

lovely!

Collapse
 
jaspreet9795 profile image
Jaspreet kaur

I am trying to embed video using above, it not working. I tried

as well but not working.

Error:
Whoops, something went wrong:
bad URI(is not URI?): nil

Collapse
 
dvrvsimi profile image
Olorundara Akojede (dvrvsimi)

can you do this for videos on your local machine?