Idea - embed youtube

Post Reply
mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Idea - embed youtube

Post by mchd17 » Sun Apr 17, 2022 2:33 pm

I have the MT youtube block setup and on site, layout is a bit different. Would like to see an embed youtube block that would show videos randomly that you assign and are able to play in block or fullscreen. Would like to see block show 1 video at a time and on each refresh a different video. Videos would play in block or full screen. I run a phpbb forum and have video embed mod that allows users to embed youtube videos into posts, that has made me curious about a MT block.
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Idea - embed youtube

Post by davidefa » Tue Apr 19, 2022 11:05 pm

You can try this modded videos block.
The youtube link is available clicking on share -> embed, something similar to:
https://www.youtube.com/embed/IGP38bz-K48
Attachments
videos_1.1.zip
(1.94 KiB) Downloaded 30 times
Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Idea - embed youtube

Post by mchd17 » Wed Apr 20, 2022 1:15 am

That's perfect. Exactly what I wanted. Thank you. I don't like what it does to my page after a full screen view of video, but it is what it is.
Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Idea - embed youtube

Post by mchd17 » Wed Apr 20, 2022 1:47 am

I'll have to look into it, when a video ends, different videos show up, not mine, its sort of funny, when clicked, sends you to youtube
Image

mchd17
Forecaster
Forecaster
Posts: 188
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: Idea - embed youtube

Post by mchd17 » Thu Apr 21, 2022 11:56 pm

Using this code at the end of each URL

Code: Select all

?rel=0
It doesn't disable related videos, you are not able to do so. If the rel parameter is set to 0, related videos come from the same channel as the video that just played.
Image

Post Reply