Skip to content

Instantly share code, notes, and snippets.

@grobertson
Created July 16, 2013 14:46
Show Gist options
  • Save grobertson/6009410 to your computer and use it in GitHub Desktop.
Save grobertson/6009410 to your computer and use it in GitHub Desktop.
SpokenLayer.prototype.setPlayerFile = function() {
//We prefer Mp3
if(this.browserMp3Support){
this.setSrc(this.articleMp3);
this.setReady(true);
}else if(this.browserOggSupport){
this.setSrc(this.articleOgg);
this.setReady(true);
}else{
this.log('No audio support detected');
this.setReady(false);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment