Hello
I installed 8.1 beta5 version to my drupal 8.5 beta version and when I login to site everything works fine but when I logout player doesnt work
I use JWplayer 7.12 and link field with formatter jwplayer
I am using .m3u8 live stream url

Thank you

CommentFileSizeAuthor
#3 player-anon-user-2945592-3.patch271 bytesdrupal.ninja03

Comments

cumhur created an issue. See original summary.

megan_m’s picture

This was happening to me too. It's because the jw_player script is using .once() but doesn't declare a dependency on jquery.once. Core adds it for some of the admin features, but only for logged in users, so that's why this problem only happens for anonymous users.

For a quick fix you could add jquery.once as a dependency in your theme. In your libraries file:

  dependencies:
    - core/jquery
    - core/jquery.once
drupal.ninja03’s picture

StatusFileSize
new271 bytes

Added a patch as per #2.

drupal.ninja03’s picture

Status: Active » Needs review

  • Berdir committed 43b6890 on 8.x-1.x authored by drupal.ninja03
    Issue #2945592 by drupal.ninja03: Player doesnt work for anonymous user
    
berdir’s picture

Status: Needs review » Fixed

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.