Play and Stop sound in HTML5 Canvas





Hi -  
I'm having trouble figuring out the correct steps to control sound in the Actions panel.

Client wants music to start after hitting a "Play" button.   
They want the music to continue playing until the viewer hits a "Replay" button. 

Basically, what I need to do is figure out how to pause the previous instance of the music so it doesn't play over itself when the video replays.

.FLA attached:  
  
valtoukatly.com/BeaconSt\_WIP/beaconst.fla 2.zip
Your example file doesn't include any sound.The simplest solution would be to include this line in your replay code, before the this.gotoAndPlay(2) line: createjs.Sound.stop();
OK I figured it out, I'll put it here to help someone in the future. The key point is the pitch scale change changes the currently PLAYING sound, so it must be used after the play command.


I now have this:



```
soundSamplePlayer.play('success01')
soundSamplePlayer.voice_set_pitch_scale(0,1.2)

```

Basically in `voice_set_pitch_scale(0,1.2)` the first argument (which I have as `0`) is the index of the sound that's playing, so in my case, the first (and only) sound.


The second argument, which I'm testing with `1.2` is the scale change, so 20% higher in this case.


I hope that helps someone in the future. Can look in the direction of the library [NAudio](https://github.com/naudio/NAudio) to decode and playback the audio. The GUI can be done in wpf/uwp or [avalonia](https://www.avaloniaui.net). You can still do instead of another GUI player-player console, as Linux cmus - to implement such a UI, you can use the [Gui.cs](https://github.com/migueldeicaza/gui.cs) this is an update to wowza player to help prevent playback issues in browsers that are changing their autoplay policies. more information can be found in our release notes.

<https://www.wowza.com/docs/latest-wowza-player-updates> [matheus](https://forum.tastyigniter.com/d/1704/1) the extension uses your browser notification which has audio by default, so might be worth looking in your browser setting? right: that's because your play:1 speakers do not support airplay. the support article below may help.
https://www.sonos.com/en-gb/airplay Have you tried enabling the Stero Mix function in the Sound options within Control Panel? I'm assuming you are using Windows 7 here, so go into Sound and the the tab that says Recording. Right click and choose "Show Disabled Devices". Then right click on the option that says Stero Mix and choose Enable.  

From there download Audacity for free from the internet (or alternatively use whatever program you currently use) and start recording from any source playing from your computer. i have done this in the past for other media players, it is definitely able to be done, let me dig up my code i’m not infront of pc atm i’ll come back to you.

here you go.

create a camera image with you details like below

- platform: generic

name: android now playing

still\_image\_url: ht… @ECHO OFF  
ECHO a. Resume   
ECHO.  
ECHO b. Graphics  
PAUSE hi

we can do that by defining a string variable in the very beginning of the process with assign activity or by defining that in variable panel in the studio at the bottom the window

but make sure that we are not assigning any value to that variable later across the workflow

if we assign later th… hi @timh we are very sorry that the “shuffle my music” feature algorithm is not perfect yet. i can assure you that the feedback has been passed on to the product team several times. they had to focus on other features but i just asked for you again and will let you know as soon as have more info. in the meantime, i highly recommend that you simply shuffle your favourites, listen to your flow, listen to the new playlist top 2019  or shuffle your own playlists on other days for more variety.