troubleshooting Question

HTML Audio speed control works on windows but not on MAC

Avatar of bidgadget
bidgadgetFlag for United States of America asked on
HTMLMultiMedia ApplicationsWindows OSMac OS XDigital Audio
1 Comment1 Solution24 ViewsLast Modified:
I have written a site that plays mp3 audio files.   I have three buttons that allows the listener to change the speed of the audio.  It works perfect when playing on any windows computer, however when it is play on MAC it does not work at all.    Here is my code.

<!DOCTYPE html>
<html xmlns="">

        button {
            display: inline-block;
            margin: 5px; /* space between buttons */
            background: #000000; /* background color */
            color: #ffffff; /* text color */
            font-size: 1em;
            font-family: ‘Georgia’, serif;
            font-style: normal;
            border-radius: 50px; /* rounded corners */
            padding: 8px 16px; /* space around text */
            -moz-transition: all 0.2s;
            -webkit-transition: all 0.2s;
            transition: all 0.2s;
            float: unset;

    <video id="myVideo" width="320" height="176" controls>
        <source src="audio/audio/cio.mp3" type="video/mp4">
        <source src="mov_bbb.ogg" type="video/ogg">
        Your browser does not support HTML5 video.
    <div class="buttons">

        <div class="action_btn">

            <button name="SpeedX 1.5" class="action_btn submit" type="submit" value="Save" onclick="setPlaySpeed()">x1.2</button>
            <button name="SpeedX 1" class="action_btn cancel" type="submit" value="Cancel" onclick="setPlaySpeed3()">x1.5</button>
            <button name="SpeedX 1" class="action_btn cancel" type="submit" value="Cancel" onclick="setPlaySpeed4()">x1</button>

            <p id="saved"></p>



        var vid = document.getElementById("myVideo");

        function getPlaySpeed() {

        function setPlaySpeed() {
            vid.playbackRate = 1.2;

        function setPlaySpeed3() {
            vid.playbackRate = 1.5;

        function setPlaySpeed4() {
            vid.playbackRate = 1;




Open in new window

David H.H.Lee
Digital Marketing (Hospitality)
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros