diff src/VideoSection.ts @ 6:ccfea3625cf6

render thumbs and display them (no video player at all atm)
author drewp@bigasterisk.com
date Sun, 09 Apr 2023 18:02:25 -0700
parents c8a41359505c
children f80f8c22752d
line wrap: on
line diff
--- a/src/VideoSection.ts	Thu Mar 30 20:39:40 2023 -0700
+++ b/src/VideoSection.ts	Sun Apr 09 18:02:25 2023 -0700
@@ -5,6 +5,7 @@
 @customElement("video-section")
 export class VideoSection extends LitElement {
   @property({ type: String }) manifest: string | undefined;
+  @property({ type: String }) thumbRelPath: string | undefined;
   @property({ type: String }) title: string = "(unknown)";
   @property({ type: String }) big: boolean = false;
 
@@ -37,11 +38,11 @@
     const tx = (document.body.clientWidth - inw * scl) / 2,
       ty = (document.body.clientHeight - inh * scl) / 2;
     const style = this.big ? `transform: translate(${-inx - inw / 2}px,${-iny - inh / 2}px) scale(${outh / inh}) translate(${tx}px,${ty}px);` : "";
-    console.log(document.body.clientWidth);
     return html`
       <section>
         <h1>${this.title}</h1>
-        <shaka-video class="${vidCls}" style="${style}" id="video" width="720" height="480" src="${this.manifest}" controls></video>
+        <!-- <shaka-video class="${vidCls}" style="${style}" id="video" width="720" height="480" src="${this.manifest}" controls></video>-->
+        <img src="${this.thumbRelPath}" />
       </section>
     `;
   }