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
Add title to microblog posts - Oct 07, 2013
Resolved - Fix RSS encoding problem - Jun 27, 2013
Resolved - Make enhanced textarea blog post feature work with blog replies - Jun 27, 2013
Resolved - Test text for the Textile live preview editor - Aug 21, 2013
Resolved - Add private blog count - Jun 27, 2013
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 14, 2024 - 8:33 p.m. EST