add_video_frame method

add_video_frame

Creates a new video frame and adds it to the end of the shape collection.

Returns

The newly created IVideoFrame.

def add_video_frame(self, x, y, width, height, fname):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the new video frame, in points.
yfloatThe y-coordinate of the new video frame, in points.
widthfloatThe width of the new video frame, in points.
heightfloatThe height of the new video frame, in points.
fnamestrThe path or name of the video file to embed.

add_video_frame

Creates a new video frame and adds it to the end of the shape collection.

Returns

The newly created IVideoFrame.

def add_video_frame(self, x, y, width, height, video):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the new video frame, in points.
yfloatThe y-coordinate of the new video frame, in points.
widthfloatThe width of the new video frame, in points.
heightfloatThe height of the new video frame, in points.
videoIVideoThe IVideo to embed in the video frame.

See Also