Jump to content

Refresh UniImage from server


Boghos

Recommended Posts

Hi all

I am new to UniGui and thus far I am very impressed. We are trying to create a video player with overlay from RTSP source. So the server is developed to connect to and RTSP source and receive H.264 video then decode and render some graphics. The result is a bitmap every 40msec. I am applying this to the UniImage component on the client side but a do not see any update until a button is clicked. I am using the assign method: 

VideoPlayerFrameWeb1->OutputImageWeb->Picture->Assign(VideoPlayerFrameWeb1->OutputImage->Bitmap);

I looked through the comments on other threads and couldn't find a way to force the image to redraw the new bitmap. 

I appreciate any advice

p.s. we are developing in Builder C++ 10.4

thank you

Link to comment
Share on other sites

Thanks Sherzod for the prompt reply.

I have read all the rtsp post and they are all pointing at HLS. we already have an HLS player that renders on the client side. that works great when we have one or two streams. Once we go above that the browser is struggling with the decoding, rendering and display. This is why i am trying to do that hard work on the server side using an NVidia GPU and just passing images to the client to display. I have a thread that is running on the server side and updating the UniImage component but the image on the client does not change. 

So the full pipeline is complete and i can see the live images with rendering if I use a standard TImage component on a VCL form, but when we switched to UniGui server application and UniImage then there is no refresh after the first frame.

Is there a way to force UniImage to redraw?

BTW the cache bitmap is not updating on disk either.

Thank you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...