DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Embed Flash Movie in DITA Topics
severin.foreman May 29, 2009 at 8:07 pm
Embed Flash Movie in DITA TopicsMay 29, 2009 at 8:07 pmParticipants 6Replies 7Last Activity 13 years, 9 months ago
XMetaL EE 5.5
Has anyone been able to use XMetaL to embed Flash movies into HTML files generated from DITA topics?
DITA allows the object element, which I can add using the Insert Element list or Insert > Object menu command while in Normal or Tags On view. To get the movie to play in my HTML output, I need to add a param element as a child of object. The param element contains the relative path to the Flash file. The problem is, I cannot find a way to do it in the XMetaL Author interface and the OT installed with XMetaL does not create a param element in the HTML output.
Does anyone know how to insert the param element inside of object? Or is there another way to set up Flash movies in DITA topics?
SeverinDerek Read May 29, 2009 at 10:04 pm
Reply to: Embed Flash Movie in DITA TopicsMay 29, 2009 at 10:04 pm
The way the DITA customization has been configured the
The quick and easy solution is to do this in PlainText view. To treatseverin.foreman May 29, 2009 at 10:08 pm
Reply to: Embed Flash Movie in DITA TopicsMay 29, 2009 at 10:08 pm
Thanks, Derek. It would be very handy to be able to insert elements in Tags On view and also to have a Properties sheet for the common attributes.Derek Read May 29, 2009 at 11:32 pm
Reply to: Embed Flash Movie in DITA TopicsMay 29, 2009 at 11:32 pm
When I was mucking around with Flash and the DITA OT a while ago (a year?) I found that because the different browsers require different tags,
The DITA OT by default outputs
I have not done any searching recently to see if someone in the DITA community (perhaps on one of the Yahoo groups) has come up with an elegant solution for this. There doesn't seem to be any feature requests at SourceForge either. Perhaps you might consider logging a feature request there (as you are probably dealing with this stuff in the real world and might be able to add insight): http://sourceforge.net/tracker/?group_id=132728&atid=725077Derek Read May 29, 2009 at 11:40 pm
Reply to: Embed Flash Movie in DITA TopicsMay 29, 2009 at 11:40 pm
It might also be worth noting that I was able to (in PlainText) mark up a DITA topic using
1) This was at least a year ago and I believe Microsoft is slowly tightening their security on CHM files, so that is one thing that might break this.
2) Because CHM content is displayed using IE (the content pane) only the
So, it was possible to do CHM containing SWF at some point. The same content worked identically in IE (which makes sense because CHM content is basically the same as the HTML produced by the OT). I don't seem to have any of these files. If I have time to recreate this I'll give it a try at some point.Derek Read May 29, 2009 at 11:46 pm
Reply to: Embed Flash Movie in DITA TopicsMay 29, 2009 at 11:46 pm
I've just found some old stuff that seems to contradict at least some of what I just posted at least with the state things are in now with browsers. I'll test and put it up as a sample if it turns out to be useful.Derek Read May 30, 2009 at 12:24 am
Reply to: Embed Flash Movie in DITA TopicsMay 30, 2009 at 12:24 am
OK, here's a set of demo files. They show how it is possible to reference 4 different types of files in the
1. Save attached file embedding4types.zip
2. Unzip to an empty folder on your local machine such as: C:tempembeddingtest
3. Launch XMetaL Author Enterprise (I tested with 5.1).
4. Open C:tempembeddingtestobjectElementTest.ditamap
5. Select the File menu item Generate Output for DITA Map…
6. Select “Multiple HTML” as the deliverable type and generate the output to the default folder: C:tempembeddingtestmultiple_html_out
7. Not all of the referenced file types will have been copied to the output folder because the DITA OT doesn't recognize them (embedded.html is recognized). So, copy the missing files from the folder you created in step 2 into the output folder before opening the file objectelementtest.html in your browser.
You should have the following files in the output folder before you open the topic#.html files in your browser so the browser will find them (the last 4 files listed here):
For other file formats searching the 'net for the proper type attribute value (basically a mime type) supported by the various browsers will give you the value you need to put into the DITA
Now, to get this coded into your HTML the recommended Adobe way for SWF (by including thetags) would probably require DITA OT changes. It seems that current browsers don't require that any longer though, at least in my testing with IE7 and FireFox 3, so I guess you'll need to figure out if that's really necessary or not (do you want valid strict XHTML, HTML 4.01, HTML 5, etc…). As for thestuff, my testing seems to suggest that this is not really required, but perhaps there are somesettings that control various aspects of the particular file type's viewer that you might wish to control.severin.foreman June 9, 2009 at 2:48 pm
Reply to: Embed Flash Movie in DITA TopicsJune 9, 2009 at 2:48 pm
Thanks very much for your responses and for posting the files. I generated your samples and found that the flash movies played well in Safari, FF and Chrome, but did not play at all in IE 7. When I added the param element (similar to Adobe's recommendations above), the movie played in IE 7. However, adding the param element caused an issue in the other browsers. The movie played, but it no longer streamed; it had to be downloaded before it would run.
I found an article that does a good job of explaining the various elements needed to embed flash movies and proposes a technique to optimize embedded flash movies in several browsers. I'm not sure I want to use the technique discussed, but I will post the link for anyone who is interested.
- You must be logged in to reply to this topic.