Question: How do you display Meta data from an OGG via HTTP?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Nexco
New Cone
New Cone
Posts: 8
Joined: 22 Nov 2007 06:27

Question: How do you display Meta data from an OGG via HTTP?

Postby Nexco » 22 Nov 2007 07:30

Hi everyone,

The question is: How do you display changing real-time Meta data - Title, Artist, Album, etc. from an ogg-vorbis music file coming in via an HTTP stream to a browser?

Here's the back story and configuration information to assist you:

I have completed the set up of VLC on the remote server running Linux Red Hat and am streaming a playlist via HTTP on port 8080 without issue. I have also successfully implemented the javascript on an HTML page to enable vlc.playlist.play(), vlc.playlist.togglePause() and vlc.playlist.stop(). So far so good.

Now we are ready to implement the next feature of the page and have hit a roadblock. We would like to add a "Now playing..." feature that shows:
1. The name of the track that is currently playing, with any other meta data attached to the file, and,
2. Be able to push the change out to the browser when the playlist moves to the next track.

We are working with ogg-vorbis music files encoded by oggenc. I have ensured that the ogg files do indeed have meta data of artist, title, album, etc. as part of the stream by opening the files from our remote Linux server via the Open Network... command (I'm running VLC locally on my office Mac as well) and I do see the meta data in the VLC Advanced Information panel under the "Vorbis Comment" drop down. All the data about the song is in this Vorbis Comment area. I just can't get a javascript function to work to pull the data.

I have noticed that typing help in the terminal brings up several interesting candidates to use in a javascript function to grab data. The methods "title" and "get_title" looked like what we needed and we tried hard to use them, but we have been unsuccessful at getting them to work.

Where should we look next for the answer to pulling the meta data, Title, Artist, Album, et al, from the ogg-vorbis comment area of an HTTP stream?

Thank you very much for your help!

Gregg Goldstone
Nexco

richard6235
Blank Cone
Blank Cone
Posts: 11
Joined: 07 Feb 2011 10:59

Re: Question: How do you display Meta data from an OGG via H

Postby richard6235 » 22 Feb 2011 16:14

Did you ever find out how to do this? As I need something similair but meta data from a udp stream..?

Thanks Ric


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests