Answer the question
In order to leave comments, you need to log in
Music player on the site using the VKontakte database?
Hello.
There is a task on the forum, working on HTTPS, to make it possible to insert music. Before switching to HTTPS, Musebra's EMBED code was used , and this solution was satisfactory. With the transition to HTTPS, Musebra's player fell off safely, because. is not accessible over HTTPS, and is therefore stripped as insecure content by the browser. By the way, my requests from the Musebra administration to make the player available via HTTPS met with a wall of disinterest. With Prostopleer and Megalyrics.com everything was similar. Grooveshark.com
became a half measure. Their EMBED player works over HTTPS (although not ideally), but the composition database is rather meager, there are few domestic artists, and the process of obtaining an embed code turned out to be non-trivial for the average forum user.
I started looking for another solution. First of all, I took up the VKontakte API via PHP with further insertion into the page using the Uppod player, but, as it turned out, the audio.search method only works for client requests, not server ones. By the way, there is a workaround - a PHP library from a kind person LEMing , described on Habré. Only after writing the code I realized that with such a request, the URL of mp3 files will be relevant only for the server IP, which does not suit me. True, surprisingly, I found out by experience that some track URLs are played in this way from any IP about 50/50. In any case, this is not a solution to the problem. Requesting access to audio recordings from every forum visitor is also not an option.
Then I remembered that Prostopleera has its own API , but it also gives out the URL of the tracks tied to the IP. In this case, the very meaning of the existence of this API is not clear if the VKontakte API has the same functionality.
Apparently, the only way is to "proxy" each track through the server on each listening, but this option is not suitable. I ask for your advice on how to solve the problem.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question