Keyboard Support

You can enable/disable keyboard short cuts by disableKeys property. It is false by default.

  • html
  • <!doctype html>
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
          <title>Essential Studio for JavaScript : Media Player </title>
          <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />  
      </head>
        <body>
          <div class="content-container-fluid">
            <div class="row">
                <div class="cols-sample-area">
           <!--Element which will render as Media Player-->
                    <div id="basicPlayer"></div>
                </div>
            </div>
         </div>
    
         <script type="text/javascript">
            jQuery(function ($) {
                if (!(ej.browserInfo().name === "msie" && Number(ej.browserInfo().version) < 9))        {
           <!--Media Player rendering-->
                    $("#basicPlayer").ejMediaPlayer({
                        width: "700px",
                        height: "400px",
                       disableKeys: true,
                        source: [
                            {
                            "url": "https://www.youtube.com/watch?v=7_hR16f7Drw",
                            "title": "Xamarin",
                            "author": "syncfusion"
    
                            }
                        ],
                        renderMode: "advanced"
                    });
                }
                else {
                    alert("Media Player (HTML5) will not be supported in IE Version < 9");
                }
            });
         </script>
        </body>
    </html>

    Keyboard shortcuts

    The keyboard shortcuts for Media Player are as follows.

    </table>
    File  Description / Usage
    Play/Pause

    Space – Toggle play/pause function

    Forward

    Right arrow – Forward the media 3s from current time

    Alt + Right arrow – Forward the media 10s from current time

    Ctrl + Right arrow – Forward the media 60s from current time
    Rewind

    Left arrow – Rewind the media 3s from current time

    Alt + Left arrow – Rewind the media 10s from current time

    Ctrl + Left arrow – Rewind the media 60s from current time
    Play/Pause

    Mute/UnMute

    Volume

    Up arrow – increase the volume 1 from current volume

    Down arrow – decrease the volume 1 from current volume

    </tr>
    F11

    Enable Full screen

    Esc

    Exit Full screen