Skip to content

Delay with html5:true and loop:true #1586

Open
@SY-art

Description

@SY-art

The Problem

When using html5:true and loop:true, there is a pause between repeat with mp3 and wav files. If html5: false - no pause, plays clearly one after another. How to remove pause between repetitions at html5:true?

var sound = new Howl({
        preload: true,
        src: ['x1.wav'],
        loop: true,
        html5: true,
        onloaderror(id, err) {
            console.log(id, err)
        },
        onplayerror: function(e) {
            console.log(e)
        },
        onload() {
            document.getElementById('loading').style.display = 'none'
        },
});

document.getElementById('start').addEventListener("click", () => {
        sound.play();
})

Reproducible Example

No response

Reproduction Steps

Set options:
loop: true,
html5: true,

Possible Solution

No response

Context

No response

Howler.js Version

2.2.3

Affected Browser(s)/Versiuon(s)

chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions