def __init__(self,source, width, height, top, left): Elemento.__init__(self,style=dict(position="absolute", top=top,left=left)) video=html.VIDEO(width=width, height=height,autoplay=True, style=dict(position="absolute", top=top, left=left)) video<=html.SOURCE(src=source) video.onclick = self._close self.elt<=video
def insert_video_source(self): document["video-player"].clear() video_element = html.VIDEO( "", style={"width": "100%"}, src=self.video_path, autoplay=True, controls=True, ) document["video-player"] <= video_element