VideoStream#
- class ansys.stk.core.graphics.VideoStream#
Bases:
IRasterStream
,IRaster
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#
Reinitializes 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. |
|
Begins playing the video when the playback property is set to real time. |
|
Pauses the video when the playback property is set to real time. |
|
Stop the video when the playback property is set to real time. Stopping the video will seek to the first frame and pause playback. Use the Play method to begin playing the video again. |
|
Seeks the video to its first frame and begins playing the video when the playback property is set to real time. |
|
Close the video stream and any associated resources. |
Get the uri of the video. |
|
Get or set the video playback mode of the video. |
|
Get or set the frame rate of the video when the playback property is set to real time. If this property is not set, the internal framerate of the video is used. |
|
Get or set the scene manager time at which the video will begin playing when the playback property is set to time interval. |
|
Get or set the scene manager time at which the video will stop playing when the playback property is set to time interval. |
|
Get or set the start time of the video in seconds. Changing the start time property also changes the start frame property to the frame in the video that corresponds to the specified time. |
|
Get or set the end time of the video in seconds. Changing the end time property also changes the end frame property to the frame in the video that corresponds to the specified time. |
|
Get or set the start frame of the video. Changing the start frame property also changes the start time property to the time in the video that corresponds to the specified frame. |
|
Get or set the end frame of the video. Changing the end frame property also changes the end time property to the time in the video that corresponds to the specified frame. |
|
Get or set whether the video will loop when it reaches its last frame when the playback property is set to real time. |
|
Get whether or not the video is playing. Use the play, pause, stop, and Reset methods to control the playback of the video when the playback property is set to real time. |
|
Get or set the thread processing yield time for asynchronous streaming of video over common protocols like udp. Setting a high value may increase performance, but may cause frames or packets to drop, effecting visual quality⦠|
|
Get or set a value indicating the buffering limit for packets when processing a video stream⦠|
|
Get or set a value indicating if frames should be dropped if video processing can not keep up with a video stream. If this is set to false, the video quality may degrade when the processing load is too high⦠|
|
Get or set a value indicating if the encoded audio stream should be synchronized to video playback If this is set to false, the audio stream will be disabled⦠|
|
Get the uri of the audio. |
Import detail#
from ansys.stk.core.graphics import VideoStream
Property detail#
- property VideoStream.playback: VideoPlayback#
Get or set the video playback mode of the video.
- property VideoStream.frame_rate: float#
Get or set the frame rate of the video when the playback property is set to real time. If this property is not set, the internal framerate of the video is used.
- property VideoStream.interval_start_time: Date#
Get or set the scene manager time at which the video will begin playing when the playback property is set to time interval.
- property VideoStream.interval_end_time: Date#
Get or set the scene manager time at which the video will stop playing when the playback property is set to time interval.
- property VideoStream.start_time: float#
Get or set the start time of the video in seconds. Changing the start time property also changes the start frame property to the frame in the video that corresponds to the specified time.
- property VideoStream.end_time: float#
Get or set the end time of the video in seconds. Changing the end time property also changes the end frame property to the frame in the video that corresponds to the specified time.
- property VideoStream.start_frame: int#
Get or set the start frame of the video. Changing the start frame property also changes the start time property to the time in the video that corresponds to the specified frame.
- property VideoStream.end_frame: int#
Get or set the end frame of the video. Changing the end frame property also changes the end time property to the time in the video that corresponds to the specified frame.
- property VideoStream.loop: bool#
Get or set whether the video will loop when it reaches its last frame when the playback property is set to real time.
- property VideoStream.is_playing: bool#
Get whether or not the video is playing. Use the play, pause, stop, and Reset methods to control the playback of the video when the playback property is set to real time.
- property VideoStream.packet_acquirement_yield_time: int#
Get or set the thread processing yield time for asynchronous streaming of video over common protocols like udp. Setting a high value may increase performance, but may cause frames or packets to drop, effecting visual qualityβ¦
- property VideoStream.packet_buffer_limit: int#
Get or set a value indicating the buffering limit for packets when processing a video streamβ¦
- property VideoStream.allow_frame_drop: bool#
Get or set a value indicating if frames should be dropped if video processing can not keep up with a video stream. If this is set to false, the video quality may degrade when the processing load is too highβ¦
Method detail#
- VideoStream.reinitialize_with_string_uri(self, uri: str) None #
Reinitializes 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.
- VideoStream.play(self) None #
Begins playing the video when the playback property is set to real time.
- Returns:
- VideoStream.pause(self) None #
Pauses the video when the playback property is set to real time.
- Returns:
- VideoStream.stop(self) None #
Stop the video when the playback property is set to real time. Stopping the video will seek to the first frame and pause playback. Use the Play method to begin playing the video again.
- Returns: