Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
78 views
ago in Plugins by
edited ago by

The player does not appear, and only the attached image is displayed.
I am using the embed plugin, and video links work fine, but audio links and PDF files do not work.



 

I believe the issue is with this Flash player. Can someone fix the error, or if it works for someone, please provide me with the correct code?


<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_mini.swf" width="200" height="20"><param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_mini.swf" ><param name="bgcolor" value="#000000" ><param name="FlashVars" value="mp3=$1" ></object>



What is the solution? Thank you in advance.

Q2A version: 1.8.8

1 Answer

0 votes
ago by

I got this code and it works but the audio file does not work I think it needs permissions Can someone help us solve the problem


<audio controls width="200">

  <source src="YOUR_AUDIO_URL" type="audio/mpeg">

  <source src="YOUR_AUDIO_URL" type="audio/ogg">

  Your browser does not support the audio element.

</audio>


ago by
@gold-developer
Can you help
ago by
The Flash Player plugin is no longer available for most modern browsers.
https://support.google.com/chrome/a/answer/10706877?hl=en

You should convert your file to a .mp3 or .wav file, and use the <audio> tag for audio, or <video> tag if it's a video.
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

You can also use <embed> for .pdf files, for example:

<embed src="http://example.com/the.pdf" width="500" height="375"
 type="application/pdf">

- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed
ago by
Thank you so much for your help.
I have already used it, and the audio player appears, but it doesn't work, and I can't click on the play button.

Is there another issue?

See the attached image in the answer
ago by
edited ago by
That's because the file failed to load.
- Did you make sure to replace the audio src "YOUR_AUDIO_URL" and that is pointed to the correct file path?
- Did you make sure it's a .mp3, .wav or .ogg file?

What plugin is this btw? You forgot to mention and link it in your question.
ago by
File Type: sure mp3

Plugin: Embed  by   NoahY (extended by Gurjyot Singh)

url : https://github.com/xinzore/q2a-embedX

Code:
<figure>
  <audio controls src="YOUR_AUDIO_URL"></audio>
  <a href="YOUR_AUDIO_URL"> Download audio </a>
</figure>
...