Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var iOSAppMode = window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.rainwavePlay;
if (iOSAppMode) {
self.play = function () {
window.webkit.messageHandlers.rainwavePlay.postMessage();
};
self.stop = function () {
window.webkit.messageHandlers.rainwaveStop.postMessage();
};
self.useStreamURLs = function (streamURLs) {
window.webkit.messageHandlers.rainwaveUseStreamURLs.postMessage(streamURLs);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.