Starting Playback at Specific Position: Player V3

The following code snippet illustrates the JavaScript for the final step in XDR: to play the video at a specific initial position.

Note: The function getInitialTime() shown in this snippet is a function you must write to retrieve the timestamp returned to your server. This value is then passed as the third argument on the player invocation.
.
.
.
  <script src="http://player.ooyala.com/v3/player_id"> </script>
.
.
.
 <script>
      var initialTime = getInitialTime();
      OO.ready(function() {
        OO.Player.create("div-video-container", "embed_code, {
          "initialTime" : initialTime
        });
      });
 </script>
.
.
.

Was this article helpful?