Skip to content
Browse files

id is optional. Failure may include lack of HTML5 support.

  • Loading branch information...
1 parent abf126d commit 81ac123a078180f13e071ecbc84432860838c0b4 @scottschiller committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 demo/template/index.html
View
6 demo/template/index.html
@@ -43,7 +43,7 @@
// SM2 has started - now you can create and play sounds!
var mySound = soundManager.createSound({
- id: 'aSound',
+ id: 'aSound', // optional: an id will be generated if not provided.
url: '../_mp3/click-high.mp3'
// onload: function() { console.log('sound loaded!', this); }
// other options here..
@@ -160,7 +160,7 @@ <h2 id="commented-template">Template Code: Commented Version</h2>
<span><span>// SM2 has started - now you can create and play sounds!</span></span>
var mySound = soundManager.createSound({
- id: '<em><em>aSound</em></em>',
+ id: '<em><em>aSound</em></em>', <span><span>// optional: provide your own unique id</span></span>
url: '<em><em>/path/to/an.mp3</em></em>'
<span><span>// onload: function() { console.log('sound loaded!', this); }
// <a href="../../doc/#smdefaults" onclick="checkDomain()">other options</a> here..</span></span>
@@ -174,7 +174,7 @@ <h2 id="commented-template">Template Code: Commented Version</h2>
ontimeout: function() {
- <span><span>// Hrmm, SM2 could not start. Missing SWF? Flash blocked? Show an error, etc.?
+ <span><span>// Hrmm, SM2 could not start. Missing SWF? Flash blocked? No HTML5 audio support? Show an error, etc.?
// See the <a href="../flashblock/" title="SoundManager 2 flashblock handling demo" onclick="checkDomain()">flashblock demo</a> when you want to start getting fancy.</span></span>
}

0 comments on commit 81ac123

Please sign in to comment.
Something went wrong with that request. Please try again.