Re: Insert object(video)-tag

Hussein Shafie <[email protected]> Thu, 28 Jul 2022 17:04:43 +0200
Newsgroups gmane.editors.xxe.general
Message-ID <[email protected]>
On 7/28/22 15:37, Amhof Melanie wrote:
> 
> I'm working with XMLMind XML Editor Professional Edition 10.1.0.
> 
> I've a problem by insert a video with object(video)-tag. The video has 
> the format mp4. I get always the following error:
> 
>  >
> 

This is not a bug. The Java runtime you have simply does not include the 
codecs needed to render the video within XMLmind XML Editor (or any 
other Java application).

Workarounds:

* Simply ignore the error message.

OR

* Re-encode the video to MP4 video with MP3 audio.

OR

* Specify several videos files, each having a different format. Make 
sure the first in the list is one supported by Java runtime.

Example (excerpts from "XMLmind XML Editor - DITA Support", 
http://www.xmlmind.com/xmleditor/_distrib/doc/dita/media.html)
---
      <object data="media/video.mp4" type="video/mp4">
         <param name="source"
                type="video/ogg; codecs=&quot;theora, vorbis&quot;"
                value="media/video.ogv" valuetype="ref"/>

         <param name="source" type="video/webm" value="media/video.webm"
                valuetype="ref"/>

         <param name="width" value="320"/>

         <param name="controls" value="yes"/>

         <param name="poster" value="media/video_poster.jpg" 
valuetype="ref"/>
       </object>

Notes:

It is strongly recommended to specify alternate video files as modern 
web browsers, while all supporting the HTML 5 <video> element, vary in 
their support of video formats. This is done by adding <param> child 
elements to the <object> element. Such <param> elements must have a 
name="source" attribute, a valuetype="ref" attribute, a @value attribute 
referencing a video file and preferably, a @type attribute specifying 
the media type of the video file.
---

Our media player dialog box supports this feature and makes it very easy 
to use. See "Using the media player dialog box", 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/media_info_editor.html




> But the conversion to webhelp works correctly and the video can also be 
> started at the html-file.

That's normal. Unlike the Java runtime you use to run XMLmind XML 
Editor, a web browser includes a lot of video codecs, inclusing MP4 with 
AAC audio.





> 
> What is the reason for this error within the dita file?

No, not at all




--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support