Posts: 27
Threads: 10
Joined: Oct 2019
Reputation:
2
Location: NZ
Hi,
I have tried the new TIWVideo component in IW15 and got it working. I am wondering if it can support a live video stream (either rtsp or multi-part jpeg)?
Thanks,
Tim
Posts: 2,256
Threads: 195
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
07-22-2023, 01:39 AM
(This post was last modified: 07-22-2023, 01:39 AM by Alexandre Machado.)
IWVideo running with any IntraWeb application does support video streaming from files and or streams. However some modifications will probably be needed.
I believe you will need a TStream descendant which will receive your input video stream and pass it to IW core... Have you considered this?
Posts: 2,256
Threads: 195
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Yes, sure. That should be interesting... I'll do some experimentation and let you know.
Cheers,
Posts: 27
Threads: 10
Joined: Oct 2019
Reputation:
2
Location: NZ
That would be great thanks Alexandre.
Posts: 27
Threads: 10
Joined: Oct 2019
Reputation:
2
Location: NZ
07-30-2023, 08:34 AM
(This post was last modified: 07-30-2023, 08:36 AM by troberts.)
I've made some progress on this. I've been working with a TIWImage component. I've got the jpeg data from the live stream and I am using it to update the image (IWImage.Picture.LoadFromStream...).
I'm not sure of the best way to redraw the image. I've tried a few techniques. The most successful one I have found involves redrawing the image in an aynchronous timer event and then calling RefreshAsyncRender. This works but suffers from bad flickering.
Appreciate any advice.
Thanks,
Tim
Posts: 27
Threads: 10
Joined: Oct 2019
Reputation:
2
Location: NZ
Anyone got any suggestions as to how I can reload a TIWImage asynchronously without it flickering?