Hi,

I have found a bug in the VideoPlayerClass regarding metadata, that can be
provoked when using several video players (about 6) on the same page, and
then like every 8 refresh or so, the data will disappear in one or several
players.

Here is some information about how i solved it:

The bug appears randomly when there are lots of players in one page (i used
FLVPlayback).
VideoPlayer width-property has a getter/setter method. Sometimes, this
returns undefined.
Actually, the getter looks at some other variable behind the scenes.
This variable might not have been properly set. Probably because of CPU,
Flashplayer or server -load?

What you have to do then is to explicitly "get" the value from
videoWindow.preferredWidth. You dont want to use the value, just ask for it.
The class will see its undefined, and the getter-method will find and
explicitly set the value to the correct value for the OTHER variable, that
we call in with "this.videoWindow.height".

var dummy = (this.videoWindow.preferredWidth +
this.videoWindow.preferredHeight)
After that my setSize() will do its trick like its supposed to:

setSize(this.videoWindow.width , this.videoWindow.height)


For more information, please search for my other posts on the subject of
repositioning, events, statechanges etc regarding FLVPlayback component (and
videoplayer class).
(also, check the getter/setter methods of these parameters in the
source-code for these classes in your flash installation directory)

I really would like to see the metadata be the first info received when
loading an FLV file, and for it to be stable!

I hope this helps,

/Jonas Magnusson
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to