Reputation: 123
I have an app where I need to loop sound files. It is working fine in Safari, but in Chrome and Firefox it will play the file once and not continue to loop.
Can anyone tell me how to fix this.
Code Example:
source2[source2.looping ? 'looping' : 'loop']=true;
Upvotes: 0
Views: 69
Reputation: 13908
Why don't you just say "source2.loop = true;"? Safari supports .loop too, iirc. Otherwise just set both, it's harmless:
source2.loop = true;
source2.looping = true;
Upvotes: 1