Im build VUE JS based theme, and Im using WP REST v2. And there is a problem, I can't make video and audio playlist working (build-in WP feature). I already added:

wp_enqueue_style( 'wp-mediaelement' );
wp_enqueue_script( 'wp-playlist' );

but from there im not sure how to make it work.

I just cant make it work. When I put content from REST to DOM the video and and music playlist are not working. I have access to WPPlaylistView so tried also:

jQuery(".wp-playlist:not(:has(.mejs-container))").each(function() { return new WPPlaylistView({ el: this }); });

But im getting error : "Uncaught TypeError: Cannot read property 'replace' of undefined"

Does somebody know how to deal with that problem ? How to make it work? (or how disable this feature in Wordpress backend in worst case :P )

  • IMHO you will have to find out yourself and teach us ;) – Mark Kaplun Feb 28 '18 at 16:55
  • I will say as Mark Kaplun but in another form : what is the question ? – mmm Feb 28 '18 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.