It appears that the VideoEvent class is no longer supported in Air 2.5 or Flash Player 10.2
We have to use a new class called StageVideo.
If anyone finds some sample code to use StageVideo please post here.
stagevideo is a class used to allow hardware acceleration of video. but it has particular restrictions (like it's not in the display list and will appear below everything in the display list).
the older video classes have not been removed. and, in particular, stagevideo is not a substitute for a previous video class.
the videoevent class has been changed. if you don't need to use stagevideo or any of the 10.2 updates, publish for fp10 so you can use your code.
My original question has not been resolved.
the CS5.5 gives compiler errors when I use VideoEvent class
Here is some code to test:
if (VideoState.CONNECTION_ERROR == e.state) trace(e.state);
if (e.state=="seeking") trace(e.state);
Get the video flv component from the components panel and drag it on the stage and delete it. Then publish it once.
An older thread but if you want to solve this and not really need Player 10.2 - just publish back on Flash player 9 and it will work again
this bug will be solved if you type the original string value of the actual event instead of the original
- FlvPlayBack.addEventListener(VideoEvent.PLAYHEAD_UPDATE , updateProgress);
- FlvPlayBack.addEventListener('playheadUpdate' , updateProgress)
one could also use following ( works in FP 11.2 and probably in air2.5+ ):
flvPlayback.addEventListener( fl.video.VideoEvent.PLAYHEAD_UPDATE, videoEventHandler, false, 0, true);
function videoEventHandler( v:fl.video.VideoEvent ):void
switch ( v.type )
trace ( v.playheadTime );
Its probably conflicting with flash.events.VideoEvent.