Page 1 of 1

Embedding Youtube videos

Posted: Sun Sep 25, 2022 5:21 am
by Cabintom
Can we get the ability to embed youtube videos into posts? It's a shame we have to send people off site to view videos.

The same can be said for sound clips. Can there be a way to insert sound clips like we do images?

Re: Embedding Youtube videos

Posted: Sun Sep 25, 2022 1:25 pm
by eurytides
You can copy and paste youtube links just like links to imgur.

Re: Embedding Youtube videos

Posted: Sun Sep 25, 2022 4:16 pm
by adamcotton
Hopefully someone (Olivier?) can explain the correct bbCode for audio and video links. To display an online photo (imgur or elsewhere that allows public sharing) the URL should have img in [] in front and /img in [] at the end of it. I don't know the correct formatting for audio or video links.

Adam.

Re: Embedding Youtube videos

Posted: Sun Sep 25, 2022 7:56 pm
by eurytides

Re: Embedding Youtube videos

Posted: Sun Sep 25, 2022 7:57 pm
by eurytides
Not sure what you mean by formatting. It’s just copy and paste the URL. I randomly found a butterfly video and clicked on share, copied the URL, and pasted. The above link works.

Re: Embedding Youtube videos

Posted: Sun Sep 25, 2022 8:36 pm
by adamcotton
A search suggests that the correct code is the word video in [] and /video in [] after the URL.

Here's a test using the link above:

[video]https://youtu.be/el_lPd2oFV4[/video]

Adam.

Re: Embedding Youtube videos

Posted: Sun Sep 25, 2022 8:37 pm
by adamcotton
hmmm ... that didn't seem to work.

Adam.

Re: Embedding Youtube videos

Posted: Sun Sep 25, 2022 8:45 pm
by adamcotton
eurytides wrote: Sun Sep 25, 2022 7:57 pm Not sure what you mean by formatting. It’s just copy and paste the URL. I randomly found a butterfly video and clicked on share, copied the URL, and pasted. The above link works.
Yes, it works but it opens a separate youtube page. Cabintom wants the video to be playable inside the forum page.

I guess Olivier can tell us how to do it.

Adam.

Re: Embedding Youtube videos

Posted: Sun Sep 25, 2022 9:05 pm
by eurytides
Ah I see, thanks Adam, I didn’t understand what Tom was trying to accomplish.

Re: Embedding Youtube videos

Posted: Mon Sep 26, 2022 12:09 pm
by Cabintom
Pasting URLs is fine, but it sends people off site and there's no preview (meaning the link could be to anything on youtube). I want to embed the video. As far as I can tell, Olivier needs to enable the BBcode for video embedding to work.

Re: Embedding Youtube videos

Posted: Mon Sep 26, 2022 1:18 pm
by wollastoni
Good idea, Thomas
I have coded it, you can now embed videos : just copy/paste the url of the video in your post and the video will be embeded. You don't even need to use the [media] tags.

One example, pasting the url :

Re: Embedding Youtube videos

Posted: Mon Sep 26, 2022 1:43 pm
by Cabintom
wollastoni wrote: Mon Sep 26, 2022 1:18 pm Good idea, Thomas
I have coded it, you can now embed videos : just copy/paste the url of the video in your post and the video will be embeded. You don't even need to use the [media] tags.
Amazing! Does this work for sound clips too?

Re: Embedding Youtube videos

Posted: Mon Sep 26, 2022 1:54 pm
by wollastoni
If embeded on youtube or another popular hub, yes.

If it is a file on your computer, you should be able to attach it as you attach pictures. (but it has to be below 800 KiB).