robhogg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Embedded YouTube videos removed by visual editorOkay, I have now got it to work, sort of. I realised I needed to use the URL of the YouTube page (https://www.youtube.com/watch?v=…), rather than the embed URL (https://www.youtube.com/embed/…).
Now, when I view the post, at least I see a black rectangle where the vid should be (rather than just a hyperlink), and if I right-click on it, I get the typical pop-up menu for a flash video. It doesn’t display any controls or play, though. I am using the free Gnash plugin at the moment (haven’t checked yet with Adobe’s plugin).
I checked out the page source, and it is embedded with the old-style code that YouTube used to supply (using “object”, “param” and “embed” tags), rather than the newer-style way using an iframe. Obviously, this is due to the code YouTube chose to send back.
The test post is here. It contains the same video, embedded twice – the top version was added just by dropping in the URL on a line by itself, the second as an iframe.
I’m sure there’s a better way of doing this. Might start a little hacking when I have time.
Forum: Fixing WordPress
In reply to: Embedded YouTube videos removed by visual editorThanks for the replies. Neither of those methods are working for me, though.
The embed tags just give a link, as does the “add video” dialogue box, while dropping the link into the visual editor just displays the text of the link. I do have the “Where possible embed…” option ticked on the settings page. When I have time, I’ll try a few other YouTube links, and see if they’ll embed properly.
I had wondered whether the code was being removed because it was failing validation. However, I’ve made a slight modification to YouTube’s code, and it now passes the W3C validator, but I have only to view the page in the visual editor for it to disappear, when I update or switch back to the HTML editor.