iota.media
Description
This module provides functionalities to display videos and images on notebooks.
Iota Video class object. This object can be created based on an existing video file or returned by the iota methods that allow to generate a videos (see for example iota.render.create_video and iota.render.Scene.create_video)
Parameters
filepath
: (str) filepath and name of the video file
Example
Creating an IotaVideo object given a the path to a video file
Attributes
Get the path and the name of the video file
Returns
A string with path and name of the video file
Example
Getting the path and the name of the IotaVideo object
Methods
Display an IotaVideo on the working notebook
Parameters
width
: (int) width of the video display in pixels (Default: None)height
: (int) height of the video display in pixels (Default: None)
Example
Displaying an IotaVideo on the working notebook with original dimensions of the video
Displaying an IotaVideo on the working notebook with width equal to 600 pixels and keeping the original aspect ratio of the video
Displaying an IotaVideo on the working notebook with width equal to 800 pixels and height equal to 600 pixels
Iota Image class object. This object can be created based on an existing image file or returned by the iota methods that allow to generate a images (see for example iota.render.create_screenshots and iota.render.Scene.create_screenshots)
Parameters
filepath
: (str) filepath and name of the image file
Example
Creating an IotaImage object given a the path to a image file
Attributes
Get the path and the name of the image file
Returns
A string with path and name of the video file
Example
Getting the path and the name of the IotaImage object
Methods
Display an IotaImage on the working notebook
Parameters
width
: (int) width of the image display in pixels (Default: None)height
: (int) height of the image display in pixels (Default: None)
Example
Displaying an IotaImage on the working notebook with original dimensions of the image
Displaying an IotaImage on the working notebook with width equal to 600 pixels and keeping the original aspect ratio of the image
Displaying an IotaImage on the working notebook with width equal to 800 pixels and height equal to 600 pixels
Last updated
Was this helpful?