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.

juyatu

Trainee

  • "juyatu" started this thread

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

1

Friday, January 15th 2021, 6:12am

Sound doesn't loop after the first touch.

After the first touch, the music starts playing. But it doesn't loop,it only played once and then stopped.
krpano 1.20.9
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

jeromebg

Professional

Posts: 1,116

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

2

Friday, January 15th 2021, 9:00am

show us you code if you want some help ;)

juyatu

Trainee

  • "juyatu" started this thread

Posts: 65

Location: China

Occupation: Krpano custom coding

  • Send private message

3

Monday, January 18th 2021, 2:21am

show us you code if you want some help ;)

<plugin name="bgmusic_interface"
url="%ROOT%/plugins/soundinterface.swf"
alturl="%ROOT%/plugins/soundinterface.js"
rootpath=""
preload="true"
keep="true"
/>

<action name="autoplaymusic" scope="local" autorun="onstart">
playsound(bgsnd,get(global.bgmusicurl),true);
</action>

If the plugin try to automatically unlock the browsers sound playback on start using the first touch or click events,then it's only going to play once.However, when the action is executed the second time, its loop will work.I think it has something to do with autounlock.
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

This post has been edited 1 times, last edit by "juyatu" (Jan 18th 2021, 2:31am)


Similar threads