Tech Note: LGF Pages Now Allows Video Embedding from Any Site

Technology • Views: 11,210

LGF Pages continues to evolve: the new feature of the day is the ability to embed videos in your Pages from any video website (instead of being limited to YouTube, Vimeo, Liveleak, and Google).

To make this work, there’s a new button in the LGF Pages bookmarklet that looks something like this:

(That’s supposed to look like a miniature video player.)

Most video sites have a feature that lets you copy the embed code for a video to your clipboard, for pasting into a blog or other site. Here’s an example of this code, copied from YouTube (with spaces inserted to prevent messing up the formatting):

youtube.com; youtube.com;” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”480” height=”385”>

When you click the “Embed Video” button in the LGF Pages bookmarklet, you’ll be prompted to paste in the “Video embed code” from the video site. That’s all you need to do.

The embed code will be converted (through the magic of regular expressions) into the special type of video link we use in the LGF Blog (to be compatible with the widest possible range of browsers), and inserted into your “Text” field at the point where you left the insertion cursor when you clicked the button. The inserted code will look something like this (this is the code for the Dana Carvey video I posted yesterday):

That’s all you need to know. Just click the button, paste in the video embed code, and your video will automagically appear in your Page when it’s posted (or when you Preview).

I’ve tested this feature with many different video sites, and so far they all work (as long as they use and tags and not Javascript or IFRAMEs — see below); the only one that required some special code was Google Video (because they specify the width and height parameters with a “style” attribute).

Note: some websites, like Fox News and CNN, use a Javascript link (or an IFRAME) to embed video. This type of embed code will not work in LGF Pages — you’ll just get an empty string back. Here’s an example of Javascript embed code from Fox:

Jump to top

Create a PageThis is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.
Or... you can just click this button to open the Pages posting window right away.
Last updated: 2023-04-04 11:11 am PDT
LGF User's Guide RSS Feeds

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Cash.app
Recent PagesClick to refresh
Why Did More Than 1,000 People Die After Police Subdued Them With Force That Isn’t Meant to Kill? An investigation led by The Associated Press has found that, over a decade, more than 1,000 people died after police subdued them through physical holds, stun guns, body blows and other force not intended to be lethal. More: Why ...
Cheechako
13 minutes ago
Views: 22 • Comments: 0 • Rating: 0
A Closer Look at the Eastman State Bar DecisionTaking a few minutes away from work things to read through the Eastman decision. As I'm sure many of you know, Eastman was my law school con law professor. I knew him pretty well because I was also running in ...
KGxvi
3 hours ago
Views: 75 • Comments: 1 • Rating: 1