Jump to content
Search Community

Using VideoLoader with Stage Video

alex_s test
Moderator Tag

Recommended Posts

Hi,

does anyone have any idea's for best practice to use a VideoLoader with StageVideo?

 

Roughly speaking at the moment I've got:

 

videoLoader = new VideoLoader(filename, {onComplete:videoComplete, autoPlay:false});
videoLoader.load();

 

but when the loader is complete:

private function videoComplete(e:LoaderEvent):void {
//ns.play(    );
}

 

I'm not sure how to attached the loaded video to the NetStream driving the StageVideo?

 

Many Thanks,

Alex

Link to comment
Share on other sites

I've had some progress with a hint from this thread (viewtopic.php?f=6&t=4469&p=20961)

 

				
videoLoader = new VideoLoader(filename, {onComplete:videoComplete, autoPlay:true});
sv.attachNetStream(videoLoader.netStream);
videoLoader.load();

 

I would still like advice on best practice1

 

Perhaps we could have an entry in the Tips&Tricks section for the proper handling of StageVideo?

 

ps. Any advice on how to control the playing of NetStream manually?

 

videoLoader.playVideo();

 

doesn't work, and

videoLoader.netStream.play();

expects a parameter (the file name) which I haven't found in there yet.

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...