menu Examples for VdoPlayer JS: Using VdoPlayer Class

Code

      
var video = new VdoPlayer({
  otp: "REPLACE WITH OTP",
  playbackInfo: btoa(JSON.stringify({
    videoId: "REPLACE WITH VIDEO ID"
  })),
  theme: "9ae8bbe8dd964ddc9bdb932cca1cb59a",
  // the container can be any DOM element on website
  container: document.querySelector( "#embedBox" ),
});
      
      
      

Example