- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
MP3 via Flash
- Niklas1704
- Topic Author
- Offline
- New Member
Less
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12797
- Thank you received: 3942
4 years 1 month ago #194626
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic MP3 via Flash
Hi,
I should recommend you use the <audio> tag:
Here with controls
Or controls and autoplay
Always consider the end of life of flash.
Joffm
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10637
- Thank you received: 3700
4 years 1 month ago #194631
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
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!
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!
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10637
- Thank you received: 3700
4 years 1 month ago #194640
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 1 month ago #194678
by DenisChenu
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.
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
4 years 1 month ago #194704
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
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!
But thanks, much appreciated!
The topic has been locked.