import video/audio file

<oXygen/> general issues.
seagrove
Posts: 8
Joined: Mon Jan 14, 2013 6:28 pm

import video/audio file

Post by seagrove » Wed Sep 25, 2013 8:55 pm

importing a graphic file is straightfoward, but how do you import an audio or video file?

Costin
Posts: 595
Joined: Mon Dec 05, 2011 6:04 pm

Re: import video/audio file

Post by Costin » Thu Sep 26, 2013 2:52 pm

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
Costin Sandoi
oXygen XML Editor and Author Support

seagrove
Posts: 8
Joined: Mon Jan 14, 2013 6:28 pm

Re: import video/audio file

Post by seagrove » Thu Sep 26, 2013 10:22 pm

DITA

Radu
Posts: 6403
Joined: Fri Jul 09, 2004 5:18 pm

Re: import video/audio file

Post by Radu » Fri Sep 27, 2013 5:01 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

adrian
Posts: 2543
Joined: Tue May 17, 2005 4:01 pm

Re: import video/audio file

Post by adrian » Fri Sep 27, 2013 6:09 pm

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Oleksii
Posts: 39
Joined: Wed Jul 19, 2017 6:04 pm
Location: Austria
Contact:

Re: import video/audio file

Post by Oleksii » Wed Jul 19, 2017 6:10 pm

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

adrian
Posts: 2543
Joined: Tue May 17, 2005 4:01 pm

Re: import video/audio file

Post by adrian » Thu Jul 20, 2017 10:05 am

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Oleksii
Posts: 39
Joined: Wed Jul 19, 2017 6:04 pm
Location: Austria
Contact:

Re: import video/audio file

Post by Oleksii » Fri Jul 21, 2017 3:17 pm

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

adrian
Posts: 2543
Joined: Tue May 17, 2005 4:01 pm

Re: import video/audio file

Post by adrian » Fri Jul 21, 2017 3:39 pm

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply