1 min

Resolved - Fix YouTube embed code

Resolved on Sep 5, 2013

Unfortunately, ampersand signs are getting encoded. The & sign can be a valid character that's part of a YouTube video URL. No, I made a mistake in grabbing the YouTube URL to embed in my content here. No amperand was used in the file name at YouTube.

Why is the old-style YouTube embed code with object and param tags working, partially? Or is it. For some reason, the video is embedded, and the object and param code is displayed visually. The tags are encoded and displayed as expected. That is, the embed and param tags do not work, which is correct. And the video is not working either as expected. Nothing wrong here.

The object and param tags are suppose to be ignored and encoded so that they display, but why is the video still being embedded? Space for the video was being displayed. May need to look at this some more.

The one change I had to make to the Format.pm::process_embedded_media subroutine was to check for multiple occurrences of the embedded media. Changed if statement to a while statement.

Example:

2009 - 40 Year Anniversary of the Apollo 11 Lunar Landing - fixed

#junco
#resolved

From JR's : articles
201 words - 1141 chars - 1 min read
created on
updated on - #
source - versions

Related articles
Resolved - Add auto-save and live preview to blog posts - Aug 21, 2013
Add a night mode display - Aug 08, 2013
Resolved - Add sort options to tag list page - Jun 27, 2013
Resolved - Add client-side Textile markup editor - Aug 21, 2013
Resolved - Add pound sign and period punctuation buttons to phone and tablet displays - Jun 27, 2013
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 14, 2024 - 10:46 p.m. EST