L
L
linuxnb2018-02-06 07:33:38
PHP
linuxnb, 2018-02-06 07:33:38

How to listen in the browser to a file that is given by a foreign server for download?

Good time of the day, such a dilemma, there is a link of the form:

http://vkdlmsk2.vkmusic.me/aHR0cHM6Ly9jczEtODJ2NC52ay1jZG4ubmV0L3A5LzkzOGEwNzkyY2YwMmQyLm1wMz9leHRyYT1HZkRVTXJTSF92R1NFX2p1d0ppMzFVX1dLWWtfeHloX3Y5UDRZMmRXNzJxXzJaV0JsZ3paZVhVbnRWMzNINnZ5a0kzakhoN3Z0Qk5jNnE4M1J2d1BSbWNBdzBOdERXS1hYbEFqQ2twZmNfUjhnRjQ1WG9rekVVWk5IVWdGMWgwd29oa1pXdjF0NG9FaEVXNEYmdGl0bGU9Sm9qaSstK0JpdHRlcitGdWNrJmlkPTM3MTc0NTQ2MV80NTY0NTExMjI=


How can I use my server to give a link to listen to this file, and not download it?

This link is not generated on my server.
In the end, the converted link (to streaming or whatever it is called) should be in the html player.
This link in the tag does not work (

Thanks in advance to everyone who responds!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FeNUMe, 2018-02-06
@FeNUMe

My file according to your link plays normally in chrome / ff - https://codepen.io/anon/pen/qxNQRx
Well, in general, the server gives a header there, which should force the browser to download the file.

Content-Disposition: attachment; filename="Joji - Bitter Fuck.mp3"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question