MP3 Search results to audio player - php

I operate a website that searches soundcloud for music results and I'm trying to have an audio player play the search results, however I'm having a little trouble.
For each search result I use this {$mp3_search[mp3].mp3_url} which is the direct link to the song. But just putting that line of code into a standard open source audio player does not work.
Any ideas?

Related

Dynamic XML playlist for JW player with rtmp formatting.

I am trying to randomize an JW Player xml playlist out of PHP/MySql database.
I've gotten the playlist to almost work out of an array. If you refresh this page you'll see the playlist randomly updates from a database. http://spillway.com/radiotest/output7.php
The issue I have is the formatting of the xml for rtmp or Cloudfront with JW player.
The tag that currently works in XML is:
<jwplayer:source file="rtmp://s1hym70yk17nz2.cloudfront.net/cfx/st/Feathery_Husk.mp3">
But this will not parse correctly in the dynamic xml.
Would the JW Player tag be preferable somehow?
Here is the working XML with Cloudfront which is hardcoded and works with a normal embed. http://spillway.com/radiotest/radio1.xml
Any Ideas would be great. Difficult to find consistent JW player data on any of this.
JFC
I have a little script that makes a playlist random every time the page loads.
Demo - http://www.pluginsbyethan.com/github/randomplaylist.html
Instructions - https://github.com/emaxsaun/randomplaylist

Play two embedded youtube videos synchronized

I would like to add on the webpage two embedded youtube videos: one with song clip (LEFT) and the other with song lyrics or translation(RIGHT). The RIGHT video is made by me, so if I play them offline in two windows the lyrics are synchronized with clip. The videos are uploaded then to youtube.
The question is: how can I "join" these two videos online, so user will have just one play/pause button, and if he jumps for example to 0:12 - both videos jump to 0:12. Is that possible?
I can't make a one video with both clip and lyrics, as might someone suggest. The RIGHT video with lyrics can be in different languages, while the song clip is the same.
Thanks
You could do this with xuggler. http://www.xuggle.com/xuggler/
You would need some bits on the server to do the work and stream the results.
Xuggler is quite fast assuming you have all the videos available at request time. If you are forced to dl them from YouTube and then combine them it might get more exciting.
as of now an incomplete answer. to be completed when plugin described is built.
You could build this with Acorn, a media remixing javascript library.
The capabilities to do this (side-by-side videos) is not there yet out of the box (I've added an issue to the acorn-player repository).
All that needs to be done is build a shell (acorn-player plugin) that embeds two pieces of media side by side, and let acorn do the youtube api play-syncing heavy lifting.

MediaElement.js - Multiple players, can't play videos after one player has already started playing one

I'm trying to track down a tricky issue with MediaElement.js players. I'm using the player in multiple locations on a page, all of which are video files. These video files all point to the same url, which is a file download script that streams the file given an id. Each file has a unique id, which means the url given to the MediaElement player is of the type "/fileDownload.php?fileId={some file id}"
When I press play on one of the videos, it loads fine and starts streaming the video. However, when I pause the video and try to play another one of the videos, it won't load them at all, and will just spin forever like it's loading them. The videos won't play until the page is refreshed.
I'm not tremendously familiar with the implementation of the MediaElement players. Is it possible this occurs because MediaElement.js can't handle files coming from the same URL but with different GET parameters?

Extract Album Art Image of MP3 URL

I am trying to extract album art image from mp3 URLs. I am basically having several MP3 URLs set, and I am playing them on a website, but I do not have album art of the songs. How can I get it? Is it possible to parse ID3 tags to get album art?
How do the window media player, vlc player and winamp player show album art of songs even if there is no such image in the songs directory?
I implemented the website using php and js.
Please help me out, thanks.
Kevindra
I know VLC uses freedb.freedb.org to get his info, you could google for a API or build one to get the data through freedb.freedb.org:8880/~cddb/cddb.cgi

Using own video player for youtube, dailymotion,vimeo etc

I have my own video player, I've bought it from activeden. And im going to use youtube, dailymotion, video api with php. But i want to use my own video player. How can i do that? It takes list from a xml files like this;
<video_item>
<hd_video_path>.flv</hd_video_path>
<sd_video_path>.flv</sd_video_path>
<video_title>....</video_title>
<video_description>...</video_description>
</video_item>
You should write a script(PHP/.NET or whatever) that pulls in the correct video url for the videos you want to put in your player and assembles your playlist based on those.

Categories