[Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Wouter Steidl
Hi List,

I am using the FLVPlayback component and have a really strange problem:

I have a videoloader class (Singleton) that I instansiate, then I throw in
an array of videos and it plays them sequentiallylike this: (FPB is a
reference to the FLVplayback-instance on stage)

public function loadFLVs (aVids : Array) : Void {   
// (re)set the video arrays
this.aVids = aVids;

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = aVids[0].source;

// start with first Video
FPB.play();
}

And on a buttonpress I can change the array of videos like this:

Button.onPress = function() {
aVideos[0] = {source:videos/1A.flv, id:1, name:11, nCpTime:1.00};
myVid.loadFLVs(aVideos);
}

But now something strange happens...

I have a number of videos for a project named 1A.flv, 1b.flv, etc.
If I start with 1A and try to load 1B on the buttonclick it fails

If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form A
TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv

As a hack I tried this in the loadFLV function:

Before I set the content path to the correct video I change it to
project2.flv...

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = project2.flv;
FPB.contentPath = aVids[0].source;

And then it works again :S
but its an ugly hack


I`m totally clueless,
Any idea what this can be?

Thanx a lot!

Wouter




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Ashwan Wadhwa
You may want to wait for the ready event to fire(after you set the
contentPath)and then issue the play command.

MM Help example here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhel
p.htm?href=1893.html




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter
Steidl
Sent: Wednesday, April 26, 2006 3:43 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Strnge FLVplayback problem

Hi List,

I am using the FLVPlayback component and have a really strange problem:

I have a videoloader class (Singleton) that I instansiate, then I throw
in an array of videos and it plays them sequentiallylike this: (FPB
is a reference to the FLVplayback-instance on stage)

public function loadFLVs (aVids : Array) : Void {   
// (re)set the video arrays
this.aVids = aVids;

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = aVids[0].source;

// start with first Video
FPB.play();
}

And on a buttonpress I can change the array of videos like this:

Button.onPress = function() {
aVideos[0] = {source:videos/1A.flv, id:1, name:11,
nCpTime:1.00};
myVid.loadFLVs(aVideos);
}

But now something strange happens...

I have a number of videos for a project named 1A.flv, 1b.flv, etc.
If I start with 1A and try to load 1B on the buttonclick it fails

If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form A
TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv

As a hack I tried this in the loadFLV function:

Before I set the content path to the correct video I change it to
project2.flv...

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = project2.flv;
FPB.contentPath = aVids[0].source;

And then it works again :S
but its an ugly hack


I`m totally clueless,
Any idea what this can be?

Thanx a lot!

Wouter




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Wouter Steidl
Thx for your respose,
But I cant believe it has to do with thatcause it works if I don't try
to load flvs from the same project but throw in the file from that other
project..

Any more thoughts?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ashwan
Wadhwa
Sent: Wednesday, April 26, 2006 10:08 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Strnge FLVplayback problem

You may want to wait for the ready event to fire(after you set the
contentPath)and then issue the play command.

MM Help example here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhel
p.htm?href=1893.html




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter
Steidl
Sent: Wednesday, April 26, 2006 3:43 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Strnge FLVplayback problem

Hi List,

I am using the FLVPlayback component and have a really strange problem:

I have a videoloader class (Singleton) that I instansiate, then I throw in
an array of videos and it plays them sequentiallylike this: (FPB is a
reference to the FLVplayback-instance on stage)

public function loadFLVs (aVids : Array) : Void {   
// (re)set the video arrays
this.aVids = aVids;

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = aVids[0].source;

// start with first Video
FPB.play();
}

And on a buttonpress I can change the array of videos like this:

Button.onPress = function() {
aVideos[0] = {source:videos/1A.flv, id:1, name:11, nCpTime:1.00};
myVid.loadFLVs(aVideos);
}

But now something strange happens...

I have a number of videos for a project named 1A.flv, 1b.flv, etc.
If I start with 1A and try to load 1B on the buttonclick it fails

If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form A
TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv

As a hack I tried this in the loadFLV function:

Before I set the content path to the correct video I change it to
project2.flv...

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = project2.flv;
FPB.contentPath = aVids[0].source;

And then it works again :S
but its an ugly hack


I`m totally clueless,
Any idea what this can be?

Thanx a lot!

Wouter




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com ___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Mike Boutin

Have you tried using netstream object to play your flvs instead?


Wouter Steidl wrote:

Thx for your respose,
But I cant believe it has to do with thatcause it works if I don't try
to load flvs from the same project but throw in the file from that other
project..

Any more thoughts?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ashwan
Wadhwa
Sent: Wednesday, April 26, 2006 10:08 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Strnge FLVplayback problem

You may want to wait for the ready event to fire(after you set the
contentPath)and then issue the play command.

MM Help example here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhel
p.htm?href=1893.html




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter
Steidl
Sent: Wednesday, April 26, 2006 3:43 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Strnge FLVplayback problem

Hi List,

I am using the FLVPlayback component and have a really strange problem:

I have a videoloader class (Singleton) that I instansiate, then I throw in
an array of videos and it plays them sequentiallylike this: (FPB is a
reference to the FLVplayback-instance on stage)

public function loadFLVs (aVids : Array) : Void {   
// (re)set the video arrays
this.aVids = aVids;

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = aVids[0].source;

		// start with first Video

FPB.play();
}

And on a buttonpress I can change the array of videos like this:

Button.onPress = function() {
aVideos[0] = {source:videos/1A.flv, id:1, name:11, nCpTime:1.00};
myVid.loadFLVs(aVideos);
}

But now something strange happens...

I have a number of videos for a project named 1A.flv, 1b.flv, etc.
If I start with 1A and try to load 1B on the buttonclick it fails

If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form A
TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv

As a hack I tried this in the loadFLV function:

Before I set the content path to the correct video I change it to
project2.flv...

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = project2.flv;
FPB.contentPath = aVids[0].source;

And then it works again :S
but its an ugly hack


I`m totally clueless,
Any idea what this can be?

Thanx a lot!

Wouter




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com ___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Wouter Steidl
Well., the whole setu is with the playback component because I can use 1
component and multiple flvs in that componentand the strange thing is
that it all works, but in this weirtd way I described

Thx for the tip though!
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Wednesday, April 26, 2006 10:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Strnge FLVplayback problem

Have you tried using netstream object to play your flvs instead?


Wouter Steidl wrote:
 Thx for your respose,
 But I cant believe it has to do with thatcause it works if I don't 
 try to load flvs from the same project but throw in the file from that 
 other project..

 Any more thoughts?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ashwan 
 Wadhwa
 Sent: Wednesday, April 26, 2006 10:08 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Strnge FLVplayback problem

 You may want to wait for the ready event to fire(after you set the 
 contentPath)and then issue the play command.

 MM Help example here:
 http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwh
 el
 p.htm?href=1893.html




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Wouter 
 Steidl
 Sent: Wednesday, April 26, 2006 3:43 PM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Strnge FLVplayback problem

 Hi List,

 I am using the FLVPlayback component and have a really strange problem:

 I have a videoloader class (Singleton) that I instansiate, then I 
 throw in an array of videos and it plays them sequentiallylike 
 this: (FPB is a reference to the FLVplayback-instance on stage)

 public function loadFLVs (aVids : Array) : Void { 
   // (re)set the video arrays
   this.aVids = aVids;
   
   //Load first video
   FPB.activeVideoPlayerIndex = 0;
   FPB.visibleVideoPlayerIndex = 0;
   FPB.contentPath = aVids[0].source;
 
   // start with first Video
   FPB.play();
 }

 And on a buttonpress I can change the array of videos like this:

 Button.onPress = function() {
   aVideos[0] = {source:videos/1A.flv, id:1, name:11, nCpTime:1.00};
   myVid.loadFLVs(aVideos);
 }

 But now something strange happens...

 I have a number of videos for a project named 1A.flv, 1b.flv, etc.
 If I start with 1A and try to load 1B on the buttonclick it fails

 If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form 
 A TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv

 As a hack I tried this in the loadFLV function:

 Before I set the content path to the correct video I change it to 
 project2.flv...

 //Load first video
 FPB.activeVideoPlayerIndex = 0;
 FPB.visibleVideoPlayerIndex = 0;
 FPB.contentPath = project2.flv;
 FPB.contentPath = aVids[0].source;

 And then it works again :S
 but its an ugly hack


 I`m totally clueless,
 Any idea what this can be?

 Thanx a lot!

 Wouter




 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com



   

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Steve Krichten

What do you mean by from a different project

In any case, I don't think you should use the same video player index 
for different videos.  I have encountered many problems when doing 
that.  So here is what I do..


private function _playVideo(url:String) {
   if (player.activeVideoPlayerIndex  0) {

   player.closeVideoPlayer(player.activeVideoPlayerIndex);
   delete player.getVideoPlayer(player.activeVideoPlayerIndex);
   }
   player.activeVideoPlayerIndex = ++nextVpIndex;
   player.visibleVideoPlayerIndex = nextVpIndex;
   player.play(url);
   }

Note this is a method of a class and the class has an instance of 
FLVPlayback named player and a Number field nextVpIndex initialized 
at 1 so that index 0 never gets used.  I do that because you can't 
delete the one at index 0.


Hope this helps,
Steve
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Ashwan Wadhwa
I have used the FLVPlayback component in a similar situation. About 6
videos 40 minutes in length and cue points loaded through xml. Never had
any major issues (other than that I was setting the cuepoint time as a
string), so I doubt that there is a bug in the Video component. I did
make sure that I was following the events before I issued play commands
or tried to set the AS Cuepoints. May you need to send an explicit stop
command before you load the next video?

Is it possible that your flv files are corrupted - does this happen on a
particular flv file (did you try going to 1C.flv) ?

a



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter
Steidl
Sent: Wednesday, April 26, 2006 4:47 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Strnge FLVplayback problem

Well., the whole setu is with the playback component because I can use 1
component and multiple flvs in that componentand the strange thing
is that it all works, but in this weirtd way I described

Thx for the tip though!
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Boutin
Sent: Wednesday, April 26, 2006 10:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Strnge FLVplayback problem

Have you tried using netstream object to play your flvs instead?


Wouter Steidl wrote:
 Thx for your respose,
 But I cant believe it has to do with thatcause it works if I don't

 try to load flvs from the same project but throw in the file from that

 other project..

 Any more thoughts?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ashwan

 Wadhwa
 Sent: Wednesday, April 26, 2006 10:08 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Strnge FLVplayback problem

 You may want to wait for the ready event to fire(after you set the 
 contentPath)and then issue the play command.

 MM Help example here:
 http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwh
 el
 p.htm?href=1893.html




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Wouter

 Steidl
 Sent: Wednesday, April 26, 2006 3:43 PM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Strnge FLVplayback problem

 Hi List,

 I am using the FLVPlayback component and have a really strange
problem:

 I have a videoloader class (Singleton) that I instansiate, then I 
 throw in an array of videos and it plays them sequentiallylike
 this: (FPB is a reference to the FLVplayback-instance on stage)

 public function loadFLVs (aVids : Array) : Void { 
   // (re)set the video arrays
   this.aVids = aVids;
   
   //Load first video
   FPB.activeVideoPlayerIndex = 0;
   FPB.visibleVideoPlayerIndex = 0;
   FPB.contentPath = aVids[0].source;
 
   // start with first Video
   FPB.play();
 }

 And on a buttonpress I can change the array of videos like this:

 Button.onPress = function() {
   aVideos[0] = {source:videos/1A.flv, id:1, name:11,
nCpTime:1.00};
   myVid.loadFLVs(aVideos);
 }

 But now something strange happens...

 I have a number of videos for a project named 1A.flv, 1b.flv, etc.
 If I start with 1A and try to load 1B on the buttonclick it fails

 If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form

 A TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv

 As a hack I tried this in the loadFLV function:

 Before I set the content path to the correct video I change it to 
 project2.flv...

 //Load first video
 FPB.activeVideoPlayerIndex = 0;
 FPB.visibleVideoPlayerIndex = 0;
 FPB.contentPath = project2.flv;
 FPB.contentPath = aVids[0].source;

 And then it works again :S
 but its an ugly hack


 I`m totally clueless,
 Any idea what this can be?

 Thanx a lot!

 Wouter




 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting

Re: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Mike Boutin
Using the netstream is the same idea as using the component, you can 
pass in multiple flv's to the same netstream / controls.


Wouter Steidl wrote:

Well., the whole setu is with the playback component because I can use 1
component and multiple flvs in that componentand the strange thing is
that it all works, but in this weirtd way I described

Thx for the tip though!
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Wednesday, April 26, 2006 10:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Strnge FLVplayback problem

Have you tried using netstream object to play your flvs instead?


Wouter Steidl wrote:
  

Thx for your respose,
But I cant believe it has to do with thatcause it works if I don't 
try to load flvs from the same project but throw in the file from that 
other project..


Any more thoughts?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ashwan 
Wadhwa

Sent: Wednesday, April 26, 2006 10:08 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Strnge FLVplayback problem

You may want to wait for the ready event to fire(after you set the 
contentPath)and then issue the play command.


MM Help example here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwh
el
p.htm?href=1893.html




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter 
Steidl

Sent: Wednesday, April 26, 2006 3:43 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Strnge FLVplayback problem

Hi List,

I am using the FLVPlayback component and have a really strange problem:

I have a videoloader class (Singleton) that I instansiate, then I 
throw in an array of videos and it plays them sequentiallylike 
this: (FPB is a reference to the FLVplayback-instance on stage)


public function loadFLVs (aVids : Array) : Void {   
// (re)set the video arrays
this.aVids = aVids;

//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = aVids[0].source;

		// start with first Video

FPB.play();
}

And on a buttonpress I can change the array of videos like this:

Button.onPress = function() {
aVideos[0] = {source:videos/1A.flv, id:1, name:11, nCpTime:1.00};
myVid.loadFLVs(aVideos);
}

But now something strange happens...

I have a number of videos for a project named 1A.flv, 1b.flv, etc.
If I start with 1A and try to load 1B on the buttonclick it fails

If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form 
A TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv


As a hack I tried this in the loadFLV function:

Before I set the content path to the correct video I change it to 
project2.flv...


//Load first video
FPB.activeVideoPlayerIndex = 0;
FPB.visibleVideoPlayerIndex = 0;
FPB.contentPath = project2.flv;
FPB.contentPath = aVids[0].source;

And then it works again :S
but its an ugly hack


I`m totally clueless,
Any idea what this can be?

Thanx a lot!

Wouter




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training 
http://www.figleaf.com http://training.figleaf.com 
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training 
http://www.figleaf.com http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training 
http://www.figleaf.com http://training.figleaf.com




  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

RE: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Wouter Steidl
All of you! Thanx a lot for all the replies,

I`m gonna check it all out tommorrow,
It is quite late on this site of the globe and it has been a pretty long day
So I`m gonna work on it tommorrow,

Thanx again all!

Wouter  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Wednesday, April 26, 2006 11:13 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Strnge FLVplayback problem

Using the netstream is the same idea as using the component, you can pass in
multiple flv's to the same netstream / controls.

Wouter Steidl wrote:
 Well., the whole setu is with the playback component because I can use 
 1 component and multiple flvs in that componentand the strange 
 thing is that it all works, but in this weirtd way I described

 Thx for the tip though!
  

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
 Boutin
 Sent: Wednesday, April 26, 2006 10:27 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Strnge FLVplayback problem

 Have you tried using netstream object to play your flvs instead?


 Wouter Steidl wrote:
   
 Thx for your respose,
 But I cant believe it has to do with thatcause it works if I 
 don't try to load flvs from the same project but throw in the file 
 from that other project..

 Any more thoughts?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Ashwan Wadhwa
 Sent: Wednesday, April 26, 2006 10:08 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Strnge FLVplayback problem

 You may want to wait for the ready event to fire(after you set the 
 contentPath)and then issue the play command.

 MM Help example here:
 http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/ww
 h
 el
 p.htm?href=1893.html




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Wouter Steidl
 Sent: Wednesday, April 26, 2006 3:43 PM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Strnge FLVplayback problem

 Hi List,

 I am using the FLVPlayback component and have a really strange problem:

 I have a videoloader class (Singleton) that I instansiate, then I 
 throw in an array of videos and it plays them sequentiallylike
 this: (FPB is a reference to the FLVplayback-instance on stage)

 public function loadFLVs (aVids : Array) : Void {
  // (re)set the video arrays
  this.aVids = aVids;
  
  //Load first video
  FPB.activeVideoPlayerIndex = 0;
  FPB.visibleVideoPlayerIndex = 0;
  FPB.contentPath = aVids[0].source;
 
  // start with first Video
  FPB.play();
 }

 And on a buttonpress I can change the array of videos like this:

 Button.onPress = function() {
  aVideos[0] = {source:videos/1A.flv, id:1, name:11, nCpTime:1.00};
  myVid.loadFLVs(aVideos);
 }

 But now something strange happens...

 I have a number of videos for a project named 1A.flv, 1b.flv, etc.
 If I start with 1A and try to load 1B on the buttonclick it fails

 If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv 
 form A TOTALLY DIFFERENT PROJECT  it works... Lets call it 
 project2.flv

 As a hack I tried this in the loadFLV function:

 Before I set the content path to the correct video I change it to 
 project2.flv...

 //Load first video
 FPB.activeVideoPlayerIndex = 0;
 FPB.visibleVideoPlayerIndex = 0;
 FPB.contentPath = project2.flv;
 FPB.contentPath = aVids[0].source;

 And then it works again :S
 but its an ugly hack


 I`m totally clueless,
 Any idea what this can be?

 Thanx a lot!

 Wouter




 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com



   
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive

RE: [Flashcoders] Straaaaaaaange FLVplayback problem....

2006-04-26 Thread Asai
I don't know if this will help you, but what I usually do to 
circumvent this type of problem is remove the FLVPlayback 
(FLVPlayback.unloadMovieClip();) completely in between videos and 
reattach it with a new video contentPath.  That seems to clear up any 
weird problems with multiple videos.  But it's definitely a hack.


At 02:00 PM 4/26/2006, you wrote:

I have used the FLVPlayback component in a similar situation. About 6
videos 40 minutes in length and cue points loaded through xml. Never had
any major issues (other than that I was setting the cuepoint time as a
string), so I doubt that there is a bug in the Video component. I did
make sure that I was following the events before I issued play commands
or tried to set the AS Cuepoints. May you need to send an explicit stop
command before you load the next video?

Is it possible that your flv files are corrupted - does this happen on a
particular flv file (did you try going to 1C.flv) ?

a



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter
Steidl
Sent: Wednesday, April 26, 2006 4:47 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Strnge FLVplayback problem

Well., the whole setu is with the playback component because I can use 1
component and multiple flvs in that componentand the strange thing
is that it all works, but in this weirtd way I described

Thx for the tip though!


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Boutin
Sent: Wednesday, April 26, 2006 10:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Strnge FLVplayback problem

Have you tried using netstream object to play your flvs instead?


Wouter Steidl wrote:
 Thx for your respose,
 But I cant believe it has to do with thatcause it works if I don't

 try to load flvs from the same project but throw in the file from that

 other project..

 Any more thoughts?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ashwan

 Wadhwa
 Sent: Wednesday, April 26, 2006 10:08 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Strnge FLVplayback problem

 You may want to wait for the ready event to fire(after you set the
 contentPath)and then issue the play command.

 MM Help example here:
 http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwh
 el
 p.htm?href=1893.html




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Wouter

 Steidl
 Sent: Wednesday, April 26, 2006 3:43 PM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Strnge FLVplayback problem

 Hi List,

 I am using the FLVPlayback component and have a really strange
problem:

 I have a videoloader class (Singleton) that I instansiate, then I
 throw in an array of videos and it plays them sequentiallylike
 this: (FPB is a reference to the FLVplayback-instance on stage)

 public function loadFLVs (aVids : Array) : Void {
   // (re)set the video arrays
   this.aVids = aVids;

   //Load first video
   FPB.activeVideoPlayerIndex = 0;
   FPB.visibleVideoPlayerIndex = 0;
   FPB.contentPath = aVids[0].source;

   // start with first Video
   FPB.play();
 }

 And on a buttonpress I can change the array of videos like this:

 Button.onPress = function() {
   aVideos[0] = {source:videos/1A.flv, id:1, name:11,
nCpTime:1.00};
   myVid.loadFLVs(aVideos);
 }

 But now something strange happens...

 I have a number of videos for a project named 1A.flv, 1b.flv, etc.
 If I start with 1A and try to load 1B on the buttonclick it fails

 If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form

 A TOTALLY DIFFERENT PROJECT  it works... Lets call it project2.flv

 As a hack I tried this in the loadFLV function:

 Before I set the content path to the correct video I change it to
 project2.flv...

 //Load first video
 FPB.activeVideoPlayerIndex = 0;
 FPB.visibleVideoPlayerIndex = 0;
 FPB.contentPath = project2.flv;
 FPB.contentPath = aVids[0].source;

 And then it works again :S
 but its an ugly hack


 I`m totally clueless,
 Any idea what this can be?

 Thanx a lot!

 Wouter




 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com