Start a new topic

How to display Animated GIF?

How to display Animated GIF?

1 person has this problem

Hello Eva,

 I am Giving the absolute path but it is not showing the gif..

can you post some sample code. 


Thanx

Swapnil

Thanks, Eve for replying me. Well, this time I can't change the code. So, it's hard to use AnimatedImageDrawable. A project is working with Android OS 6.0 with any Chrome updates. But from OS 7.0,  WebView is directly connected with Chrome version as per Android developer documentation i.e whenever Chrome updates, WebView's features also updates. So, for any version of Chrome below 66, WebView is rendering gif's animation. 

Hi,


Could you then please send over a minimum version of your project so that we can further investigate the issue?


Thanks

GIF is not working with the latest version of Chrome (>= 66.0) in Android. I am using HtmlDrawable to render it.




Hello! 

 

I am trying to display animated GIF and so far not successful with it. I am trying to use AnimatedImageDrawable it does not help. May I ask for advice or code example on how you display animated gif files in your architect worlds? 

 

Here is a URL to GIF file I am trying to work with: http://forums.accuweather.com/uploads/post-13204-1336091269.gif

 

 var the_image = new AR.ImageResource("http://forums.accuweather.com/uploads/post-13204-1336091269.gif");

 var overlayOne = new AR.AnimatedImageDrawable(the_image, 5, 40, 50, {

    enabled : false,

                     offsetX:1,

offsetY:0.5

                    });

 

 

...

// Later in my code I add overlayOne to camera view: 

 

 imageTrackable.drawables.addCamDrawable(overlayOne);

 

 

Thank you. 

 

  
Login or Signup to post a comment