Problem/Motivation
Currently, when changing settings and on some other occasions, the "VidstackPlayer" object is undefined leading to the error:
Vidstack Player JS library could not be loaded.
This could be a problem of the cdn, we should fix #3519303: Find a way to require vidstack library without CDN usage first (use a local library) and see if it is still a problem afterward.
Steps to reproduce
Change the formatter settings.
Proposed resolution
Fix the problem.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork vidstack_player-3519538
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
grevil commentedComment #4
jan kellermann commentedI just added some code in this issue fork but startet no merge request:
https://git.drupalcode.org/issue/vidstack_player-3519538/-/compare/1.x.....
Comment #5
anybodyThanks @jan kellermann I guess this is for #3521502: Add support for Javascript with type "module"
Comment #6
jan kellermann commentedNo, this is to solve your problem of late loading / race conditions between scripts :)
Comment #8
anybodySorry for being late ... ;D
Busy days and we were not touching this in the last months. On it now!
Comment #9
anybodyGREAT WORK @jan kellermann! I guess you already had experience with this pattern? Any further things we should take care of here?
Thank you so much! I'll merge this now and tag a new release.
Comment #10
anybody