napster.js
napster.js copied to clipboard
Uncaught (in promise) DOMException
I am getting the following exception in the developer console when running the example app:
Uncaught (in promise) DOMException
load (async)
n @ streaming-player.js?_=1555780103494:8
E @ streaming-player.js?_=1555780103494:7
b @ streaming-player.js?_=1555780103494:7
w @ streaming-player.js?_=1555780103494:10
Je @ streaming-player.js?_=1555780103494:10
Tn @ streaming-player.js?_=1555780103494:8
on @ streaming-player.js?_=1555780103494:8
e @ streaming-player.js?_=1555780103494:9
e @ streaming-player.js?_=1555780103494:9
e.setSource @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
ii @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:34
ii @ streaming-player.js?_=1555780103494:27
ii @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
setTimeout (async)
e @ streaming-player.js?_=1555780103494:27
Kn @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:10
(anonymous) @ streaming-player.js?_=1555780103494:10
Promise.then (async)
e @ streaming-player.js?_=1555780103494:10
e.play @ napster.min.js:formatted:152
(anonymous) @ client.html?accessTo…3a7-fd7989e1ff3a:80
dispatch @ jquery-1.11.0.min.js:3
r.handle @ jquery-1.11.0.min.js:3
While I am unable to reproduce it 100%, I notice it happening when I pause one song and start another one as fast as I can. This way, I can consistently and frequently reproduce.
Use playevent and ready events to make sure it's in the right state (loaded and playing states). With the napster sdk, you have to manage the player's state yourself. Just pay attention to the events, set/check variables of its state, and then call back to the next action. Avoid the urge to do something hacking like using setInterval to make sure it's ready.
On Sat, Apr 20, 2019 at 10:15 AM kerem [email protected] wrote:
I am getting the following exception in the developer console when running the example app:
Uncaught (in promise) DOMException
load (async)
n @ streaming-player.js?_=1555780103494:8
E @ streaming-player.js?_=1555780103494:7
b @ streaming-player.js?_=1555780103494:7
w @ streaming-player.js?_=1555780103494:10
Je @ streaming-player.js?_=1555780103494:10
Tn @ streaming-player.js?_=1555780103494:8
on @ streaming-player.js?_=1555780103494:8
e @ streaming-player.js?_=1555780103494:9
e @ streaming-player.js?_=1555780103494:9
e.setSource @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
ii @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:34
ii @ streaming-player.js?_=1555780103494:27
ii @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
(anonymous) @ streaming-player.js?_=1555780103494:27
setTimeout (async)
e @ streaming-player.js?_=1555780103494:27
Kn @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:27
e @ streaming-player.js?_=1555780103494:10
(anonymous) @ streaming-player.js?_=1555780103494:10
Promise.then (async)
e @ streaming-player.js?_=1555780103494:10
e.play @ napster.min.js:formatted:152
(anonymous) @ client.html?accessTo…3a7-fd7989e1ff3a:80
dispatch @ jquery-1.11.0.min.js:3
r.handle @ jquery-1.11.0.min.js:3
While I am unable to reproduce it 100%, I notice it happening when I pause one song and start another one as fast as I can. This way, I can consistently and frequently reproduce.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Napster/napster.js/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFFWP2YHVRGYUQEJIK2UQDPRNFTZANCNFSM4HHKCDAA .