You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Kabkee

Trainee

  • "Kabkee" started this thread

Posts: 107

Location: South Korea

Occupation: South Korea

  • Send private message

1

Saturday, August 21st 2021, 9:25am

setting Autolock true, not fire onplay event on autoplay



Using Autolock and automatically play the sound, onplay event is not fired at the moment.
The below doesn't work.


streamsound(bgm, get(sound_source[bgm].url), true, 1);
set(sound[bgm].onplay, trace(onplay) );


After pause and play, the event is fired properly.
Automatic playing is not firing the event.


Sometimes when I get the paused attribute, autoplayed sound says it's paused, even if it's playing the sound.


Which part that I should fix?