• Resolved mikemackechnie

    (@mikemackechnie)


    I have installed and activated this plugin in the hope that I can use it to slow down audio files that our customers need to playback.

    However I don’t see any change to the Media Player element. How do I get the playback speed controls to display? The installation guide just says “download and extract” – it doesn’t even mention activate, which of course I have done, but it has made no difference to the MP on screen. Is there some other step that I have missed?

    If it helps, I am using the audio shortcode to render my Media Player.

    My Javascript isn’t too hot but I can see that the plugin is looking for a mejs-container element – but I don’t have any element of that name in my html.

    I just have a PHP Code snippet that echoes do_shortcode(‘[audio src="wp-content/uploads/securepdfs/'.$user_source.'"]‘);

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mikemackechnie

    (@mikemackechnie)

    I have noticed that this plugin DOES work on my mp4 files, which are rendered by the video shortcode.

    Plugin Author LewisCowles

    (@lewiscowles)

    Hi Mike.

    Using the classic audio and video shortcodes was what this plugin was designed to work with.

    It was written some time ago, and then I picked it up from the original author, adding native media-js controls, making it easier to customise using hooks.

    As mentioned on your 3-star review of the plugin, there is an example of the plugin with the latest WordPress and Gutenberg with the latest version of this plugin

    https://wp.dh.codesign2.co.uk/testing-page/?v=79cba1185463

    In addition to this it’s used in the popular Boagworld podcast listing page

    https://boagworld.com/show on audio files

    Perhaps you have customisations causing your setup to be incompatible. Try coming back with details, such as error messages on your site frontend JS, the versions of wordpress and this plugin, and a sample post for me to check out.

    Plugin Author LewisCowles

    (@lewiscowles)

    I’m going to mark as resolved until I get the information needed. This frustratingly for both sides sounds like a misunderstanding in use and scope.

    Thread Starter mikemackechnie

    (@mikemackechnie)

    Apologies for not getting back to this thread.

    The problem is resolved, and as expected was entirely of my own doing. I had inserted a bit of js at the top of the page which was throwing an error. Once that error had been eliminated, the playback speed buttons appeared on screen. I will up my review to 5 stars.

    Plugin Author LewisCowles

    (@lewiscowles)

    It might not be your own doing, but essentially themes, and other plugins may run JS in the global context where errors stops all JS running.

    One thing you can do is ensure JS is enclosed in (function() { /* Your code here */ })() blocks. You can still hoist in or pass in window level vars and objects, but it means if your code blows up, it doesn’t take the rest of the site with it.

    Glad to hear it’s working, and I guess it’s spurred some extra effort with this now supporting playlist elements, having better JS / PHP separation, not relying on jQuery and with 1.1.2 having some way to use media playback speed controls which are global to a page and don’t require the shortcodes, but do require site-admins to own HTML, CSS, JS, PHP for those controls as well as implement them themselves.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How can I make this plugin work with the Audio shortcode’ is closed to new replies.