Inserting local media files

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
Tobias Escher
Posts: 189
Joined: Mon Dec 28, 2015 7:32 pm

Inserting local media files

Unread post by Tobias Escher »

Hi!

For a personal project (essentially a database of audio files), I need to insert local mp3 files into topics.
These need to be available in WebHelp to play back, ideally inside the active topic.
Is that possible?

best

Tobias
User avatar
Martin Wynne
Posts: 1026
Joined: Mon May 12, 2003 3:21 pm
Location: West of the Severn, UK

Re: Inserting local media files

Unread post by Martin Wynne »

Hi Tobias,

1. rename the mp3 file name to remove any spaces if necessary.

2. put a copy of the mp3 file in the Project > Baggage folder.

3. insert an HTML code object in the topic where you want the play button and volume controls (Write > Insert Object > Insert HTML code object).

4. in the HTML code object enter:

Code: Select all

<audio controls> <source src="my_audio_file.mp3" type="audio/mpeg"> </audio>
(change the file name, of course)

5. That's it. :)

To make it easy, if you have several files, you can copy and paste the entire HTML code object into each subsequent topic. Then you need only edit the file name in each one.

Martin.
User avatar
Tim Green
Site Admin
Posts: 7818
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Inserting local media files

Unread post by Tim Green »

In addition to Martin's suggestion, if you have HelpXplain you can insert the audio files in an Xplain and then embed that in a Help+Manual page. This will enable you to put them in a user interface that you can design with additional elements and multiple pages, if you wish. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
David Pybus
Posts: 9
Joined: Tue Dec 27, 2016 1:03 am

Re: Inserting local media files

Unread post by David Pybus »

I'm trying to make this work in HM 8.3.1, but when I publish locally, the playback controls are shown, but the file is not played and no error is shown. Have you any ideas?

The mp3 file is stored in Baggage and has been correctly renamed in the HTML command.
User avatar
Tim Green
Site Admin
Posts: 7818
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Inserting local media files

Unread post by Tim Green »

David Pybus wrote: Thu May 30, 2024 5:01 am I'm trying to make this work in HM 8.3.1, but when I publish locally, the playback controls are shown, but the file is not played and no error is shown. Have you any ideas?
I just tested this and it works fine in current browsers. Does the filename contain spaces, accented characters or any other non-ASCII characters?
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply