Authentication-Results: mail-b.sr.ht; dkim=pass header.d=e.email header.i=@e.email Received: from mail.ecloud.global (mail.ecloud.global [135.181.85.105]) by mail-b.sr.ht (Postfix) with ESMTPS id 6C000FF12B for <~cadence/tube-devel@lists.sr.ht>; Tue, 12 Jan 2021 13:35:37 +0000 (UTC) Received: from authenticated-user (mail.ecloud.global [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.ecloud.global (Postfix) with ESMTPSA id 0A91810002E62766; Tue, 12 Jan 2021 13:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e.email; s=mail1; t=1610458536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XPppzBAagOtKRRbSAP3rgK/ztWs4dfdnsTnAP3bPx5s=; b=A6StAJP+rmf38a/VNXcAaHGR4LsWTC0IeS49Xh67C5mCaYzvN/4Sz3+p56tJ8lzwQkTIFQ /O4KA1WZUBqsI3MmRSj2eTvZyDlxW57wz/upewxN58AA1LmZtIlH/3W9F392hvIMqlZB/T 8dSTwBGzh8UHMjN0tGhI3HZqnsn6Woc= From: bopol To: ~cadence/tube-devel@lists.sr.ht Cc: bopol Subject: [PATCH v2] add thumbnail on videos Date: Tue, 12 Jan 2021 14:35:16 +0100 Message-Id: <20210112133516.5294-1-bopol@e.email> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=e.email; s=mail1; t=1610458536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XPppzBAagOtKRRbSAP3rgK/ztWs4dfdnsTnAP3bPx5s=; b=lLMrcQ95EbxQIvIXOlEGSYlTHmwfeibaN3PzlKLIzI4qQ8SYDfUB0fuw4ETiqHaSu9WzVx pmVO5C5hKqAdF44B1w7HmOcKjsLlc8QWWu/K+FqhEa2FAkETuf1ZkFMcSgMaLMcOl2TqRi IwllY/yEQcCjgAErDiFG7lqVSN/b24U= ARC-Seal: i=1; s=mail1; d=e.email; t=1610458536; a=rsa-sha256; cv=none; b=vw4B9q7luZ6Yq4d75/6Rg0MbiZNEAqqVEr6nnAeK7eMARl90gRp0Y5VsSg2a7TPeclNsh4 Vz7KxzIsgEiVdYT/RjbaPY8KtooDo12rMuGOjUkm8ZiRzQr6qCg+UQSV/m++TVKNs04wjP uKUoBKkcqZpJF+KV4/MYfxI45qfFZB8= ARC-Authentication-Results: i=1; mail.ecloud.global; auth=pass smtp.mailfrom=bopol@e.email --- Done. I don't think we should add a preference for this, many video platforms / apps either autostart or show thumbnail, and if you add too many preferences it will become hard to understand and use. pug/video.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pug/video.pug b/pug/video.pug index 74a9049..cfe444a 100644 --- a/pug/video.pug +++ b/pug/video.pug @@ -21,7 +21,7 @@ block content .video-container - const format = sortedFormatStreams[0] if format - video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video + video(controls preload="auto" poster=`/vi/${video.videoId}/maxresdefault.jpg` width=format.second__width height=format.second__height data-itag=format.itag)#video.video source(src=format.url type=format.type) else video(src="")#video.video -- 2.29.2