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 that....cause 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] Straaaaaaaange 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=00001893.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] Straaaaaaaange 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 sequentially....like 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

Reply via email to