@algorisys/tinyfly 0.70.1 → 0.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -8
- package/bin/tinyfly.mjs +95 -2
- package/lib/addons/adapters.js +31 -12
- package/lib/addons/characters.js +204 -0
- package/lib/addons/export.js +476 -440
- package/lib/browser/tinyfly.iife.js +4 -4
- package/lib/browser/tinyfly.js +1352 -1115
- package/lib/browser/tinyfly.umd.js +4 -4
- package/lib/embed/tinyfly-embed.iife.js +1 -1
- package/lib/embed/tinyfly-embed.js +1 -1
- package/lib/engine/tinyfly-engine.js +313 -277
- package/lib/engine/tinyfly-engine.umd.cjs +2 -2
- package/lib/headless/headless.js +947 -0
- package/lib/types/adapters/canvas/canvas-adapter.d.ts +32 -2
- package/lib/types/browser/index.d.ts +3 -1
- package/lib/types/characters/index.d.ts +5 -0
- package/lib/types/characters/stick-figure.d.ts +162 -0
- package/lib/types/engine/authoring/index.d.ts +1 -0
- package/lib/types/engine/authoring/narration.d.ts +80 -0
- package/lib/types/engine/export/captions.d.ts +31 -0
- package/lib/types/engine/export/index.d.ts +1 -0
- package/lib/types/headless/ffmpeg-args.d.ts +28 -0
- package/lib/types/headless/frame-renderer.d.ts +45 -0
- package/lib/types/headless/index.d.ts +12 -0
- package/lib/types/headless/narration-audio.d.ts +13 -0
- package/lib/types/headless/node-audio.d.ts +46 -0
- package/lib/types/headless/node-video.d.ts +48 -0
- package/lib/types/headless/scene-captions.d.ts +4 -0
- package/lib/types/headless/video-scene.d.ts +57 -0
- package/package.json +19 -4
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
.tf-fullscreen > svg, .tf-fullscreen > canvas { grid-column: 1; grid-row: 1 / span 12; height: calc(100vh - 24px) !important; height: calc(100dvh - 24px) !important; }
|
|
48
48
|
.tf-fullscreen > :not(svg):not(canvas) { grid-column: 2; }
|
|
49
49
|
}
|
|
50
|
-
`;let Fn=0;function Xn(e){if(e.getElementById(se))return;const t=e.createElement("style");t.id=se,t.textContent=Nn,e.head.appendChild(t)}function ie(e,t,n={}){const s=t.ownerDocument;Xn(s);const i={...ne,...n.labels},r=n.speeds??[.5,1,2],a=()=>e.markers.length>0,o=()=>e.markers.some(w=>w.label!==void 0||e.caption(w.id)!==void 0),c=s.createElement("div");c.className="tf-ctl";const l=s.createElement("div");l.className="tf-ctl-bar",l.setAttribute("role","group");const u=(w,E,F,N="")=>{const D=s.createElement("button");return D.type="button",D.className=`tf-ctl-btn ${N}`.trim(),D.setAttribute("aria-label",w),D.title=w,D.textContent=E,D.addEventListener("click",F),D},h=u(i.restart,"⟲",()=>{e.pause(),e.seek(0)}),d=u(i.prev,"
|
|
50
|
+
`;let Fn=0;function Xn(e){if(e.getElementById(se))return;const t=e.createElement("style");t.id=se,t.textContent=Nn,e.head.appendChild(t)}function ie(e,t,n={}){const s=t.ownerDocument;Xn(s);const i={...ne,...n.labels},r=n.speeds??[.5,1,2],a=()=>e.markers.length>0,o=()=>e.markers.some(w=>w.label!==void 0||e.caption(w.id)!==void 0),c=s.createElement("div");c.className="tf-ctl";const l=s.createElement("div");l.className="tf-ctl-bar",l.setAttribute("role","group");const u=(w,E,F,N="")=>{const D=s.createElement("button");return D.type="button",D.className=`tf-ctl-btn ${N}`.trim(),D.setAttribute("aria-label",w),D.title=w,D.textContent=E,D.addEventListener("click",F),D},h=u(i.restart,"⟲",()=>{e.pause(),e.seek(0)}),d=u(i.prev,"|◀",()=>e.prev()),f=u(i.play,"▶",()=>e.isPlaying?e.pause():p(),"tf-ctl-primary"),g=u(i.next,"▶|",()=>e.next()),p=()=>{e.currentTime>=e.duration-.5&&e.seek(0),e.play()},m=s.createElement("input");m.type="range",m.className="tf-ctl-scrub",m.min="0",m.max="1000",m.step="1",m.setAttribute("aria-label",i.scrub),m.addEventListener("input",()=>{e.pause(),e.seek(Number(m.value)/1e3*e.duration)});const b=s.createElement("span");b.className="tf-ctl-step";const v=s.createElement("select");v.className="tf-ctl-speed",v.setAttribute("aria-label",i.speed);for(const w of r){const E=s.createElement("option");E.value=String(w),E.textContent=`${w}×`,w===1&&(E.selected=!0),v.appendChild(E)}v.addEventListener("change",()=>e.setSpeed(Number(v.value))),l.append(h,d,f,g,m,b),r.length>0&&l.append(v),c.append(l);const k=n.fullscreen?Wn(t,s,i):void 0;k&&l.append(k.button);const M=s.createElement("p");M.className="tf-ctl-caption",M.setAttribute("aria-live","polite"),n.captions!==!1&&c.append(M);const y=s.createElement("div");y.className="tf-ctl-question",y.hidden=!0;const S=s.createElement("span"),x=u(i.reveal,i.reveal,()=>e.play(),"tf-ctl-primary");y.append(S,x),c.append(y);const P=Yn(e,s,i.scenario,n.scenarioControl??"buttons");P&&c.append(P.element);const W=n.mount;W?W.appendChild(c):t.insertAdjacentElement("afterend",c);const T=()=>{const w=e.isPlaying;f.textContent=w?"❚❚":"▶",f.setAttribute("aria-label",w?i.pause:i.play),f.title=w?i.pause:i.play;const E=e.duration;s.activeElement!==m&&(m.value=String(E>0?Math.round(e.currentTime/E*1e3):0));const F=e.markers;if(d.hidden=g.hidden=b.hidden=F.length===0,F.length>0){const N=e.currentMarker,D=N?F.indexOf(N)+1:0;b.textContent=i.stepFormat.replace("{index}",String(D)).replace("{total}",String(F.length)),b.setAttribute("aria-label",`${i.step} ${D} ${i.of} ${F.length}`),d.disabled=e.currentTime<=.5,g.disabled=e.currentTime>=E-.5;const A=e.caption()??"";M.textContent!==A&&(M.textContent=A),M.hidden=!o();const I=!w&&N?.question!==void 0&&Math.abs(e.currentTime-N.time)<1;y.hidden=!I,I&&S.textContent!==N.question&&(S.textContent=N.question)}else y.hidden=!0,M.hidden=!0;P?.update()},R=e.subscribe(T);T();const _=n.keyboardScope??t;!_.hasAttribute("tabindex")&&_.tabIndex<0&&(_.tabIndex=0);const C=new WeakSet,O=w=>{if(C.has(w)||(C.add(w),w.defaultPrevented||w.altKey||w.ctrlKey||w.metaKey))return;const E=w.target;if(!(E.tagName==="INPUT"||E.tagName==="SELECT")&&!(w.key===" "&&E.tagName==="BUTTON"))switch(w.key){case" ":w.preventDefault(),e.isPlaying?e.pause():p();break;case"ArrowRight":if(!a())return;w.preventDefault(),e.next();break;case"ArrowLeft":if(!a())return;w.preventDefault(),e.prev();break;case"Home":w.preventDefault(),e.pause(),e.seek(0);break;case"f":case"F":if(!k)return;w.preventDefault(),k.active?k.exit():k.enter();break}};return _.addEventListener("keydown",O),c.addEventListener("keydown",O),{element:c,fullscreen:k&&{get active(){return k.active},enter:k.enter,exit:k.exit},destroy(){k?.destroy(),R(),_.removeEventListener("keydown",O),c.removeEventListener("keydown",O),c.remove()}}}function Yn(e,t,n,s){const i=e.scenarios;if(i.length<2)return;if(s==="slider"){const u=t.createElement("div");u.className="tf-ctl-choice-slider";const h=t.createElement("span");h.textContent=n,h.setAttribute("aria-hidden","true");const d=t.createElement("input");d.type="range",d.min="0",d.max=String(i.length-1),d.step="1",d.setAttribute("aria-label",n);const f=t.createElement("output");return f.setAttribute("aria-hidden","true"),d.addEventListener("input",()=>{const p=i[Number(d.value)];p&&e.setScenario(p.id)}),u.append(h,d,f),{element:u,update:()=>{const p=Math.max(0,i.findIndex(b=>b.id===e.scenario));t.activeElement!==d&&(d.value=String(p));const m=i[p].label;f.textContent!==m&&(f.textContent=m),d.setAttribute("aria-valuetext",m)}}}const r=t.createElement("fieldset");r.className="tf-ctl-choices";const a=t.createElement("legend");a.textContent=n,r.append(a);const o=`tf-ctl-scenario-${++Fn}`,c=i.map(u=>{const h=t.createElement("label");h.className="tf-ctl-choice";const d=t.createElement("input");d.type="radio",d.name=o,d.value=u.id,d.addEventListener("change",()=>{d.checked&&e.setScenario(u.id)});const f=t.createElement("span");return f.textContent=u.label,h.append(d,f),r.append(h),d});return{element:r,update:()=>{for(const u of c){const h=u.value===e.scenario;u.checked!==h&&(u.checked=h)}}}}const qn='<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"/></svg>',Vn='<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5"/></svg>';function Wn(e,t,n){const s=t,i=e,r=t.createElement("button");r.type="button",r.className="tf-ctl-btn tf-ctl-fullscreen";let a,o="";const c=()=>{const p=a!==void 0;r.innerHTML=p?Vn:qn;const m=p?n.exitFullscreen:n.fullscreen;r.setAttribute("aria-label",m),r.title=m,r.setAttribute("aria-pressed",String(p)),e.classList.toggle("tf-fullscreen",p),e.classList.toggle("tf-fullscreen-overlay",a==="overlay")},l=()=>s.fullscreenElement??s.webkitFullscreenElement??null,u=()=>{l()===e?a="native":a==="native"&&(a=void 0),c()},h=p=>{p.key==="Escape"&&g()},d=()=>{a="overlay",o=t.documentElement.style.overflow,t.documentElement.style.overflow="hidden",t.addEventListener("keydown",h),c()};async function f(){if(a)return;const p=i.requestFullscreen?.bind(i)??i.webkitRequestFullscreen?.bind(i),m=s.fullscreenEnabled??s.webkitFullscreenEnabled??!1;if(p&&m)try{if(await p(),l()===e){a="native",c();return}}catch{}d()}async function g(){if(a==="overlay")t.removeEventListener("keydown",h),t.documentElement.style.overflow=o,a=void 0,c();else if(a==="native"){a=void 0,c();const p=s.exitFullscreen?.bind(s)??s.webkitExitFullscreen?.bind(s);l()===e&&p&&await p()}}return r.addEventListener("click",()=>{a?g():f()}),t.addEventListener("fullscreenchange",u),t.addEventListener("webkitfullscreenchange",u),c(),{button:r,get active(){return a!==void 0},enter:f,exit:g,destroy(){g(),t.removeEventListener("fullscreenchange",u),t.removeEventListener("webkitfullscreenchange",u),r.remove()}}}const re="tinyfly-choices-style",Bn=`
|
|
51
51
|
[data-tinyfly-choose] { cursor: pointer; }
|
|
52
52
|
[data-tinyfly-choose]:focus-visible { outline: 2px solid var(--tf-ctl-accent, #c2410c); outline-offset: 2px; }
|
|
53
53
|
`;function Un(e){if(e.getElementById(re))return;const t=e.createElement("style");t.id=re,t.textContent=Bn,e.head.appendChild(t)}function ae(e,t){const n=Array.from(t.querySelectorAll("[data-tinyfly-choose]"));if(n.length===0)return()=>{};Un(t.ownerDocument);const s=[],i=[];for(const o of n){const c=o.getAttribute("data-tinyfly-choose")??"",l=[],u=(g,p)=>{o.hasAttribute(g)||(o.setAttribute(g,p),l.push(g))};u("role","button"),u("tabindex","0");const h=e.scenarios.find(g=>g.id===c)?.label;h!==void 0&&u("aria-label",h),o.setAttribute("aria-pressed","false"),l.push("aria-pressed"),s.push({element:o,attributes:l});const d=()=>e.setScenario(c),f=g=>{const p=g.key;p!=="Enter"&&p!==" "||(g.preventDefault(),d())};o.addEventListener("click",d),o.addEventListener("keydown",f),i.push(()=>{o.removeEventListener("click",d),o.removeEventListener("keydown",f)})}const r=()=>{for(const{element:o}of s)o.setAttribute("aria-pressed",String(o.getAttribute("data-tinyfly-choose")===e.scenario))},a=e.subscribe(r);return r(),()=>{a();for(const o of i)o();for(const{element:o,attributes:c}of s)for(const l of c)o.removeAttribute(l)}}const ot=new WeakMap,Mt=new WeakMap;let jn=0;function J(e,t,n){if(e)try{return JSON.parse(e)}catch(s){console.warn(`tinyfly: invalid ${t} JSON on`,n,s);return}}async function oe(e,t={}){const n=ot.get(e);if(n)return n;const s=Array.from(e.querySelectorAll("script[data-tinyfly-timeline]")),i=s[0],r=e.getAttribute("data-src"),a=zn(e.getAttribute("data-markers")),o=s.length>1||i?.hasAttribute("data-scenario")?Hn(s,a,e):void 0;if(o&&o.length===0)return;let c=i&&!o?J(i.textContent,"timeline",e):void 0;if(!c&&r&&a){const f=await fetch(r);f.ok&&(c=await f.json())}if(c&&a&&(c=ce(c,a)),!c&&!r&&!o){console.warn('tinyfly: embed has no timeline (a <script type="application/json" data-tinyfly-timeline> or data-src)',e);return}const l=J(e.querySelector("script[data-tinyfly-captions]")?.textContent,"captions",e),u={playWhenVisible:!0,...t.player,...l&&{captions:l},...J(e.getAttribute("data-options"),"data-options",e)};Qn(e);const h=new at(e,u),d={element:e,player:h};if(ot.set(e,d),e.setAttribute("data-tinyfly-mounted",""),o){const f=e.getAttribute("data-scenario")??void 0;await h.loadScenarios(o,{initial:o.some(g=>g.id===f)?f:void 0}),Mt.set(e,ae(h,e))}else await h.load(c??r);if(e.getAttribute("data-controls")!=="false"){const f=J(e.getAttribute("data-labels"),"data-labels",e),g=e.querySelector("figcaption"),p=e.getAttribute("data-scenario-legend"),m=e.getAttribute("data-scenario-control");d.controls=ie(h,e,{...t.controls,...e.getAttribute("data-fullscreen")==="true"?{fullscreen:!0}:{},...m==="slider"||m==="buttons"?{scenarioControl:m}:{},labels:{...t.controls?.labels,...f,...p?{scenario:p}:{}},mount:void 0}),g?e.insertBefore(d.controls.element,g):e.appendChild(d.controls.element)}return d}function Hn(e,t,n){const s=[];return e.forEach((i,r)=>{const a=J(i.textContent,"timeline",n);if(!a)return;const o=i.getAttribute("data-scenario")||`scenario-${r+1}`;if(s.some(l=>l.id===o)){console.warn(`tinyfly: scenario id "${o}" is used more than once; the later one is skipped`,n);return}const c=i.getAttribute("data-scenario-label")??void 0;s.push({id:o,label:c,timeline:t?ce(a,t):a})}),s}function ce(e,t){return e.config.markers?.length?e:{...e,config:{...e.config,markers:t.map((n,s)=>({id:`step-${s+1}`,time:n}))}}}function zn(e){if(!e)return;const t=e.split(/[\s,]+/).filter(Boolean).map(Number).filter(n=>Number.isFinite(n)&&n>=0).sort((n,s)=>n-s);return t.length>0?t:void 0}async function le(e=document,t={}){const n=Array.from(e.querySelectorAll("[data-tinyfly-embed]"));return(await Promise.all(n.map(i=>oe(i,t)))).filter(i=>i!==void 0)}function Gn(e){const t=ot.get(e);t&&(Mt.get(e)?.(),Mt.delete(e),t.controls?.destroy(),t.player.destroy(),ot.delete(e),e.removeAttribute("data-tinyfly-mounted"))}function Qn(e){const t=e.querySelector("svg");if(!t||t.hasAttribute("role")||t.hasAttribute("aria-hidden"))return;const n=e.getAttribute("data-alt"),s=e.querySelector("figcaption");t.setAttribute("role","img"),n?t.setAttribute("aria-label",n):s&&(s.id||=`tinyfly-caption-${++jn}`,t.setAttribute("aria-labelledby",s.id))}function Zn(){if(!(typeof document<"u"?document.currentScript:null)?.hasAttribute("data-tinyfly-auto"))return;const t=()=>{le()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t()}function St(e){const t=new Set;for(const n of e.matchAll(/data-tinyfly\s*=\s*("([^"]*)"|'([^']*)')/g))t.add(n[2]??n[3]);return[...t]}function he(e,t={}){const n=[],s=l=>n.push({level:"error",message:l}),i=l=>n.push({level:"warning",message:l});if((e.formatVersion??1)>H)return s(`format version ${e.formatVersion} is newer than this tinyfly reads (${H})`),n;let r=0;try{r=rt(e).duration}catch(l){return s(`the timeline does not load: ${l instanceof Error?l.message:String(l)}`),n}const a=e.config?.duration;if(a!==void 0)for(const l of e.tracks){if(!("keyframes"in l))continue;const u=l.keyframes.filter(h=>h.time>a);u.length>0&&s(`track "${l.id}" has a keyframe at ${u[0].time}ms, after the ${a}ms duration`)}const o=e.config?.markers??[],c=new Set;o.forEach((l,u)=>{c.has(l.id)&&s(`marker id "${l.id}" is used more than once`),c.add(l.id),(l.time<0||l.time>r)&&s(`marker "${l.id}" at ${l.time}ms is outside the animation (0–${r}ms)`),u>0&&l.time<o[u-1].time&&s(`marker "${l.id}" comes before "${o[u-1].id}" in time; list markers in order`)});for(const[l,u]of Object.entries(e.captions??{})){for(const h of Object.keys(u))c.has(h)||s(`caption "${h}" (${l}) has no marker with that id`);for(const h of c)h in u||i(`marker "${h}" has no ${l} caption; its label is shown instead`)}if(t.markup!==void 0){const l=new Set(St(t.markup)),u=new Set;for(const h of e.tracks)for(const d of[h.target,...h.targets??[]])u.add(d),l.has(d)||s(`track "${h.id}" targets "${d}", but no element has data-tinyfly="${d}"`);for(const h of l)u.has(h)||i(`data-tinyfly="${h}" is never animated`)}return n}function Kn(e){const t=new Set;for(const n of e.matchAll(/data-tinyfly-choose\s*=\s*("([^"]*)"|'([^']*)')/g))t.add(n[2]??n[3]);return[...t]}function Jn(e,t={}){const n=[];e.length===1&&n.push({level:"warning",message:"only one scenario, so the reader has nothing to choose"});const s=new Set,i=new Set;for(const r of e){if(s.has(r.id)){n.push({level:"error",message:`scenario id "${r.id}" is used more than once`});continue}s.add(r.id);for(const a of he(r.timeline,t))/is never animated$/.test(a.message)||n.push({level:a.level,message:`scenario "${r.id}": ${a.message}`});for(const a of r.timeline.tracks)for(const o of[a.target,...a.targets??[]])i.add(o)}if(t.markup!==void 0){for(const r of Kn(t.markup))s.has(r)||n.push({level:"error",message:`data-tinyfly-choose="${r}" names no scenario`});for(const r of St(t.markup))i.has(r)||n.push({level:"warning",message:`data-tinyfly="${r}" is never animated in any scenario`})}return n}function ts(e,t,n="end"){const s=rt(t),i=t.config?.markers??[],r=n==="start"?0:n==="end"?s.duration:typeof n=="number"?n:i.find(d=>d.id===n)?.time??s.duration,a=s.getStateAtTime(Math.max(0,Math.min(s.duration,r))),o=new wt,c=new Map,l=ns(e);for(const d of e.matchAll(ue)){const f=/data-tinyfly\s*=\s*("([^"]*)"|'([^']*)')/.exec(d[2]??"");if(!f)continue;const g=f[2]??f[3];if(c.has(g))continue;const p=es(l(d.index??0));c.set(g,p),o.registerTarget(g,p)}o.applyState(a);let u="",h=0;for(const d of e.matchAll(ue)){const[f,g,p="",m]=d,b=d.index??0,v=/data-tinyfly\s*=\s*("([^"]*)"|'([^']*)')/.exec(p),k=v?c.get(v[2]??v[3]):void 0;if(!k||Object.keys(k.style).length===0&&k.text===void 0)continue;u+=e.slice(h,b);const M=Object.entries(k.style).map(([x,P])=>`${ss(x)}: ${P}`).join("; "),y=/\sstyle\s*=\s*("([^"]*)"|'([^']*)')/.exec(p);let S=p;if(M)if(y){const x=`${(y[2]??y[3]).trim().replace(/;?$/,";")} ${M}`.trim();S=p.replace(y[0],` style="${de(x)}"`)}else S=`${p} style="${de(M)}"`;if(u+=`<${g}${S}${m?" /":""}>`,h=b+f.length,k.text!==void 0&&!m){const x=e.indexOf(`</${g}`,h),P=x===-1?"":e.slice(h,x);x!==-1&&!P.includes("<")&&(u+=is(k.text),h=x)}}return u+e.slice(h)}const ue=/<([a-zA-Z][\w:-]*)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+))?)*)\s*(\/?)>/g;function es(e){const t={style:{},dataset:{},namespaceURI:e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",childNodes:[],get textContent(){return t.text??""},set textContent(n){t.text=n}};return e&&(t.ownerSVGElement=null),t}function ns(e){const t=[],n=/<svg[\s>]/gi;let s;for(;s=n.exec(e);){const i=e.toLowerCase().indexOf("</svg>",s.index);t.push([s.index+1,i===-1?e.length:i])}return i=>t.some(([r,a])=>i>r&&i<a)}function ss(e){const t=e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`);return/^(webkit|moz|ms)-/.test(t)?`-${t}`:t}function de(e){return e.replace(/&/g,"&").replace(/"/g,""")}function is(e){return e.replace(/&/g,"&").replace(/</g,"<")}Zn(),$.DEFAULT_LABELS=ne,$.TinyflyPlayer=at,$.bindChoiceHotspots=ae,$.create=On,$.createControls=ie,$.mount=oe,$.mountAll=le,$.play=Ln,$.renderFrame=ts,$.targetNamesIn=St,$.unmount=Gn,$.validateEmbed=he,$.validateScenarios=Jn,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})})(this.tinyfly=this.tinyfly||{});
|
|
@@ -2188,7 +2188,7 @@ function Xn(e, t, n = {}) {
|
|
|
2188
2188
|
return $.type = "button", $.className = `tf-ctl-btn ${O}`.trim(), $.setAttribute("aria-label", w), $.title = w, $.textContent = E, $.addEventListener("click", N), $;
|
|
2189
2189
|
}, h = u(i.restart, "⟲", () => {
|
|
2190
2190
|
e.pause(), e.seek(0);
|
|
2191
|
-
}), d = u(i.prev, "
|
|
2191
|
+
}), d = u(i.prev, "|◀", () => e.prev()), f = u(i.play, "▶", () => e.isPlaying ? e.pause() : p(), "tf-ctl-primary"), g = u(i.next, "▶|", () => e.next()), p = () => {
|
|
2192
2192
|
e.currentTime >= e.duration - 0.5 && e.seek(0), e.play();
|
|
2193
2193
|
}, m = s.createElement("input");
|
|
2194
2194
|
m.type = "range", m.className = "tf-ctl-scrub", m.min = "0", m.max = "1000", m.step = "1", m.setAttribute("aria-label", i.scrub), m.addEventListener("input", () => {
|