Turning Off Video Autoplay

This article shows how to disable course videos from autoplaying.

By default, all of your course videos are set to Autoplay. This means that videos will automatically start playing when your students click on a lecture. However, you may want to give your students the ability to start videos only when they click the play button.

Follow the steps below to turn Autoplay off for all videos in your Teachable school.

  1. Log into your Teachable school.
  2. Inside your Teachable admin area, select Site from the sidebar.
  3. Click Code Snippets. code snippets
  4. Inside the Logged In section, copy and paste the following JavaScript code:
    <script type="text/javascript">
    $(document).ready(function() { 
    $.cookie('videoAutoPlay', 'false', {path: '/'}); 
    }); 
    </script>
    logged in code snippets
  5. Click Save.

Now, all of your course videos will only begin when your students click play.

thanks_illustration

Can't find what you're looking for?

Contact us
thanks_illustration