PageSourceSearch

https://www.vdocipher.com/docs/assets/js/02800fb1.c5c39b96.js

js vdocipher.com collected 2026-09-24 17:18:08 UTC 3,052 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocusaurus=self.webpackChunkdocusaurus||[]).push([[8016],{28453:(e,t,a)=>{a.d(t,{R:()=>s,x:()=>c});var n=a(96540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}},49304:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>d,contentTitle:()=>s,default:()=>p,frontMatter:()=>r,metadata:()=>c,toc:()=>i});var n=a(74848),o=a(28453);const r={title:"Custom playback rates",hide_table_of_contents:!0},s=void 0,c={id:"player/v1/advanced/custom-playback-rates",title:"Custom playback rates",description:"It is possible to modify the playback rates available on the player. Sample code below.",source:"@site/docs/player/v1/advanced/custom-playback-rates.md",sourceDirName:"player/v1/advanced",slug:"/player/v1/advanced/custom-playback-rates",permalink:"/docs/player/v1/advanced/custom-playback-rates",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{title:"Custom playback rates",hide_table_of_contents:!0},sidebar:"player",previous:{title:"Overriding player CSS",permalink:"/docs/player/v1/advanced/overriding-css"},next:{title:"VdoPlayer",permalink:"/docs/player/v1/class/vdo/VdoPlayer.js~VdoPlayer"}},d={},i=[];function l(e){const t={code:"code",p:"p",pre:"pre",...(0,o.R)(),...e.components},{Head:a}=t;return a||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Head",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a,{children:(0,n.jsx)("meta",{name:"robots",content:"noindex"})}),"\n",(0,n.jsx)(t.p,{children:"It is possible to modify the playback rates available on the player. Sample code below."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-html",metastring:"{12}",children:"<script src=\"https://player.vdocipher.com/playerAssets/1.6.10/vdo.js\"><\/script>\n<div id=\"embedBox\" style=\"width:1280px;max-width:100%;height:auto;\"></div>\n<script>\n  const video_ = new VdoPlayer({\n    otp: 'REPLACE WITH OTP',\n    playbackInfo: 'REPLACE WITH PLAYBACKINFO',\n    theme: '9ae8bbe8dd964ddc9bdb932cca1cb59a',\n    container: document.querySelector('#embedBox'),\n  });\n\n  video_.addEventListener('load', () => {\n    video_.availablePlaybackRates = [0.75, 1.0, 1.25, 1.5, 1.75, 2.0];\n  });\n<\/script>\n"})}),"\n",(0,n.jsxs)(t.p,{children:["After creating the player object, it is waiting for the ",(0,n.jsx)(t.code,{children:"load"})," event. At ",(0,n.jsx)(t.code,{children:"load"})," event, the default rates have been read\nby player. Now, any overrides can work. Here, it is modifying the ",(0,n.jsx)(t.code,{children:"availablePlaybackRates"})," property of the video object."]})]})}function p(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.