-1

I'm having problem streaming audio in my site with the audio element.

<audio controls="controls">
<source src="?" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>

When trying to source the file with DropBox or Google Drive the player doesn't load the audio. I even tried softgateon.herokuapp.com/directlink in vain. Any suggestion or alternative?

examples of failed src:

https://docs.google.com/uc?export=download&id=xxxxxxxx
https://www.dropbox.com/scl/fi/xxxxxxxxx/AUDIO-V-CTOR.mp3
https://www.dropbox.com/scl/fi/xxxxxxxxx/AUDIO-V-CTOR.mp3?rlkey=xxxxxx
https://drive.google.com/file/d/xxxxxxxxxx/view?usp=sharing
2
  • 1
    Show us how you set the src Commented Jan 21 at 16:20
  • 4
    In your browser's developer panel, check the Network tab. What's the HTTP error code when your application tries to read the URL for the audio file? Also, the Google drive link probably isn't designed to be linked to directly. Google Drive has its own file viewer -- this might be your problem Commented Jan 21 at 16:57

1 Answer 1

1

You simply cannot host files on these services in this way. Neither allow direct linking to the actual files.

Use a web server.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.