×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

How to use streammanager?

1 month 1 week ago
iooo
Fresh Boarder
Fresh Boarder
Posts: 3
More
Topic Author
How to use streammanager? #44425
Please,

where would I find some more detailed documentation, or some examples, or at least the source code of a Linux application to understand how to use streammanager in my INDI client?

All I found is this www.indilib.org/api/classStreamManager.html
but I didn't understand how to use it in my code?

The goal is to get the live image from the INDI camera and display it in the application window.

Thanks

Please Log in or Create an account to join the conversation.

1 month 1 week ago
knro
Administrator
Administrator
Posts: 7354
Karma: 51
How to use streammanager? #44428
I think the easiest way to approach this is to look at the CCD Simulator code since it uses streaming. The API documentation could perhaps use a minimal example to show how it is used in drivers.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Please Log in or Create an account to join the conversation.

1 month 1 week ago
iooo
Fresh Boarder
Fresh Boarder
Posts: 3
More
Topic Author
How to use streammanager? #44449
Thanks for the reply. I was looking at CCD simulator code. Unfortunately, I did not find any example how to use streaming in INDI client.

Please Log in or Create an account to join the conversation.

1 month 1 week ago
knro
Administrator
Administrator
Posts: 7354
Karma: 51
How to use streammanager? #44459
So both KStars and PHD2 support streaming, so you can look at them.

In KStars, you can take a look here: github.com/KDE/kstars/blob/master/kstars/indi/videowg.cpp

In newFrame, it receives a BLOB, and then depending on it displays the buffer either as mono or RGB (it determines that from looking at the size)

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Please Log in or Create an account to join the conversation.

1 month 6 days ago
iooo
Fresh Boarder
Fresh Boarder
Posts: 3
More
Topic Author
How to use streammanager? #44489
Thank you for showing directions.

Please Log in or Create an account to join the conversation.

Time to create page: 0.494 seconds