MusicKit JS: Chromium based browsers only get 30 second previews

I've got a little MusicKit JS page I'm working on and I'm running into this issue where the only browser that will play full tracks is Firefox (and Safari, obviously). I've tried several Chromium based browsers and MusicKit plays 30 seconds previews instead of full tracks. Other widevine content works in those browsers.

I've tried:

Brave Chrome Vivaldi

Of course, the v2 library works on music.apple.com in Brave and others. v1 and v2 libraries behave the same for me in my page. The library knows it's authenticated. I can browse content in the catalog and the user's library. I just can't play more than 30 seconds at a time.

Any crazy ideas? Thanks

Answered by jsimon0 in 680775022

It turns out that pages served over http from servers that aren't localhost will not try to play DRM content. Serving the same page from localhost over http works fine.

Accepted Answer

It turns out that pages served over http from servers that aren't localhost will not try to play DRM content. Serving the same page from localhost over http works fine.

MusicKit JS: Chromium based browsers only get 30 second previews
 
 
Q