mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
Update jot-header.tpl
tryit
This commit is contained in:
parent
897efb8006
commit
b0205b80a4
1 changed files with 4 additions and 2 deletions
|
@ -765,12 +765,14 @@ let postSaveTimer = null;
|
|||
|
||||
{{* start new createThumbnail *}}
|
||||
function createEmbedThumbnail(sendplain) {
|
||||
const pause = document.getElementById("pause");;
|
||||
pause.innerHTML = `<iframe id="special" src="${sendplain}" style="border:none" ></iframe>`;
|
||||
const canvas = document.getElementById("canvas");
|
||||
canvas.getContext('2d').drawImage(pause, 0, 0, pause.width, pause.height);
|
||||
const dataURL = canvas.toDataURL();
|
||||
console.log(dataURL);
|
||||
{{*
|
||||
const pause = document.getElementById("pause");;
|
||||
pause.innerHTML = `<iframe id="special" src="${sendplain}" style="border:none" ></iframe>`;
|
||||
|
||||
const canvas = document.getElementById("canvas");
|
||||
/*console.dir(canvas);*/
|
||||
canvas.getContext('2d').drawImage(pause, 0, 0, video.videoWidth, video.videoHeight);
|
||||
|
|
Loading…
Reference in a new issue