How do I make JavaScript beep?
I want my web page to beep whenever a user exceeds the maximum character limit of my <textarea>. 17 Answers 17
I want my web page to beep whenever a user exceeds the maximum character limit of my <textarea>. 17 Answers 17
I’m attempting to call a custom field in an audio shortcode. The field I’m calling, enclosure, defines MP3 files that are associated with my respective posts. I’m using the PHP template editor in WordPress. Here’s what I have. <?php echo do_shortcode(”);?> I would like to insert the following code in place of the word “enclosure.” … Read more
I’m building a VUE JS based theme, and I’m using WP REST v2. There is a problem – I can’t make video and audio playlists work (built-in WP core feature). I already added: wp_enqueue_style( ‘wp-mediaelement’ ); wp_enqueue_script( ‘wp-playlist’ ); but from there I’m not sure how to make it work. I just can’t make it … Read more
I’m trying to use the audio shortcode with an audio file with a query string on the end of the URL and it won’t work. The reason is I’d like to use expiring signed URLs with Amazon S3. If I use a URL like http://bucketname.s3.amazonaws.com/audiofile.mp3 as the src in a call to wp_audio_shortcode() it works … Read more
My reason for doing this is for a music & entertainment site where users will have the ability to share music and videos on other websites via embed code. I’m using the audio.php and video.php attachment pages to load the default MediaElement.js HTML5 Player with all the attached media from it’s parent post. I then … Read more
Is it possible to control the width of the WordPress 3.9 Audio player? I like the simplicity of the player control and would like to include a narrow-width version of it in a table that lists all of the songs in an album. So something like: Also, is there a reference somewhere that explains how … Read more
I would like to style two MediaElement players on the same page differently, and figured out the easier way to do this (compared to adding a completely new shortcode and enqueueing a new stylesheet, which I couldn’t get working either) is to assign a different class to the audio shortcode of player A. The WordPress … Read more
I have a music player in my theme that generates its playlist from a javascript file that looks like this var myPlaylist = [ { mp3:’track url goes here’, title:’title here’, artist:’artist’, } { mp3:’track url goes here’, title:’title here’, artist:’artist’, } etc… ]; How can I query the media library so it will echo … Read more
I am trying to use the function wp_read_audio_metadata() to read the metadata for an mp3 file uploaded to a post using acf’s file field. Below is my code: <?php $audio_file = get_field(‘archive_audio_file’); $audio_file_id = $audio_file[‘id’]; $audio_file_path = get_attached_file( $audio_file_id); var_dump(wp_read_audio_metadata($audio_file_path)); ?> When using that code I receive this error on the front end: Fatal error: … Read more
I’m working on a WordPress theme for a website that makes heavy use of its default media player. In the process of styling its playlists, I found that a core file injects hardcoded characters that can’t be made invisible just by using CSS, so I’m a bit clueless about how to hide/remove them. These characters … Read more