Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the play() request was interrupted by a call to pause() #30

Open
hmpmarketing opened this issue Jan 20, 2020 · 0 comments
Open

the play() request was interrupted by a call to pause() #30

hmpmarketing opened this issue Jan 20, 2020 · 0 comments

Comments

@hmpmarketing
Copy link

Hi,

I would like to leave some feedback about an issue I have noticed with the napster.js sdk.

It seems some songs when not available in 192 bit rate ( I assume) will trigger this error when trying to call Napster..player.play()

"the play() request was interrupted by a call to pause()"

I took some time to look at napster.js and starting on line 56, this bit of code:

this.streamingPlayer = new DrmStreamingPlayer({ id: "napster-streaming-player", apikey: h, token: m.member.accessToken, bitrate: 192, downgrade: !0, currentUser: {}, env: "production" })

There is a hardcoded option for bitrate at 192.

By changing this value to something like 64, the SDK was able to play songs at different bitrates, just dont know whats done internally to select, but some songs will play at 320 or 192.

Anyway to take a look at this and see why this error happens for certain songs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant