Skip to content

Commit 119d31a

Browse files
committed
Add example for streaming audio
Fixes #1429
1 parent 0b82b30 commit 119d31a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ var sound = new Howl({
100100
sound.play();
101101
```
102102

103+
##### Streaming audio (for live audio or large files):
104+
```javascript
105+
var sound = new Howl({
106+
src: ['stream.mp3'],
107+
html5: true
108+
});
109+
110+
sound.play();
111+
```
112+
103113
##### More playback options:
104114
```javascript
105115
var sound = new Howl({

0 commit comments

Comments
 (0)