Video_stream_add

Support for Air Player desktop.

Moderators: russ, Ralph

Message
Author
User avatar
Sling
Posts: 5041
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Video_stream_add

#51 Post by Sling »

Be warned if you incorporate this now into an instrument as I have the instrument will error if you try to run it in anything other than the 4.2 beta. There is a way round this by checking if the function is supported before trying to use it but the easiest way is to just comment it out for now.

User avatar
jph
Posts: 2438
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: Video_stream_add

#52 Post by jph »

Any of you guys that are testing this can you please give me an approximate idea of the amount of memory used per stream (system and GPU) - especially with multiple streams - and also if this is making use of multiple cores ?
Thanks,
Joe
Joe. CISSP, MSc.

mcarthuh
Posts: 6
Joined: Mon Apr 26, 2021 4:17 pm

Re: Video_stream_add

#53 Post by mcarthuh »

The API gives the following example: -- Create a new video stream for the X-plane PFD
my_video_stream = video_stream_add("xpl/G1000_PFD_1", 0, 0, 1024, 768)

Does anyone have an example AM G1000 Overlay that includes the video stream G1000 PFD?

SimPassion
Posts: 4336
Joined: Thu Jul 27, 2017 12:22 am

Re: Video_stream_add

#54 Post by SimPassion »

mcarthuh wrote: Sun Mar 12, 2023 6:59 pm The API gives the following example: -- Create a new video stream for the X-plane PFD
my_video_stream = video_stream_add("xpl/G1000_PFD_1", 0, 0, 1024, 768)

Does anyone have an example AM G1000 Overlay that includes the video stream G1000 PFD?
None of these samples are working (requires at least the 4.2 Beta branch for the moment) :

image.png
image.png
image.png (1.11 KiB) Viewed 173 times
 

SimPassion
Posts: 4336
Joined: Thu Jul 27, 2017 12:22 am

Re: Video_stream_add

#55 Post by SimPassion »

Eventually got it working after installing the flightsim plugin 4.1 Beta 5, still have to understand how to set it properly, anyway, here's a first shot for me :

image.png
image.png
 

SimPassion
Posts: 4336
Joined: Thu Jul 27, 2017 12:22 am

Re: Video_stream_add

#56 Post by SimPassion »

Ok I get, it looks like I've added too much parameters for my previous initial attempt, so here it is with "video_stream_id = video_stream_add("xpl/G1000_MFD", 0, 0, 1024, 768)" :

image.png

with "video_stream_id = video_stream_add("xpl/G1000_PFD_1", 0, 0, 1024, 768)" :

image.png
 

SimPassion
Posts: 4336
Joined: Thu Jul 27, 2017 12:22 am

Re: Video_stream_add

#57 Post by SimPassion »

Just a small reminder ... indeed this is not working with the ZiboMod : "video_stream_id = video_stream_add("xpl/CDU739_1", 0, 0, 1024, 768)"

However it works properly with the default Laminar Research 737-800 :

image.png
image.png
 

Post Reply