Stopping an audio file in EOS

All about the past, current and future webteases and the art of webteasing in general.
---
Post Reply
User avatar
TheDon
Explorer At Heart
Explorer At Heart
Posts: 118
Joined: Wed May 16, 2018 5:47 pm
Gender: Male
Sexual Orientation: Straight

Stopping an audio file in EOS

Post by TheDon »

I cant get this working :huh: Does somebody know how I can stop an audio file from playing in the same page?
Image
Spoiler: show
Image
User avatar
Drool
Experimentor
Experimentor
Posts: 1441
Joined: Sat Nov 28, 2015 2:24 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Switch

Re: Stopping an audio file in EOS

Post by Drool »

Hi. Have you tried

Code: Select all

Eval
Sound.get("soundid").pause();
where "soundid" is the identifier you can give to the sound under Audio:play.
There seems to be no .stop() function, only pause...
User avatar
TheDon
Explorer At Heart
Explorer At Heart
Posts: 118
Joined: Wed May 16, 2018 5:47 pm
Gender: Male
Sexual Orientation: Straight

Re: Stopping an audio file in EOS

Post by TheDon »

Drool wrote: Sun Feb 17, 2019 7:54 am Hi. Have you tried

Code: Select all

Eval
Sound.get("soundid").pause();
where "soundid" is the identifier you can give to the sound under Audio:play.
There seems to be no .stop() function, only pause...
Thank you, it worked.
Image
Spoiler: show
Image
Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 56 guests