Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Jakob Sternberg

VideoLoader, reuse or create new instance?

Recommended Posts

Hi, if i want to make a videoplayer that plays more than one file,
should i reuse the VideoLoader instance like this?

myVideo.unload(); // even necesary?
myVideo.url = "myOtherVideo.flv";

Or should i rather create a new VideoLoader instance each time?



Link to comment
Share on other sites

Either way is fine. I typically prefer just creating a new instance after destroying the old one, but it's up to you. 

  • Like 1
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.