Re: [Flashcoders] as3 flvPlayback seekbar
hey i'm just about to implement another one of these (i used a skin for that last project in the end) so i'll no doubt come across the same issue again - i'll be able to better test the events then a On 17 June 2010 18:45, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: hey bob i've tried using the seekbar component as is and it didn't work i've tried using a stock skin (by passing the url into flvplayback.skin) and that works so i'm thinking i've done something wrong (or not done something i should have) i'm using cs4 to compile the swc for the flvplayback so whichever version ships with that best a On 17 June 2010 17:53, Bob Wohl bob.w...@gmail.com wrote: What version is the FLVPlayback? Have you tried using a simple skin to see if that works as expected? On Thu, Jun 17, 2010 at 9:42 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] as3 flvPlayback seekbar
I have used the build-in FLVPlayback component, but after a 32 video played, I used all sound channels and the sound doesn't stop properly when I removeChild(myFLVplayback); Of course this is my mistake of bad coding, but I thought I let you know... -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of allandt bik-elliott (thefieldcomic.com) Sent: donderdag 17 juni 2010 18:42 To: Flash Coders List Subject: [Flashcoders] as3 flvPlayback seekbar 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 Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.829 / Virusdatabase: 271.1.1/2939 - datum van uitgifte: 06/15/10 08:35:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 flvPlayback seekbar
What version is the FLVPlayback? Have you tried using a simple skin to see if that works as expected? On Thu, Jun 17, 2010 at 9:42 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 flvPlayback seekbar
hey bob i've tried using the seekbar component as is and it didn't work i've tried using a stock skin (by passing the url into flvplayback.skin) and that works so i'm thinking i've done something wrong (or not done something i should have) i'm using cs4 to compile the swc for the flvplayback so whichever version ships with that best a On 17 June 2010 17:53, Bob Wohl bob.w...@gmail.com wrote: What version is the FLVPlayback? Have you tried using a simple skin to see if that works as expected? On Thu, Jun 17, 2010 at 9:42 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 flvPlayback seekbar
Gotcha. Sounds like you're missing a step some where. Though looking at your code it looks like you've followed the documentation pretty well. Can you get any events from the seekBar component? On Thu, Jun 17, 2010 at 10:45 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: hey bob i've tried using the seekbar component as is and it didn't work i've tried using a stock skin (by passing the url into flvplayback.skin) and that works so i'm thinking i've done something wrong (or not done something i should have) i'm using cs4 to compile the swc for the flvplayback so whichever version ships with that best a On 17 June 2010 17:53, Bob Wohl bob.w...@gmail.com wrote: What version is the FLVPlayback? Have you tried using a simple skin to see if that works as expected? On Thu, Jun 17, 2010 at 9:42 AM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders