Welcome to the LimeSurvey Community Forum

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

MP3 via Flash

  • Niklas1704
  • Niklas1704's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago - 4 years 1 month ago #194620 by Niklas1704
MP3 via Flash was created by Niklas1704
Hey guys,

I am trying to implement an MP3-File via Flash into one of my questions. I uploaded it into the resources of my survey and was able to choose it when designing the question. A box with a red "Flash" appears in the preview. When I want to try it, there is no flash interface, just a plain box where the flash player should be. I am using the flash feature in the question interface. What am I doing wrong?

Cheers
Last edit: 4 years 1 month ago by Niklas1704.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194626 by Joffm
Replied by Joffm on topic MP3 via Flash
Hi,
I should recommend you use the <audio> tag:

Here with controls
Code:
<audio controls="">
<source src="http://www.example.com/path_to_file/filename.mp3" type="audio/mpeg" /> 
Your browser does not support the audio element.
</audio>

Or controls and autoplay
Code:
<audio controls="" autoplay="">
<source src="http://www.example.com/path_to_file/filename.mp3" type="audio/mpeg" /> 
Your browser does not support the audio element.
</audio>

Always consider the end of life of flash.
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Niklas1704
  • Niklas1704's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #194628 by Niklas1704
Replied by Niklas1704 on topic MP3 via Flash
Hey Joffm,

I used your code and inserted the path from my Limesurvey resources. In the preview I could see and use the player as expected. When I press "save" the preview box clears and all what remains ist "Your browser does not support the audio element." Do I have to use another file hoster or is it a problem regarding the XSS-Filter?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194631 by tpartner
Replied by tpartner on topic MP3 via Flash
Have you disabled the XSS filter in your security settings?

What do you see in source mode after saving the question?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Niklas1704
  • Niklas1704's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #194637 by Niklas1704
Replied by Niklas1704 on topic MP3 via Flash
Hey again,

I think I am not able to change setting of the XSS. I am not the admin of the tool for my university. I already asked them to change it.

What I can see in source mode is attached. I am using chrome btw.

Thank you so much!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194640 by tpartner
Replied by tpartner on topic MP3 via Flash
That is the XSS filter removing your <audio> element. You will have to get that filter disabled.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Niklas1704
  • Niklas1704's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #194672 by Niklas1704
Replied by Niklas1704 on topic MP3 via Flash
Hey,

my Admin is not willing to disable that filter. The same problem occurs when I try to use Vimeo or Youtube. Is there any other way?

Cheers
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194678 by DenisChenu
Replied by DenisChenu on topic MP3 via Flash
I think it was fixed in last version : github.com/LimeSurvey/LimeSurvey/commit/...893a4db617c62f2142dc

But not in 3.X : you can try to report it as an issue in 3.LTS

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.
  • Niklas1704
  • Niklas1704's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago - 4 years 1 month ago #194695 by Niklas1704
Replied by Niklas1704 on topic MP3 via Flash
Hey,

another option would be to use Vimeo or Youtube. I tried that but after saving the question the Vimeo-Element disappeared. I was able to watch the video in the preview. Now I can see this in source mode:

<div class="videodetector"> </div>

<p> </p>



Thanks
Last edit: 4 years 1 month ago by Niklas1704.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194704 by holch
Replied by holch on topic MP3 via Flash
Das dürfte alles das selbe Problem sein. Der XSS-Filter löscht solchen Code aus Sicherheitsgründen.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • Niklas1704
  • Niklas1704's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 week ago #195560 by Niklas1704
Replied by Niklas1704 on topic MP3 via Flash
Could not get the permission. My Admin did not care at all. I had to change to another tool. Easy Peasy, Lime Squeazy. Survey is finished.
But thanks, much appreciated!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose