Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Include audio file

More
7 years 6 months ago #142620 by AnDA0
Include audio file was created by AnDA0
Hi everyone :)
after hours of searching in the manual + the forums and trying different things, I decided to ask for direct help now.

I would like to imbed audio files in my questions and answers (format .wav but could change it to mp3 if necessary) and tried using the files from Dropbox. I found the code below but for some reason it doesn't work.

<audio controls style="width: 185px;"> <source src=" www.dropbox.com/s/mtduzew2p89n2v7/test%2...rter.com%29.mp3?dl=0 " type="audio/mp3">

When using the preview, he audio player appears, looking good. After "loading" it tells me "error" and I can't play the file.
The question now: Why's that? And, more importantly: How can I make it work?
If it's because I'm using a Dropbox file? If so, could you recommend another EASY way of getting an audio files URL?
If it's something to do with this XSS thingy that I've read about (and didn't understand) - please EXPLAIN how I can change it.

I'd really appreciate any help - simple and easy to understand would be great, cause I'm rubbish at all this ;)
Thanks! :)
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago - 7 years 6 months ago #142633 by Joffm
Replied by Joffm on topic Include audio file
Hi, AnAO,
well,
Code:
<audio controls="">
<source src="http://www.server.com/Tralala/Himno_Dom.mp3" type="audio/mpeg" /> 
<source src="http://www.server.com/Tralala/Himno_Dom.wav" type="audio/wav" /> 
Your browser does not support the audio element.
</audio>
works for me.

You should add the "http://" in the source.
And according to w3schools the media type of "mp3" is "audio/mpeg".

And you could try to copy your files from the dropbox to the LS directory.

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 6 months ago by Joffm. Reason: Ergänzung
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #142741 by DenisChenu
Replied by DenisChenu on topic Include audio file

AnDA0 wrote: ...
If it's something to do with this XSS thingy that I've read about (and didn't understand) - please EXPLAIN how I can change it.
....

If you are not super admin : it can be this .

See the auto link when write XSS

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose