Skip to content

Instantly share code, notes, and snippets.

View jkelvie's full-sized avatar

John Kelvie jkelvie

View GitHub Profile
@jkelvie
jkelvie / index.js
Last active March 26, 2018 12:58
Playing Audio With The AudioPlayer
/**
* Plays a particular track, from specific offset
* @param audioURL The URL to play
* @param offsetInMilliseconds The point from which to play - we set this to something other than zero when resuming
*/
SimplePlayer.prototype.play = function (audioURL, offsetInMilliseconds) {
var response = {
version: "1.0",
response: {
shouldEndSession: true,