Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including com.surfernetwork.audiometadata with all npm packages installed. Try it out:

com.surfernetwork.audiometadata lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("com.surfernetwork.audiometadata/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

com.surfernetwork.audiometadata v1.0.0

PhoneGap Live Audio Stream Metadata


This plugin will extract Artist and Title metadata from an url of a live MP3 http audio stream in form of json.


Assuming PhoneGap CLI is installed, from the command line.

phonegap local plugin add

PhoneGap Build

Add the following xml to your config.xml to always use the latest version of this plugin:

<gap:plugin name="com.surfernetwork.audiometadata" />

or to use an specific version:

<gap:plugin name="com.surfernetwork.audiometadata" version="1.0.0" />

More informations can be found here .

How to Use

It supports Phonegap 3.0 and above

This plugin will pass stream url and will retun metadata in form a json object.

From index.js you may call plugin by passing parameters.

    var returnSuccess='success';
        var StreamUrl='http://url:port/stationid';
        var success = function(result) { 
                    console.log("Artist:"+result.Artist );
                        console.log("Title:"+result.Title );   
    var error = function(error) { 
                          console.error("ERROR: \r\n"+error ); 
AudioMetadata.callNativeFunction(success, error,{'result':returnSuccess,'streamurl':StreamUrl}); 
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free