Napster / napster.js

Napster Javascript SDK
MIT License
56 stars 44 forks source link

style display:none in initializer prevents playback in Firefox #3

Open aguywithanidea opened 7 years ago

aguywithanidea commented 7 years ago

It has been reported that in Firefox browsers, because the init function sets the display style to none (see line 83), playback will never be enabled because the ready event will never be received.

mkommar commented 7 years ago

Commenting out display: none line for me actually triggers the Player.playerReady() function.

mkommar commented 7 years ago

In addition, in Firefox, there is an exception TypeError "Argument 2 of EventTarget.addEventListener is not an object." "Player.playerReady@http://api.napster.com/v1.1/player/player.js:1:3446playerReady@http://api.napster.com/v1.1/player/player.js:1:24@http://api.napster.com/v1.1/player/index.html?apikey=MTM2Zjc1OWMtZjIyYS00NjlkLTljYzItMTA2NDEyNDgyZTAy:0:22" image

mkommar commented 7 years ago

Seems to be working now after I restarted Firefox.

aguywithanidea commented 7 years ago

Thanks for the feedback @mkommar. We're in progress of updating the SDK to remove the dependency on Flash for track playback (HTML5 Audio - yeah baby!)

We will fix this bug in the example app when we make the player update.

mfitzhenry commented 7 years ago

@aguywithanidea - Any idea ETA on when the HTML5 audio version will be released?

aguywithanidea commented 7 years ago

We're currently hoping to have this released in early August. We will keep you posted :)

mfitzhenry commented 7 years ago

@aguywithanidea any update on the new release timing?

afonsorp commented 7 years ago

Hi! @aguywithanidea, sorry to insist. But can you give us an update on the HTML5 audio version?

mfitzhenry commented 6 years ago

@aguywithanidea - Here is my every few month check in...:) Any update on the new release? Eagerly awaiting. Happy Holidays!

lolpack commented 6 years ago

Hi @mfitzhenry thanks for checking in on this. We are working on this now. I will update this thread when we have the release date finalized.

eltmon commented 6 years ago

Any update, I'm eagerly awaiting for html 5 support as well!

eltmon commented 6 years ago

Any updates on the html5 release? Anxiously awaiting! Maybe can you offer an early beta we can start working with?