Page 1 of 1

import video/audio file

Posted: Wed Sep 25, 2013 8:55 pm
by seagrove
importing a graphic file is straightfoward, but how do you import an audio or video file?

Re: import video/audio file

Posted: Thu Sep 26, 2013 2:52 pm
by Costin
Hello,

In order to better understand your use-case, could you please specify what document type has the XML file in which you want the audio / video files to be included (is it a DITA document or DocBook, or a TEI one)?

Regards,
Costin

Re: import video/audio file

Posted: Thu Sep 26, 2013 10:22 pm
by seagrove
DITA

Re: import video/audio file

Posted: Fri Sep 27, 2013 5:01 pm
by Radu
Hi,

We do not have a button on the toolbar for inserting references to videos or audio files but we will consider this as an improvement request and maybe provide such buttons in a future version.
In the meantime, in DITA documents you can insert an element called <object>:

http://docs.oasis-open.org/dita/v1.2/os ... tml#object

which corresponds to the HTML <object> tag.
The DITA code for embedding a YouTube movie would thus be something like:

Code: Select all

http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/embed_videos.html
You can create a code template in Oxygen which appears in the content completion window and inserts such a construct.

Such constructs do not work for the PDF output.

Regards,
Radu

Re: import video/audio file

Posted: Fri Sep 27, 2013 6:09 pm
by adrian
Hello,

The "object" element from DITA can be used for this. Note that this will only work for HTML output.
Please see the following topic for details:
Embed Youtube Videos in DITA
The same procedure can be used for generic video or audio files, not just for Youtube.

Regards,
Adrian

Re: import video/audio file

Posted: Wed Jul 19, 2017 6:10 pm
by Oleksii
Hello,
how looks the inserting of audio now? I use <oXygen/> XML Editor 18.1, build 2017020917
I have an xml document, which I process than with xslt to html.
thanks
alex



adrian wrote:Hello,

The "object" element from DITA can be used for this. Note that this will only work for HTML output.
Please see the following topic for details:
Embed Youtube Videos in DITA
The same procedure can be used for generic video or audio files, not just for Youtube.

Regards,
Adrian

Re: import video/audio file

Posted: Thu Jul 20, 2017 10:05 am
by adrian
Hi,

There is an "Insert media" dialog box that can assist you with this.
You can find the documentation in the Oxygen user manual:
Adding Video, Audio, and Embedded HTML Resources in DITA Topics
See the tip at the bottom.

Regards,
Adrian

Re: import video/audio file

Posted: Fri Jul 21, 2017 3:17 pm
by Oleksii
Hi, Adrian,
that article is for DITA topic files (I have no idea what it is), should it work for an xml-file (http://prntscr.com/fyhnix)? Anyway, I don't find such button "insert media" there.
best
Alex

Re: import video/audio file

Posted: Fri Jul 21, 2017 3:39 pm
by adrian
Hi,

This thread was discussing embedding video/audio for DITA. "Insert media" is an Author (visual editing) action available in Oxygen for specialized types of XML document like DITA, DocBook, HTML.
So, you can find the same action when editing HTML in Oxygen (Author mode).

There is no generic way to insert/embed audio in any (non-specialized) XML file.
If you just want it in the output HTML file, you should provide a reference/URL to the video/audio in the XML file, that you can then process (or simply copy) with your XSLT stylesheet to the resulting HTML.

Regards,
Adrian