Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-10-19 19:26:30
- kitkioto
- Member
- Registered: 2005-10-06
- Posts: 16
Use Object element to embed, also make custom TXP tags
Hi guys, me again… here’s my quandary…
I’ve just used the code
<code>
<object type=video/quicktime data=”/archive/movies/hitmen/hitmen5.mov” width=“320” height=“256” class=“embed-left”>
<param name=“movie” value=”/archive/movies/hitmen/hitmen5.mov” />
</object>
</code>
you can view the result @ <a href=“http://www.alexanderng.org/index.php?s=hitmen”>Absentee Movie</a>
the movie is located @ http://www.alexanderng.org/archive/movies/hitmen/hitmen5.mov
Here are my questions:
1. How come the object element isn’t allowing the video to load on the page?
At one point it worked, and then I changed something without taking note of what I changed… I broke something. I tried tracing my steps and methods, but I havn’t been able to reproduce my former success.
(once #1 is solved)…
2. How can I create a custom TXP tag for myself that will let me add video much in the way upm_img_popper uses a custom TXP tag for inserting images?
I dont nessecarily need a “movie selector” the way that upm_img_popper has an “image selector”. I’m just looking for a way to create a custom tag that uses attributes of my choosing so I don’t have to use the param, type, value, etc. elements and attributes every time I want to include media.
Offline
#2 2005-10-19 19:31:01
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Use Object element to embed, also make custom TXP tags
Try this:
<code>
<object width=“320” height=“256”
classid=“clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B”
codebase=“http://www.apple.com/qtactivex/qtplugin.cab”>
<param name=“src” value=”/archive/movies/hitmen/hitmen5.mov”>
<param name=“controller” value=“true”>
<param name=“autoplay” value=“false”>
<embed src=”/archive/movies/hitmen/hitmen5.mov” width=“320” height=“256”
autoplay=“false” controller=“true”
pluginspage=“http://www.apple.com/quicktime/download/”>
</embed>
</object>
</code>
Last edited by NyteOwl (2005-10-19 19:32:29)
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#3 2005-10-19 19:42:18
- kitkioto
- Member
- Registered: 2005-10-06
- Posts: 16
Re: Use Object element to embed, also make custom TXP tags
Thanks,
That code is what I was using before, but the embed element doesn’t validate as it’s not part of the xhtml spec… Also, one of my goals was to keep the code as tight and lean as I can.
I tried to follow the guidelines listen in this <a href=“http://www.alistapart.com/articles/flashsatay”>article</a> as written in <a href=“http://www.alistapart.com”>A List Apart</a>. Though it deals with Flash media, quicktime media isn’t far off code-wise. The technique should apply.
Any insights?
-Alex
Offline
#4 2005-10-20 18:46:01
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Use Object element to embed, also make custom TXP tags
You’re correct of course that <code><embed></code> doesn’t validate. Unfortuantely it is the only way to get some older browsers to display the content. If this isn;t a concern then it can be discarded.
Following the ALA article one might be left with something like:
<code>
<object type=“video/quicktime” data=”/archive/movies/hitmen/hitmen5.mov” width=“320” height=“256” /> <param name=“controller” value=“true” /> <param name=“autoplay” value=“false” /> Error: There has been a problem in displaying the movie. </object>
</code>
Of course IE will likely have no idea what to do with this, lacking any reference to it’s normal ActiveX control for handling Quicktime. You got me curious so I went looking and came across this rather interesting page on the problem <a href-“http://realdev1.realise.com/rossa/rendertest/quicktime.html” title=“quicktime article”>http://realdev1.realise.com/rossa/rendertest/quicktime.html</a>
It would appear you’ll have to make some tweaks and tradeoffs to get things “just right”.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#5 2005-10-22 00:36:25
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Use Object element to embed, also make custom TXP tags
Well, I just saw a page with the simplest embedding if you can call it that … <a href=“http://www.irenemcgee.com/” title=“Irene McGee”>http://www.irenemcgee.com/</a>
It simply placed the movie as <code> <a href=“move_name.mov”>Link image or text</a> </code> and when clicked on the movie played. Granted it loaded the movie in a seperate page by itself but it worked perfectly in IE and Firefox. :-)
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: Use Object element to embed, also make custom TXP tags
Did anyone ever find a way to embed quicktime and maintain w3c validity? I have yet to find a way?
EDIT: I finally got this thing to validate from help with the article above
Note that when posting inside an article, you must delete ALL spaces and hard returns or it will break and NOT validate.
The final code I used is:
<code>
<object classid=“clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B” codebase=“http://www.apple.com/qtactivex/qtplugin.cab” width=“416” height=“192”><param name=“src” value=”/folder/listen_again.mov” /><param name=“controller” value=“true” /><object type=“video/quicktime” data=”/folder/listen_again.mov” width=“416” height=“192” class=“mov”><param name=“controller” value=“true” />Sorry, there’s been an error.</object></object>
</code>
(also, note the correct css for multiple browser support) They could stand to have some conditionals instead, but hey, all in good time.
Sorry, its so messy. Again, I had to remove all hard returns or txp creates <p> tags in innapropriate places.
Hope this helps some?
matthew
Last edited by ma_smith (2005-10-31 00:48:41)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline