Jump to content
Search Community

Video.clear() workaround?

ggritmon test
Moderator Tag

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.

Link to comment
Share on other sites

  • 2 weeks later...

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?)

Link to comment
Share on other sites

  • 4 years later...

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?

Link to comment
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.
×
×
  • Create New...