Show current song information from html5 audio stream (in Meteor app)

女生的网名这么多〃 提交于 2019-12-22 09:22:21

问题


I'm working on an HTML5 radio player in Meteorjs. See http://radio.meteor.com/ or http://github.com/guaka/radio-meteor

I want to display the song that's currently playing. How can I do that?

I'm not sure if resorting to server side would be a great idea as the server would have to fetch metadata for a growing number of streams (I want to allow people to add more channels).

Browsers compatibility is not that much of an issue, as long as it will work in Phonegap. I don't care about all browsers (i.e. IE) as long as I can make it fails gracefully.

I think Pulling Track Info From an Audio Stream Using PHP might be an answer than can work for Meteor (server side).


回答1:


It should be possible via filereader on the client end, browser compatibility would be a bit of trouble.

Have a look at: http://ericbidelman.tumblr.com/post/8343485440/reading-mp3-id3-tags-in-javascript




回答2:


Maybe not actual now, but can help somebody else. I use this one package to getting metadata about streaming audio



来源:https://stackoverflow.com/questions/15444262/show-current-song-information-from-html5-audio-stream-in-meteor-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!