Until now I’ve been using this plugin and inserting the audio shortcode by hand as:
I also was setting a default folder of “/mp3” in my web space. This has been working fine for years. I just recently decided I wanted to store my MP3 files in my media library. I uploaded an MP3 and inserted it into a post. In the editor window I could see the default WP HTML5 audio player. When I published the post I saw this plugin’s player. Success, I thought.
Then I tried to play that clip and it showed Buffering… in the player that didn’t go anywhere. Looking at the source for the page I could see it wasn’t getting the absolute URL properly from the inserted shortcode which WordPress did as:
I loaded up the wp-content/plugins/audio-player.php file and on line 397 which looked like:
$pattern = “/(<p>)?\[audio:(([^]]+))\](<\/p>)?/i”;
I changed to:
$pattern = “/(<p>)?\[audio mp3=\”(([^]]+))\”\]\[\/audio](<\/p>)?/i”;
This allowed it to get the URL properly and the files now play fine. I’d prefer to not have to edit the plugin PHP directly, but it works and I’m no scientist, so I’ll stick with it. If the default HTML5 player showed ID3 tags properly then I could ditch this plugin altogether.
- The topic ‘Fixed my Buffering… issue; Might help someone’ is closed to new replies.