Peertube (customblocks.generators.peertube
)
Peertube is a decentralized alternative to video sites like youtube.
Videos are uploaded to a federated instance (host), and then distributed to the others so that download can be done downloaded using all instances.
Options
instance
- The domain hosting the video
uuid
- uuid in the embed url (Not the regular one!!)
start
(keyword only, format as3m23s
)- starting playback point
stop
(keyword only, format as3m23s
)- stopping playback point
autoplay/noautoplay
(flag, default False)- play as the video is available
loop/noloop
(flag, default False)- loop or not the video after end
title/notitle
(flag, default True)- show or hide the video title overlay
controls/nocontrols
(flag, default True)- show or hide the playback controls
muted/nomuted
(flag, default False)- mute the video on loading
p2p/nop2p
(flag, default True)- use p2p to download the video
*args
- added as additional class for the outter div
**kwds
- added as additional attributes for the outter div
Styling
The component can be selected as div.videowrapper.peertube
.
Note that the videowrapper
class is common with other video embeds
and has a recommended css.
Examples
TODO
- Infer UUID from base64 ids
- Infer UUID and pod from video url