03-11-2018, 06:21 AM
I am having trouble implementing something that was working a few years back when RIVA was running.  What I have is a template with an Overlay, and depending on whether a flag had been set on startup, would display a template with a Web Browser widget that would display a cam video, or if the flag was set to not display video, it would display a template with a Static Web image.
When the Web Browser widget is called, it displays the video fine.  However if I want image only, it doesn't.  The static web image is from an http site on the Camera IP server.  Nothing comes up in the Overlay, with no errors in the Trace.  I can, however pull that static web browser template up individually and it displays fine.
This leads me to believe that maybe the Overlay will not accept a Static Web Image anymore.  Here is the code and the two templates it calls, and again you can pull either of these up individually and it views as you would expect, but not if you pull up a static image overlay.
When the Web Browser widget is called, it displays the video fine.  However if I want image only, it doesn't.  The static web image is from an http site on the Camera IP server.  Nothing comes up in the Overlay, with no errors in the Trace.  I can, however pull that static web browser template up individually and it displays fine.
This leads me to believe that maybe the Overlay will not accept a Static Web Image anymore.  Here is the code and the two templates it calls, and again you can pull either of these up individually and it views as you would expect, but not if you pull up a static image overlay.
Code:
GlobalVars::SetVariable
   P1=GVar:CamID
   P2=1
If
System::Equals
   P1=%(GVar:ImageOnly)
   P2=False
   P3=Case
CamsOverlay::LoadOverlay
   P1=./BL-Cam1
Else
CamsOverlay::LoadOverlay
   P1=./BL-Cam1Image
End