You can bind to the ‘ended’ event by targeting the audio element in the playlist:
$('.wp-playlist .mejs-mediaelement audio').on('ended', function (event) {
console.log('ended');
});
The ‘click’ events are just standard, eg:
$('.wp-playlist-item').on('click', function (event) {
console.log('clicked');
});
Related Posts:
- Change default tab of media manager
- How do I control video media display sizing with native wordpress player
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?
- How to re-house images in uploads/YYYY/MM
- Insert Link to Audio versus Embed Audio Player
- How to create different media uploader frames / filter library depending on a custom action
- How to Protect Uploads, if User is not Logged In?
- Add a menu item to WordPress 3.5 Media Manager
- Delete an attachment in the WP media modal window
- Media library to list images only user uploaded
- Rendering the uploaded file in a wp.media object
- How do I force WordPress to show most recent version of images in the media library?
- WordPress Media Manager 3.5 – default link to
- Proper way to add a button to the top menu of the media library?
- display image size in media library screen
- How to capture the selection:toggle event fired by wp.media
- Changing the media library default tab
- Best plugin to manage media library? [closed]
- Restricting access to files within a specific folder [duplicate]
- get total number of images from media using xml-rpc
- Images are registered in media library but still won’t show up
- Upload mobi and epub file in the MEDIA of WP
- Handle lots of images within the media uploader / selector
- Rest API rename media
- Custom media picker in meta box: how to select available image sizes?
- WordPress 3.0 Media Upload Directory
- Can’t edit media details in new role
- 3.5 Media Manager – callout in metaboxes
- How to bulk Edit Dates in Media Library?
- Add instructions For Media Library Uploads
- Media Manager: refresh library after new selection
- Cannot upload anything via wordpress
- Video uploaded with the native media uploader gives Error 404
- Audio Player for MP3 Files for WordPress
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working
- Importing Media IDs but not related attachment
- Allow Editor Role to Edit Media
- Bulk image importing from folders
- Creating subfolders in the media library
- how to upload file to media library using link [closed]
- Media Library empty after server move (exact copy of files and db’s)
- Media Library not showing images but still acknowledges existence
- Too slow Image upload in WordPress Media Library as image number increases
- RSS audio enclosures have length of zero (podcast duration is missing)
- Remove delete-attachment button for every media
- Thumbnail images chopped off but not cropped to exact dimensions
- How to disable Media Library?
- How to disable (and hide) the Media Library for certain users?
- Attaching images to multiple galleries
- Publish / unpublish media items in the media library
- Efficient way to move media folder to another folder
- WordPress append -1 to the image name
- Can’t upload format files on media library
- Media Library modal customization
- Post images are not displayed in media library
- How to Protect Uploads, if User is not Logged In?
- Creating multiple instances of Media Uploader
- Handle image file and save it to media
- How to resize image in wordpress from backend? Seems like bug in wordpress
- Can we reuse WordPress drag drop media upload in plugins?
- Change default ‘file not supported’ error message
- Hide download button from audio player
- Media Player gone on front end
- Import of 200+ sermons
- Can somebody explain this mediaelement and audio tags
- WordPress / Audio player
- wordpress 3.6 media manager cropping timestamp
- Pictures won’t display in media library and also won’t show preview when selected
- How to batch-add image file extension without losing DB refs?
- Add link to media files in backend and modify linked images in the frontend
- Looking for a way to insert PDF image preview in TinyMCE
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to hide media uploads by other users in the Media menu?
- Run script after clicking Set Featured Image in Media
- Uploading non-media files?
- Media > Image Sizes aren’t being applied to uploads
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- add_image_size landscape or portrait
- What table is the media’s sort order stored?
- Site icons with alpha channel for self-hosted WordPress blog network
- Can I stop wordpress generating media sizes
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- Cannot embed YouTube videos “Failed to embed” error
- How to upload media to a specific folder without a plugin in WordPress?
- Searching for any images in media library displays “no media found”
- Password Protecting Media
- Can I Change the Media Upload Location for each user?
- How to get file URL from media library
- Media library only shows for admin. Doesn’t show editor or below [closed]
- Set different max upload size limits based on file type/extension
- Woocommerce blank screen variable product attribute image thumbnail
- Images missing from the media folder
- Direct media library upload saving in wrong month date folder in custom theme
- Showing added mime types in REST media response
- How to split my uploaded media into directories?
- Media Manager 3.5 custom options
- Why some images are not allowed to be edited only for thumbnails?
- How to add a column showing real media usage (count) to the media list view?