Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 8, 2011 19:08
Show Gist options
  • Select an option

  • Save feedhenry-gists/1015118 to your computer and use it in GitHub Desktop.

Select an option

Save feedhenry-gists/1015118 to your computer and use it in GitHub Desktop.
Audio Call
$fh.audio( {"path":"rtsp://example.com/audio", "act" : "play"},
function(result){alert(result) },
function(result){alert("fail" + result)});
$fh.audio( {"act" : "pause"},
function(result){alert(result)},
function(result){alert("fail" + result)});
$fh.audio( {"act" : "stop"},
function(result){alert(result)},
function(result){alert("fail" + result)});
$fh.audio({"act":"getvolume"},
function(result){alert(result);},
function(result){alert(result);});
$fh.audio({"act":"setvolume", "level":0.56},
function(result){alert(result);},
function(result){alert(result);});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment