Play Gif Once using Fresco Library
<p>I am using the following code to play the gif, but here it keeps on repeating the gif play.</p>

<pre><code>Uri uri;
DraweeController controller = Fresco.newDraweeControllerBuilder()
    .setUri(uri)
    .setAutoPlayAnimations(true)
    . // other setters
    .build();
mSimpleDraweeView.setController(controller);
</code></pre>

<p>How can i play it once?</p>