B4J Question [ABMaterial] fast image refresh

peacemaker

Expert
Licensed User
Longtime User
Hi, All and @alwaysbusy

If to try to make "real-time" image update without caching often, say, each second or better faster - is it possible ?
How to use .SetVisibilityFlush, what is first parameter format ?

B4X:
Sub timLog_Tick
img_frame.Source = "../../" & "img.jpg"   'it's being updated image file
img_frame.Refresh   'but only first one is constantly visible on web-page, not updated by timer, but file is for sure updated
End Sub
 
Last edited:

peacemaker

Expert
Licensed User
Longtime User
Seems, solved - file names should be not the same.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Yes. I have to generate lots of images
B4X:
Dim tmp_img As String = "tmp_" & DateTime.Now & ".jpg"
and it's rather trouble to delete them next.... They are loaded not so fast by the browser...
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Since you are the one saving them, you can easily keep track of the last used one, and delete it.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…