Skip to content

loadNext() always fails #9

@ildella

Description

@ildella

Describe the bug
loadNext() always fails with error
No media was loaded first, use load method.

To Reproduce

  await client.load(href1, options1)
  await client.play()
  await client.loadNext(href2, options2)

Expected behavior
My original expectations was that loadNext whould just act as load() if nothing was already loaded.
Second best thing is that I manually have to make the first load() and then ladNext() for each subsequent track.

Environment (please complete the following information):
Node 22 and 24.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions