ggritmon

Video.clear() workaround?

Recommended Posts

When I show a video on start, the last frame of that video displays for a split second since that is the current data until the Video refreshes. Normally, Video.clear() would be the fix for that, but...

 

 

...there is a known bug with Video.clear(), logged in the Adobe system & never getting fixed:

https://bugs.adobe.com/jira/browse/FP-178

 

The workaround seems to be either:

show & hide video

(which doesn't help since showing the video on start still displays the last frame)

or:

when clear() is called, destroy & reinstantiate the Video instance.

 

It would be great if the VideoLoader had a clear() method which did the second point above.

Share this post


Link to post
Share on other sites

Are you able to reproduce this problem? If so, would you mind testing the attached updated version of VideoLoader and using its clearVideo() method to see if it resolves things for you?

VideoLoader.zip

Share this post


Link to post
Share on other sites

I'm sorry, but now I can't reproduce the issue (before I even copy this new version over).

 

Did Adobe decide to finally resolve this issue in FP 11 or something? Now when I call rawContent.clear() it works perfectly fine.

 

I looked at the new clearVideo() method & it looks like it would do the trick nicely (assuming the user is in a player which demonstrates the problem?)

Share this post


Link to post
Share on other sites

Anyone still experiencing issues with video.clear() or loader.clearVideo()?  I inherited an older project with this issue, updated to the latest versions of everything, and I still get the issue.

 

I did notice the issue goes away with AIR 22 and AIR 23 but the audio quality suffers, so that's not an option.  They did fix the audio quality in AIR 24 but then the stuck video frame issue came back as well.

 

The previous developer used a tween to hide everything for 1 second after the next video starts, but I'm seeing mixed results on various versions of Android.

 

Anyone come up with any other workarounds?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.