question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stop/play parsed aPNG

See original GitHub issue

Hey, after running the below code I’m able to see the image details, but could you tell me how can I stop or play again some animation? I can see the play method, but I’m unable to do trigger it:

APNG.parseURL(src).then(function(data) {
  console.log(data);
});

Should I somehow assign it to a variable like const player = APNG.parseURL(src); and then use it by player.play(); if needed or how it works?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
davidmzcommented, Nov 26, 2020
1reaction
davidmzcommented, Nov 23, 2020

Well, in this case, you should parse all of the user-added APNG URLs using the APNG.parseURL (this will get you the APNG objects). Then you should create canvas elements with the sizes of APNGs, attach canvas’ contexts to APNGs using .addContext(), and then use play/rewind method of apng objects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to pause an Animated .PNG (APNG) on the ...
I'd like to support APNG files, but with hover to animate functionality on some pages so it's not too overwhelming.
Read more >
VLC command-line help - VideoLAN Wiki
Otherwise, all announcements are parsed by the "live555" (RTP/RTSP) ... Show the name of the song or video in the controller window title....
Read more >
Solved: Re: 1061: Call to a possibly undefined method star...
I am able to get data using JSON parsing and creating an bgmList out of that. But I am unsure how to instead...
Read more >
Untitled
Drum song riddim 1997, Background lucu dan keren, Exact mining jobs olympic dam, ... Pizzetta sfoglia, Keshet dance studio, Loial, Bus stop play...
Read more >
javazoom.jl.player.Player.close java code examples - Tabnine
protected void stopPlayer() throws JavaLayerException { if (player!=null) { player.close(); player ... Java Jlayer Mp3 Player - how to repeat and stop song....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found