hey guys

i usually use a Video class with a netstream object to show video but i've
been trying to implement the (supposedly) simpler flvplayback component
because of the extra functionality that it provides (like variable streams
and metadata cuepoints in f4vs)

however

i'm trying to add a standard seekbar component and it just doesn't seem to
be working - it's appearing and the video and all other controls are working
but with no handle and no seekbar updates - i have the feeling that i'm
missing something obvious but i can't see what it is and Google is not my
friend right now - could you take a look at what i'm doing please?

here is my implementation:

_videoPlayer = new FLVPlayback();
 _video = getVideo(_videoPlayer.activeVideoPlayerIndex);
_video.smoothing = true;
 _videoPlayer.width = _mediaWidth;
_videoPlayer.height = _mediaHeight - CONTROLS_HEIGHT;
_videoPlayer.autoRewind = true;
_videoPlayer.bufferTime = 2;
_videoPlayer.source = Config.flashvars.myRoot + XML(_listData)....@src;
addChild(_videoPlayer);
 // navigation
_sprNavigation = new Sprite();
_sprNavigation.y = _videoPlayer.height;
addChild(_sprNavigation);
 var playPauseBtn:MovieClip = new PlayPauseButton();
playPauseBtn.y = CONTROLS_PAD;
_sprNavigation.addChild(playPauseBtn);
 var fullscreenBtn:MovieClip = new FullScreenButton();
fullscreenBtn.y = CONTROLS_PAD;
fullscreenBtn.x = _mediaWidth - fullscreenBtn.width;
_sprNavigation.addChild(fullscreenBtn);
 var seekBar:MovieClip = new SeekBar();
seekBar.x = playPauseBtn.x + playPauseBtn.width + CONTROLS_SPACING;
seekBar.y = playPauseBtn.y + playPauseBtn.height / 2 - seekBar.height / 2;
_sprNavigation.addChild(seekBar);
 _videoPlayer.playPauseButton = playPauseBtn;
_videoPlayer.seekBar = seekBar;
_videoPlayer.fullScreenButton = fullscreenBtn;

i'm about to give up and roll my own but that's not really the point of
using the build-in components (it is, however, one of the reasons i never
use the stock components)

thanks guys
a
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to