Changeset - f5fbc6ec5f87
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 6 years ago 2019-06-10 23:50:00
drewp@bigasterisk.com
try to reduce flicker on vidref player details
Ignore-this: f6a6736cdfbe7782fe768ab806711a8c
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/web/light9-vidref-replay.js
Show inline comments
 
@@ -111,27 +111,27 @@ class Light9VidrefReplay extends LitElem
 
    render() {
 
        let details = '';
 
        if (this.size != 'small') {
 
            details = html`  <div>
 
    take is <a href="${this.uri}">${this.uri}</a> 
 
    (${Object.keys(this.songToVideo).length} frames)
 
    <button @click="${this.onDelete}">Delete</button>
 
  </div>
 
  <!-- here, put a little canvas showing what coverage we have with the 
 
       actual/goal time cursors -->
 
  <div>
 
    video time should be <span class="num">${this.videoTime} </span>
 
    actual = <span class="num">${rounding(this.outVideoCurrentTime, 3)}</span>, 
 
    err = <span class="num">${rounding(this.timeErr, 3)} </span>
 
    rate = <span class="num">${rounding(this.playRate, 3)}</span>
 
    actual = <span class="num">${rounding(this.outVideoCurrentTime, 3, 3, true)}</span>, 
 
    err = <span class="num">${rounding(this.timeErr, 3, 4, true)}</span>
 
    rate = <span class="num">${rounding(this.playRate, 3, 3, true)}</span>
 
  </div>
 
`;
 
        }
 
        return html`
 
  <video id="replay" class="size-${this.size}" src="${this.videoUrl}"></video>
 
${details}
 
  `;
 

	
 
    }
 
}
 
customElements.define('light9-vidref-replay', Light9VidrefReplay);
 
window.thresh=.3
0 comments (0 inline, 0 general)