Created
March 24, 2016 14:19
-
-
Save satsalou/954ed4331e377c23ecbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function play() { | |
// Display loader | |
if (window.Stream) { | |
stream = new window.Stream(audioStream); | |
// Play audio | |
stream.play(); | |
} | |
// Hide loader after XXX sec | |
getStreamInfo(); | |
timer = $interval(function() { | |
getStreamInfo(); | |
}, 5000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment