<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: URL image flickering in G Web Development Software</title>
    <link>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4198878#M166</link>
    <description>&lt;P&gt;After some investigation it does look like the URL Image is behaving as intended and I have &lt;A href="https://forums.ni.com/t5/Example-Code/Synchronous-Image-for-WebVI/ta-p/4198872" target="_self"&gt;created an example that is optimized for a rapidly changing image&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The URL Image control is behaving similar to the &amp;lt;img&amp;gt; tag in the browser. When the url is updated the browser clears the current image and starts loading the new image. The image is allowed to load piece-by-piece and you may have seen that behavior of images loading bit-by-bit on web pages with slow internet. This is okay for normal images where we want users to be able to see the content as quick as possible even if the image is not fully loaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That behavior is not great for rapidly changes images. When the image changes rapidly we don't want to see it load bit-by-bit and we instead only want to see the whole change at once so it has the appearance of animation when changed quickly. We also only want the image to wait and only update after successfully loading.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created the &lt;A href="https://forums.ni.com/t5/Example-Code/Synchronous-Image-for-WebVI/ta-p/4198872" target="_self"&gt;SynchronousImage&lt;/A&gt; example that when updating the url will block and wait for the image to load before displaying it on the screen. Let me know if it helps!&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 00:07:56 GMT</pubDate>
    <dc:creator>MilanR</dc:creator>
    <dc:date>2021-12-16T00:07:56Z</dc:date>
    <item>
      <title>URL image flickering</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4182734#M73</link>
      <description>&lt;P&gt;I noticed that the URL image on Safari (14.1.2) and FireFox (90.0.2) flicker heavily while not on Chrome.&lt;/P&gt;
&lt;P&gt;And I also notice than most of the screenshots on&amp;nbsp;&lt;A href="https://ni.github.io/webvi-examples/" target="_blank"&gt;https://ni.github.io/webvi-examples/&lt;/A&gt;&amp;nbsp;are made with Chrome.&lt;/P&gt;
&lt;P&gt;Is there an "official" limitation regarding browser to render the WebVi?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Ch&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 16:56:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4182734#M73</guid>
      <dc:creator>_Chris</dc:creator>
      <dc:date>2021-10-01T16:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: URL image flickering</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4182745#M74</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I noticed that the URL image on Safari (14.1.2) and FireFox (90.0.2) flicker heavily while not on Chrome.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you have a standalone example that reproduces the behavior?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;And I also notice than most of the screenshots on&amp;nbsp;&lt;A href="https://ni.github.io/webvi-examples/" target="_blank" rel="noopener"&gt;https://ni.github.io/webvi-examples/&lt;/A&gt;&amp;nbsp;are made with Chrome.
&lt;P&gt;Is there an "official" limitation regarding browser to render the WebVi?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;G Web Development software supports the latest version of the following browsers: Chrome, Firefox, Edge, Safari.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see that support list in the &lt;A href="https://www.ni.com/pdf/manuals/377286g.html#requirements" target="_self"&gt;LabVIEW NXG Web Module Readme&lt;/A&gt;. Unfortunately that note was missed when creating the &lt;A href="https://www.ni.com/pdf/manuals/378578a.html#requirements" target="_self"&gt;G Web Development Software Readme&lt;/A&gt; but I filed a documentation request to have it included. The supported browsers are the same.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 17:42:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4182745#M74</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2021-10-01T17:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: URL image flickering</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4182840#M76</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/4092"&gt;@_Chris&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I noticed that the URL image on Safari (14.1.2) and FireFox (90.0.2) flicker heavily while not on Chrome.&lt;/P&gt;
&lt;P&gt;And I also notice than most of the screenshots on&amp;nbsp;&lt;A href="https://ni.github.io/webvi-examples/" target="_blank" rel="noopener"&gt;https://ni.github.io/webvi-examples/&lt;/A&gt;&amp;nbsp;are made with Chrome.&lt;/P&gt;
&lt;P&gt;Is there an "official" limitation regarding browser to render the WebVi?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Ch&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I've the same issue especially when we Programmatically update/change the image rapidly. E.g. update image from LabVIEW video image acquisition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Chrome browser it seems fine (looks like a video). In Firefox is flickering.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 05:37:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4182840#M76</guid>
      <dc:creator>ThamS</dc:creator>
      <dc:date>2021-10-02T05:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: URL image flickering</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4183121#M82</link>
      <description>&lt;P&gt;Hi Milan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I confirm this bug with Safari 15 as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be please to be able to see the effect of the URLimage&amp;nbsp;"sync" property to see if it solves the problem. Could not so far, I tried to edit the HTML code directly in the G Web editor without success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below an example of my video streaming web socket receiver, very simple.&lt;/P&gt;
&lt;P&gt;I'll be please to send you the URL to the server via private email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-10-04 at 17.39.04.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/f0cd5efb163d151820e4430ad5ad38f7f9e2fbd3/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32393330353169304535344238303333383743393942312f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="Screenshot 2021-10-04 at 17.39.04.png" alt="Screenshot 2021-10-04 at 17.39.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll try to isolate the video streaming server from the rest and post it into this forum, this is going to take some times...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 16:15:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4183121#M82</guid>
      <dc:creator>_Chris</dc:creator>
      <dc:date>2021-10-04T16:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: URL image flickering</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4184073#M90</link>
      <description>&lt;P&gt;Here are the promised sample codes.&lt;/P&gt;
&lt;P&gt;The server is in LV 2021 OSX, it streams jpeg images via ws.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To run the server, open "LV_WS.lvproj" and run "LV_Demo_WS_server_Graph.vi", it will answer ws on port 8083.&lt;/P&gt;
&lt;P&gt;I use my own WS vis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The client is in GWeb 2021&amp;nbsp;(VStream.gwebproject), you have to generate the web build and place it in your preferred web server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you run the client &amp;nbsp;from within GWeb you'll notice that there is no flickering, same if you open it with Edge or Chrome, but flickering occurs in Safari and Firefox.&lt;/P&gt;
&lt;P&gt;To run the client you first have to specify the websocket server URL + port, then "Connect".&lt;/P&gt;
&lt;P&gt;Should looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ch&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2021-10-08 at 11.57.16.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/ab1e24f09631a87a66f866da8d17825e14e7d828/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32393332333169303030433433324444353237333430312f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Screenshot 2021-10-08 at 11.57.16.png" alt="Screenshot 2021-10-08 at 11.57.16.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 10:02:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4184073#M90</guid>
      <dc:creator>_Chris</dc:creator>
      <dc:date>2021-10-08T10:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: URL image flickering</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4198878#M166</link>
      <description>&lt;P&gt;After some investigation it does look like the URL Image is behaving as intended and I have &lt;A href="https://forums.ni.com/t5/Example-Code/Synchronous-Image-for-WebVI/ta-p/4198872" target="_self"&gt;created an example that is optimized for a rapidly changing image&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The URL Image control is behaving similar to the &amp;lt;img&amp;gt; tag in the browser. When the url is updated the browser clears the current image and starts loading the new image. The image is allowed to load piece-by-piece and you may have seen that behavior of images loading bit-by-bit on web pages with slow internet. This is okay for normal images where we want users to be able to see the content as quick as possible even if the image is not fully loaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That behavior is not great for rapidly changes images. When the image changes rapidly we don't want to see it load bit-by-bit and we instead only want to see the whole change at once so it has the appearance of animation when changed quickly. We also only want the image to wait and only update after successfully loading.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created the &lt;A href="https://forums.ni.com/t5/Example-Code/Synchronous-Image-for-WebVI/ta-p/4198872" target="_self"&gt;SynchronousImage&lt;/A&gt; example that when updating the url will block and wait for the image to load before displaying it on the screen. Let me know if it helps!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 00:07:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4198878#M166</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2021-12-16T00:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: URL image flickering</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4206574#M207</link>
      <description>&lt;P&gt;The &lt;A href="https://www.ni.com/pdf/manuals/378578a.html" target="_self"&gt;G Web Development Software 2021 Readme&lt;/A&gt; describes the following supported versions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;G Web Development Software 2021 supports the latest version of the following browsers:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Chrome&lt;/LI&gt;
&lt;LI&gt;Edge&lt;/LI&gt;
&lt;LI&gt;Firefox&lt;/LI&gt;
&lt;LI&gt;Safari&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 15:56:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/URL-image-flickering/m-p/4206574#M207</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2022-01-27T15:56:37Z</dc:date>
    </item>
  </channel>
</rss>

