forked from indymedia/epicyon
No autoplay on ccc videos
parent
938e0e7a83
commit
2dc0e9cd4b
|
@ -1035,7 +1035,7 @@ def addEmbeddedVideo(content: str,width=400,height=300) -> str:
|
||||||
url=url.split('"')[0]
|
url=url.split('"')[0]
|
||||||
if not url.endswith('/oembed'):
|
if not url.endswith('/oembed'):
|
||||||
url=url+'/oembed'
|
url=url+'/oembed'
|
||||||
content=content+"<center><iframe src=\""+videoSite+url+"\" width=\""+str(width)+"\" height=\""+str(height)+"\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe></center>"
|
content=content+"<center><iframe src=\""+videoSite+url+"\" width=\""+str(width)+"\" height=\""+str(height)+"\" frameborder=\"0\" allow=\"fullscreen\" allowfullscreen></iframe></center>"
|
||||||
return content
|
return content
|
||||||
|
|
||||||
# A selection of the current larger peertube sites, mostly French and German language
|
# A selection of the current larger peertube sites, mostly French and German language
|
||||||
|
|
Loading…
Reference in New Issue