Show More
@@ -1348,17 +1348,20 b' class Video(DisplayObject):' | |||||
1348 | If not supplied, defaults to the height of the video. |
|
1348 | If not supplied, defaults to the height of the video. | |
1349 | html_attributes : str |
|
1349 | html_attributes : str | |
1350 | Attributes for the HTML `<video>` block. |
|
1350 | Attributes for the HTML `<video>` block. | |
1351 | Default: "controls" to get video controls. |
|
1351 | Default: `"controls"` to get video controls. | |
1352 | Other examples: "controls muted" for muted video with controls, |
|
1352 | Other examples: `"controls muted"` for muted video with controls, | |
1353 | "loop autoplay" for looping autoplaying video without controls. |
|
1353 | `"loop autoplay"` for looping autoplaying video without controls. | |
1354 |
|
1354 | |||
1355 | Examples |
|
1355 | Examples | |
1356 | -------- |
|
1356 | -------- | |
1357 |
|
1357 | |||
1358 | Video('https://archive.org/download/Sita_Sings_the_Blues/Sita_Sings_the_Blues_small.mp4') |
|
1358 | :: | |
1359 | Video('path/to/video.mp4') |
|
1359 | ||
1360 | Video('path/to/video.mp4', embed=True) |
|
1360 | Video('https://archive.org/download/Sita_Sings_the_Blues/Sita_Sings_the_Blues_small.mp4') | |
1361 | Video(b'raw-videodata', embed=True) |
|
1361 | Video('path/to/video.mp4') | |
|
1362 | Video('path/to/video.mp4', embed=True) | |||
|
1363 | Video('path/to/video.mp4', embed=True, html_attributes="controls muted autoplay") | |||
|
1364 | Video(b'raw-videodata', embed=True) | |||
1362 | """ |
|
1365 | """ | |
1363 | if isinstance(data, (Path, PurePath)): |
|
1366 | if isinstance(data, (Path, PurePath)): | |
1364 | data = str(data) |
|
1367 | data = str(data) |
General Comments 0
You need to be logged in to leave comments.
Login now