?

Log in

No account? Create an account
ENTRIES FRIENDS CALENDAR INFO PREVIOUS PREVIOUS NEXT NEXT
Coding Assistance Required - De File
Does Collecting Make You Feel Dirty?
cbertsch
cbertsch
Coding Assistance Required
I'm going to do something I almost never do: ask for help. I was excited to be able to embed non-YouTube video material in my entries, but realized that the code I'd copied for my entry of earlier today was making the Westinghouse refrigerator infomercial play every time it was loaded. And that's not cool for "Friends" pages.

I've put the video behind the cut for now. But I don't like to use LJ cuts unless an entry is really long. Actually, I don't like to do LJ cuts period. What I'd rather do for circumstances like this is find a way to modify the embedding code so that it doesn't play unless you click first, a la YouTube clips embedded within LJ entries. Here's my question. Do any of you with more coding experience than I have -- it has been a long time since I was messing around with Modula-2 -- know how to realize this goal? I'll present the code I used earlier today, taken straight from the Internet Archive:
I've never seen this "lj-embed" tag before. The only thing I know about FlowPlayer is that it's the one that the Internet Archive uses, presumably because it's open-source. Anyway, I'd greatly appreciate any assistance you can provide. In the interim, if you see an LJ cut on one of my entries, it will most likely have video embedded behing it.

Tags: , ,
Current Location: 85704

8 comments or Leave a comment
Comments
duccio From: duccio Date: August 30th, 2007 05:10 pm (UTC) (LINK TO SPECIFIC ENTRY)
Another L-journalist had this problem of "auto play" with a YouTube he posted. Actually he posted about 5 of them in one entry with 4 of them under a cut. The one that was not under the cut always played when I opened my friend page. First I would just click the play bar "off", but then he exchanged the offending Tube for one of the others that didn't have this problem. He never found the problem in the code, if he even looked to solve the glitch.
cbertsch From: cbertsch Date: August 30th, 2007 05:26 pm (UTC) (LINK TO SPECIFIC ENTRY)
I wish all this were easier. Maybe I'll return to the world of pure text. Or at least keep things still.
duccio From: duccio Date: August 30th, 2007 05:39 pm (UTC) (LINK TO SPECIFIC ENTRY)
Well actually, I liked your music that was auto playing while I checked out my FP. It was much better than the other time I mentioned above, which had jangling 1950's "modern" music that sounded inspired by wannabe Kabuki theater.
cbertsch From: cbertsch Date: August 30th, 2007 05:46 pm (UTC) (LINK TO SPECIFIC ENTRY)
Oh, I love the clip. It's amazing. But I don't want it playing every time my LJ friends reload!
danthered From: danthered Date: August 30th, 2007 05:22 pm (UTC) (LINK TO SPECIFIC ENTRY)
LJ does not honour the <embed> tag, for reasons of security (so it's said; I have no reason to disbelieve them and insufficient knowledge to dispute them). Only video from certain sources can be embedded; for others you have to just provide a link. See FAQ 14 and FAQ 268.
cbertsch From: cbertsch Date: August 30th, 2007 05:26 pm (UTC) (LINK TO SPECIFIC ENTRY)
Yes, I'd heard that. But it did embed. I just need a way to have it not play automatically. Of course, by the time I do that, it will probably no longer embed!
danthered From: danthered Date: August 30th, 2007 05:30 pm (UTC) (LINK TO SPECIFIC ENTRY)
Uhhh...oh yeah! Sorry. Try adding these two params:


<param name="autoplay" value="false">
<param name="autoStart" value="0">


The "autoplay" param is recognised by QuickTime, while "autostart" is for Windows Media Player.
cbertsch From: cbertsch Date: August 30th, 2007 05:48 pm (UTC) (LINK TO SPECIFIC ENTRY)
Awesome. I'm going to play around and see if I can make it happen.
8 comments or Leave a comment