-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0425273
commit 03129cf
Showing
2 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
//import { registerSettings } from "../streamMod/scripts/settings"; | ||
// demo music url http://s3.yesstreaming.net:7062/stream | ||
|
||
var stream = new Howl({ | ||
src: ['http://s3.yesstreaming.net:7062/stream'], | ||
ext: ['mp3'], | ||
autoplay: true, | ||
html5: true | ||
}); | ||
function streamPlay() { | ||
|
||
|
||
function openStream() { | ||
sound.play(stream); | ||
} | ||
|
||
function openStream() { | ||
AudioHelper.play({src: "http://s3.yesstreaming.net:7062/stream", volume: 0.15, autoplay: true, loop: false}, true); | ||
} | ||
|
||
openStream(); | ||
Hooks.on("ready", function () { | ||
streamDialog(); | ||
}); | ||
|
||
function streamDialog() { | ||
$('.dialog').css({width: '350px'}); | ||
let streamPlayer = new Dialog({ | ||
title: `Underhill's Stream Audio`, | ||
content: `<audio controls="controls"> | ||
<source src="http://radio.tabletopsandanvils.com:8000/radio.mp3" type="audio/mpeg" /> | ||
</audio>`, | ||
buttons: {}, | ||
close: (html) => { | ||
console.log(html); | ||
} | ||
}); | ||
streamPlayer.options.width = 316; | ||
streamPlayer.position.width = 316; | ||
streamPlayer.render(true) | ||
} |