Home›All functions›Video stream
Video stream
Simulation Instrument Studio 1
video_stream_add
Simulation Instrument Studio 1
Definition
video_stream_id = video_stream_add(key, x, y, width, height)
Remarks
Add a video stream.
Example
No sample instrument calls this yet.
video_stream_add()
Example: a crop of the gauges texture
-- Full PFD
pfd = video_stream_add("xpl/G1000_PFD_1", 12, 12, 400, 300)
-- Only the attitude window inside the gauges texture
attitude = video_stream_add("xpl/gauges[0]", 12, 12, 200, 200, 80, 40, 240, 180)
Photo slot: shots/video_stream_add.png
video_stream_ext_add
Simulation Instrument Studio 1
Definition
video_stream_id = video_stream_ext_add(tag, key, x, y, width, height)
Remarks
Add an external video stream. Professional only.
Example
No sample instrument calls this yet.
video_stream_ext_add()
Photo slot: shots/video_stream_ext_add.png
video_stream_set
Simulation Instrument Studio 1
Definition
video_stream_set(video_stream_id, key, tex_x, tex_y, text_width, text_height)
Remarks
Change texture or texture size of a video stream.
Parameters
| Name | Description |
video_stream_id | Id returned by the call that created the object. |
key | Top position in instrument pixels. |
tex_x | Left position in instrument pixels. |
tex_y | Left position in instrument pixels. |
text_width | Width in instrument pixels. |
text_height | Height in instrument pixels. |
Example
No sample instrument calls this yet.
video_stream_set(video_stream_id, key, tex_x, tex_y, text_width, text_height)
Photo slot: shots/video_stream_set.png