[Bf-docboard-svn] bf-manual: [8254] trunk/blender_docs/exts/peertube.py: Peertube: Do not add extra height for playback controls
Aaron Carlisle
noreply at blender.org
Wed Jul 28 05:09:52 CEST 2021
Revision: 8254
https://developer.blender.org/rBM8254
Author: Blendify
Date: 2021-07-28 05:09:52 +0200 (Wed, 28 Jul 2021)
Log Message:
-----------
Peertube: Do not add extra height for playback controls
This seems to be left over from some old youtube player.
New player expects controls to be drawn ontop of the video.
Modified Paths:
--------------
trunk/blender_docs/exts/peertube.py
Modified: trunk/blender_docs/exts/peertube.py
===================================================================
--- trunk/blender_docs/exts/peertube.py 2021-07-28 03:04:18 UTC (rev 8253)
+++ trunk/blender_docs/exts/peertube.py 2021-07-28 03:09:52 UTC (rev 8254)
@@ -10,8 +10,6 @@
logger = logging.getLogger(__name__)
-CONTROL_HEIGHT = 30
-
def get_size(d, key):
if key not in d:
return None
@@ -44,7 +42,6 @@
div_style = {}
if (height is None) and (width is not None) and (width[1] == "%"):
div_style = {
- "padding-top": "%dpx" % CONTROL_HEIGHT,
"padding-bottom": "%f%%" % (width[0] * aspect[1] / aspect[0]),
"width": "%d%s" % width,
"position": "relative",
@@ -70,7 +67,7 @@
height = width[0] * aspect[1] / aspect[0], "px"
style = {
"width": "%d%s" % width,
- "height": "%d%s" % (height[0] + CONTROL_HEIGHT, height[1]),
+ "height": "%d%s" % (height[0], height[1]),
}
attrs = {
"src": instance + "videos/embed/%s" % node["id"],
More information about the Bf-docboard-svn
mailing list