VideoStreamFactory#

class ansys.stk.core.graphics.VideoStreamFactory#

A raster stream that streams from a video. The video can be read from a file, or streamed from an HTTP, RTP, UDP, or TCP source. See the Video Streams Overview for a list of supported video formats and Uri usage.

Overview#

initialize_with_string_uri

Initialize the video stream from a Uri, which can be a file, HTTP, RTP, UDP, or TCP source. See the Video Streams Overview for a list of supported video formats and Uri usage.

initialize_with_string_uri_and_audio

Initialize the video stream from a Uri, which can be a file, HTTP, RTP, UDP, or TCP source. See the Video Streams Overview for a list of supported video formats and Uri usage.

initialize_audio_video_with_string_uri

Initialize the video stream from a Uri, which can be a file, HTTP, RTP, UDP, or TCP source. See the Video Streams Overview for a list of supported video formats and Uri usage.

Import detail#

from ansys.stk.core.graphics import VideoStreamFactory

Method detail#

VideoStreamFactory.initialize_with_string_uri(self, uri: str) VideoStream#

Initialize the video stream from a Uri, which can be a file, HTTP, RTP, UDP, or TCP source. See the Video Streams Overview for a list of supported video formats and Uri usage.

Parameters:

uri : str

Returns:

VideoStream

VideoStreamFactory.initialize_with_string_uri_and_audio(self, uri: str, load_audio: bool) VideoStream#

Initialize the video stream from a Uri, which can be a file, HTTP, RTP, UDP, or TCP source. See the Video Streams Overview for a list of supported video formats and Uri usage.

Parameters:

uri : str

load_audio : bool

Returns:

VideoStream

VideoStreamFactory.initialize_audio_video_with_string_uri(self, uri: str, audio_uri: str) VideoStream#

Initialize the video stream from a Uri, which can be a file, HTTP, RTP, UDP, or TCP source. See the Video Streams Overview for a list of supported video formats and Uri usage.

Parameters:

uri : str

audio_uri : str

Returns:

VideoStream