Embed YouTube video code? - Page 1
Forum section: electronics / general

author: rx8pilot
author_rank: Super Contributor
timestamp: November 11, 2015, 08:51:27 pm
content: Anyone know what code to use to embed a video in a post?I tried a number of things I found by Google, but was unable to get a video embedded.

author: apelly
author_rank: Unknown
timestamp: November 11, 2015, 08:55:44 pm
content: I think you should see by quoting a post which has embedded youtube

author: Dave
author_rank: Super Contributor
timestamp: November 11, 2015, 08:56:58 pm
content: Simply make the [ url ] tags and put the full video link inbetween.Alternatively, if you just want to link the video, no preview, use a url shortener service:like thisTry to quote my message to see how I've done it.

author: rx8pilot
author_rank: Super Contributor
timestamp: November 11, 2015, 09:00:15 pm
content: Tried this code....Code:<iframe width="560" height="315" src="https://www.youtube.com/embed/n3T007W-IAg?rel=0" frameborder="0" allowfullscreen></iframe>Like this one....https://www.eevblog.com/forum/index.php?action=post;quote=797901;topic=58228.0I see code that looks like this.....but it does not seem to work in my post.Code:[url=https://www.youtube.com/watch?v=cGxUXg1fQCs]https://www.youtube.com/watch?v=cGxUXg1fQCs

author: rx8pilot
author_rank: Super Contributor
timestamp: November 11, 2015, 09:05:00 pm
content: Ahhh, I think I got it now. The preview function does not seem to work, but when I post, it all works.Thanks!

author: Dave
author_rank: Super Contributor
timestamp: November 11, 2015, 09:05:09 pm
content: Ah, the quote apparently changes it. Let's try this way (I put tiny spaces to avoid making actual URL tags):https://www.youtube.com/watch?v=cGxUXg1fQCs

author: Augustus
author_rank: Regular Contributor
timestamp: November 11, 2015, 09:05:22 pm
content: No tags needed, just paste the yt video url without anything else...

author: rx8pilot
author_rank: Super Contributor
timestamp: November 11, 2015, 09:12:39 pm
content: Quote from: Augustus on November 11, 2015, 09:05:22 pmThat is quicker and it was my first try.....the Preview option was not working so I thought I was doing it wrong. Should have been brave and just posted it.

author: EEVblog
author_rank: Unknown
timestamp: November 11, 2015, 11:13:30 pm
content: Quote from: rx8pilot on November 11, 2015, 08:51:27 pmJust paste the URLThis forum has a plugin installed that detects Youtube URLs and converts it into an embedded player.

author: rx8pilot
author_rank: Super Contributor
timestamp: November 11, 2015, 11:16:19 pm
content: Clearly, I was searching for the hardest possible solution.

author: Harshadb13
author_rank: Contributor
timestamp: March 20, 2021, 02:01:14 pm
content: Hey!Thanks for the infoJust pasted this post for a test

author: JohnnyMalaria
author_rank: Super Contributor
timestamp: March 20, 2021, 02:09:44 pm
content: You have to use the full YT URL for it to show automatically in a post. e.g.,https://youtu.be/FZN0PBBzEHw<- this is the short form and doesn't workThis is the full form for the same video (I just pasted the full URL, no tags etc):

author: Harshadb13
author_rank: Contributor
timestamp: March 20, 2021, 06:15:24 pm
content: This was helpful.Thanks

author: cdev
author_rank: Super Contributor
timestamp: March 21, 2021, 01:04:07 am
content: There is more to the embedding/streaming process than many people think. Especially seek in a video, that requires some behind the scenes magic. The HTML 5 spec and modern browsers make it a lot easier.As Dave says, his blog CMS software creates a youtube "player" in the web page whenever it sees a raw YouTube URL.That sure is nice. Your @eevblog videos sure are looking good these days. Crisp, they convey an awful lot of info.

author: Harshadb13
author_rank: Contributor
timestamp: March 21, 2021, 07:38:30 am
content: Quote from: cdev on March 21, 2021, 01:04:07 amThat's true.But people like me struggle with pythonHTML is out of question

author: cdev
author_rank: Super Contributor
timestamp: March 21, 2021, 03:06:59 pm
content: No its not, we can get you started right now.Do you have a machine you can run a web server on? Even a Raspberry pi will do fine. We can save the files on a SD card.I can walk you through getting a development machine set up. Its more useful to use a web server than files on your local disk for a number of reasons. There is a sitew3schools.comthat has extensive learning HTML resources.The HTML used by youtube or other video hosting sites can be deconstructed to see how the controls work.Its much easier once you do it and see it working, then some psychological barrier is broken and you just start getting your hands wet, seeing it work, andits suddenly fun. When you see a site that uses some feature you like, just save everything to a folder.. everything you can grab. the tool "wget" is useful for this. Graphics can be done using free software tools like Gimp and Inkscape. And you need a text editor that you like. What platform do you want to use for authoring?No Python required for basic HTML, I promise. I learned HTML from a few basic documents written by Tim Berners-Lee in the early 90s. Back then HTML wasso simple small children could understand itand did. They could be creating hyperlinks in 15 minutes.Nothing is more fun than teaching HTML to children. If they can use a computer they can write HTML. Most HTML is rarely used. Don't be intimidated by all that stuff.

author: cdev
author_rank: Super Contributor
timestamp: March 21, 2021, 03:21:28 pm
content: Hypertext is a more natural form of writing than flat text (files)You can convey thoughts with more fidelity to their meanings.At least I think so.

author: Harshadb13
author_rank: Contributor
timestamp: March 22, 2021, 04:31:29 am
content: Thanks lot for your support.But I'm a mechanical engineer and will probably never need HTML

author: cdev
author_rank: Super Contributor
timestamp: March 24, 2021, 09:13:01 pm
content: Maybe.But I used to say that about SQL way back in the 80s, but when I got into it I found I liked it a lot and could do all sorts of useful stuff with it. A real swiss army knife..

author: Harshadb13
author_rank: Contributor
timestamp: March 25, 2021, 04:09:12 pm
content: Quote from: cdev on March 24, 2021, 09:13:01 pmI did like SQLdid a small course on Coursera which had SQL