RE: [Flashcoders] flv stop loading / close netconnection
sorry, my emails always seem to lose returns somehow! very annoying. Essentially how do i stop a progressively downloading flv from continuing to download? All help greatly appreciated, David > From: davehunte...@hotmail.com > To: flashcoders@chattyfig.figleaf.com > Date: Mon, 22 Mar 2010 17:34:20 + > Subject: [Flashcoders] flv stop loading / close netconnection > > > Hi list, . Reallly hoping for some help on this.. Making a portfolio site > that handles both images and video. I have an flv instance and a sprite that > contains loaded images. Images and videos work fine. The problem is if I try > to go to an image half way through a video downloading. in that situation i > jump to the image and once the video has finished downloading it suddenly > appears. Going from video to video (halfway through a download) is fine as > the source is being overwritten each time but when it comes to an image I > need to use myFLV.getVideoPlayer(0).close() to stop the download. That works > ok except if I try to go back to the same video which download I terminated > then it says "Error: Cannot call reconnect on an http connection" . I cannot > set the source to be "" or null either or it pulls an error. . Can anyone > give me any help on stopping an FLV from loading once you have set the source > and then being able to restart that download? . Thanks in advance, > David > _ > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us > now > http://clk.atdmt.com/UKM/go/195013117/direct/01/___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Tell us your greatest, weirdest and funniest Hotmail stories http://clk.atdmt.com/UKM/go/195013117/direct/01/___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flv stop loading / close netconnection
>I need to use myFLV.getVideoPlayer(0).close() to stop the download Try myFLV.closeVideoPlayer() _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter Sent: Monday, March 22, 2010 12:34 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] flv stop loading / close netconnection Hi list, . Reallly hoping for some help on this.. Making a portfolio site that handles both images and video. I have an flv instance and a sprite that contains loaded images. Images and videos work fine. The problem is if I try to go to an image half way through a video downloading. in that situation i jump to the image and once the video has finished downloading it suddenly appears. Going from video to video (halfway through a download) is fine as the source is being overwritten each time but when it comes to an image I need to use myFLV.getVideoPlayer(0).close() to stop the download. That works ok except if I try to go back to the same video which download I terminated then it says "Error: Cannot call reconnect on an http connection" . I cannot set the source to be "" or null either or it pulls an error. . Can anyone give me any help on stopping an FLV from loading once you have set the source and then being able to restart that download? . Thanks in advance, David _ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/___ 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] flv stop loading / close netconnection
I had a kind of problem like that and the solution was; myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close(); HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, Erik (MIN - WSW) Sent: maandag 22 maart 2010 21:32 To: Flash Coders List Subject: RE: [Flashcoders] flv stop loading / close netconnection >I need to use myFLV.getVideoPlayer(0).close() to stop the download Try myFLV.closeVideoPlayer() _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter Sent: Monday, March 22, 2010 12:34 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] flv stop loading / close netconnection Hi list, . Reallly hoping for some help on this.. Making a portfolio site that handles both images and video. I have an flv instance and a sprite that contains loaded images. Images and videos work fine. The problem is if I try to go to an image half way through a video downloading. in that situation i jump to the image and once the video has finished downloading it suddenly appears. Going from video to video (halfway through a download) is fine as the source is being overwritten each time but when it comes to an image I need to use myFLV.getVideoPlayer(0).close() to stop the download. That works ok except if I try to go back to the same video which download I terminated then it says "Error: Cannot call reconnect on an http connection" . I cannot set the source to be "" or null either or it pulls an error. . Can anyone give me any help on stopping an FLV from loading once you have set the source and then being able to restart that download? . Thanks in advance, David _ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/ ___ 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 Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.791 / Virusdatabase: 271.1.1/2763 - datum van uitgifte: 03/22/10 08:33:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flv stop loading / close netconnection
Thanks for responding Erik. Unfortunately I can't use closeVideoPlayer() as it shuts the default player which isn't allowed. On a side note I can't find anything in the docs on adding new instances of VideoPlayer Class to an FLV even though there is plenty of talk of getting different VideoPlayer classes stacked inside an FLVPlayback instance (eg. myFLVPlayback.getVideoPlayer() or myFLVPlayback.visibleVideoPlayerIndex ) . Any ideas? I have temporarily solved the problem with the nastiest workaround ever by passing "#" as the source. Seems to work for some reason but I'm sure it will come back and bite me. In the end I may have to make a new instance of FLVPlayback for each video and kill the old instance. Thanks, David > From: ematth...@webershandwick.com > To: flashcoders@chattyfig.figleaf.com > Date: Mon, 22 Mar 2010 15:31:52 -0500 > Subject: RE: [Flashcoders] flv stop loading / close netconnection > > >I need to use myFLV.getVideoPlayer(0).close() to stop the download > > Try myFLV.closeVideoPlayer() > > _ _ _ > Erik Mattheis > Senior Web Developer > Minneapolis > T 952 346 6610 > C 612 377 2272 > > Weber Shandwick > Advocacy starts here. > > PRWeek Global Agency Report Card 2009 - Gold Medal Winner > The Holmes Report Global Agency of the Year > PR News Agency of the Year > > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter > Sent: Monday, March 22, 2010 12:34 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] flv stop loading / close netconnection > > > Hi list, . Reallly hoping for some help on this.. Making a portfolio site > that handles both images and video. I have an flv instance and a sprite that > contains loaded images. Images and videos work fine. The problem is if I try > to go to an image half way through a video downloading. in that situation i > jump to the image and once the video has finished downloading it suddenly > appears. Going from video to video (halfway through a download) is fine as > the source is being overwritten each time but when it comes to an image I > need to use myFLV.getVideoPlayer(0).close() to stop the download. That works > ok except if I try to go back to the same video which download I terminated > then it says "Error: Cannot call reconnect on an http connection" . I cannot > set the source to be "" or null either or it pulls an error. . Can anyone > give me any help on stopping an FLV from loading once you have set the source > and then being able to restart that download? . Thanks in advance, > David > _ > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us > now > http://clk.atdmt.com/UKM/go/195013117/direct/01/___ > 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 _ Send us your Hotmail stories and be featured in our newsletter http://clk.atdmt.com/UKM/go/195013117/direct/01/___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flv stop loading / close netconnection
Thanks Cor, I've used that sort of call when stopping an flv from playing when closing a loaded swf. But in this case I need to be able to reconnect the flv again, I'm not disposing of the FLVPlayback. All I want to do is stop the progressive download but this seems difficult to do from an instance of FLVPlayback! Cheers > From: c...@chello.nl > To: flashcoders@chattyfig.figleaf.com > Subject: RE: [Flashcoders] flv stop loading / close netconnection > Date: Mon, 22 Mar 2010 21:35:29 +0100 > > I had a kind of problem like that and the solution was; > > myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close(); > > HTH > Cor > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, > Erik (MIN - WSW) > Sent: maandag 22 maart 2010 21:32 > To: Flash Coders List > Subject: RE: [Flashcoders] flv stop loading / close netconnection > > >I need to use myFLV.getVideoPlayer(0).close() to stop the download > > Try myFLV.closeVideoPlayer() > > _ _ _ > Erik Mattheis > Senior Web Developer > Minneapolis > T 952 346 6610 > C 612 377 2272 > > Weber Shandwick > Advocacy starts here. > > PRWeek Global Agency Report Card 2009 - Gold Medal Winner > The Holmes Report Global Agency of the Year > PR News Agency of the Year > > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter > Sent: Monday, March 22, 2010 12:34 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] flv stop loading / close netconnection > > > Hi list, . Reallly hoping for some help on this.. Making a portfolio > site that handles both images and video. I have an flv instance and a sprite > that contains loaded images. Images and videos work fine. The problem is if > I try to go to an image half way through a video downloading. in that > situation i jump to the image and once the video has finished downloading it > suddenly appears. Going from video to video (halfway through a download) is > fine as the source is being overwritten each time but when it comes to an > image I need to use myFLV.getVideoPlayer(0).close() to stop the download. > That works ok except if I try to go back to the same video which download I > terminated then it says "Error: Cannot call reconnect on an http > connection" . I cannot set the source to be "" or null either or it pulls an > error. . Can anyone give me any help on stopping an FLV from loading once > you have set the source and then being able to restart that download? . > Thanks in advance, > David > _ > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us > now > http://clk.atdmt.com/UKM/go/195013117/direct/01/ > ___ > 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 > Geen virus gevonden in het binnenkomende-bericht. > Gecontroleerd door AVG - www.avg.com > Versie: 9.0.791 / Virusdatabase: 271.1.1/2763 - datum van uitgifte: 03/22/10 > 08:33:00 > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Do you have a story that started on Hotmail? Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flv stop loading / close netconnection
Hi David, I didn't see it was you. :-) In fact it was you who gave me this solution a few days ago The FLVplayback has a reconnected() function. Called by the VideoPlayer object to ask for reconnection after the connection is lost. Once the connection is either successful or failed, call the VideoPlayer.ncReconnected() method. If the connection failed, set nc = null before calling. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter Sent: maandag 22 maart 2010 22:13 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] flv stop loading / close netconnection Thanks Cor, I've used that sort of call when stopping an flv from playing when closing a loaded swf. But in this case I need to be able to reconnect the flv again, I'm not disposing of the FLVPlayback. All I want to do is stop the progressive download but this seems difficult to do from an instance of FLVPlayback! Cheers > From: c...@chello.nl > To: flashcoders@chattyfig.figleaf.com > Subject: RE: [Flashcoders] flv stop loading / close netconnection > Date: Mon, 22 Mar 2010 21:35:29 +0100 > > I had a kind of problem like that and the solution was; > > myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close(); > > HTH > Cor > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, > Erik (MIN - WSW) > Sent: maandag 22 maart 2010 21:32 > To: Flash Coders List > Subject: RE: [Flashcoders] flv stop loading / close netconnection > > >I need to use myFLV.getVideoPlayer(0).close() to stop the download > > Try myFLV.closeVideoPlayer() > > _ _ _ > Erik Mattheis > Senior Web Developer > Minneapolis > T 952 346 6610 > C 612 377 2272 > > Weber Shandwick > Advocacy starts here. > > PRWeek Global Agency Report Card 2009 - Gold Medal Winner > The Holmes Report Global Agency of the Year > PR News Agency of the Year > > > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter > Sent: Monday, March 22, 2010 12:34 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] flv stop loading / close netconnection > > > Hi list, . Reallly hoping for some help on this.. Making a portfolio > site that handles both images and video. I have an flv instance and a sprite > that contains loaded images. Images and videos work fine. The problem is if > I try to go to an image half way through a video downloading. in that > situation i jump to the image and once the video has finished downloading it > suddenly appears. Going from video to video (halfway through a download) is > fine as the source is being overwritten each time but when it comes to an > image I need to use myFLV.getVideoPlayer(0).close() to stop the download. > That works ok except if I try to go back to the same video which download I > terminated then it says "Error: Cannot call reconnect on an http > connection" . I cannot set the source to be "" or null either or it pulls an > error. . Can anyone give me any help on stopping an FLV from loading once > you have set the source and then being able to restart that download? . > Thanks in advance, > David > _ > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us > now > http://clk.atdmt.com/UKM/go/195013117/direct/01/ > ___ > 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 > Geen virus gevonden in het binnenkomende-bericht. > Gecontroleerd door AVG - www.avg.com > Versie: 9.0.791 / Virusdatabase: 271.1.1/2763 - datum van uitgifte: 03/22/10 > 08:33:00 > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Do you have a story that started on Hotmail? Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flash
Re: [Flashcoders] flv stop loading / close netconnection
Hi David when you .close() the connection to the netstream object/video it stops the download and you lose the connection. I would also remove it from the displaylist. If you then want to go back to that same video after using .close() then you have to make a new connection to the video. So reload the videoplayer basically. Depending on the users browser it may continue to download the progressive video from the browser cache. If you have safari browser try looking at the activity window in the windows drop down menu. It should show you whats being downloaded on the page. Andy Andrew Kenward a...@milkybrain.co.uk www.milkybrain.co.uk 07590 609 554 On 22 Mar 2010, at 19:59, flashcoders-requ...@chattyfig.figleaf.com wrote: > [Flashcoders] flv stop loading / close netconnection ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flv stop loading / close netconnection
My experience is that you can't close the default vp (video player) in an FLVPlayback instance, so you *never* use it. What were they thinking?! Before you load a video, you set the vp index to whatever you want, just not zero! myflv.activeVideoPlayerIndex = 1 myflv.source ="hippo.flv" Then when you're done... myflv.closeVideoPlayer(1); When working with active indexes, i find this page incredibly useful to find out what FLVPlayback properties are affected by activeVideoPlayerIndex... http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html#activeVideoPlayerIndex On your side note ("I can't find anything in the docs on adding new instances of VideoPlayer Class"), you don't have to do anything to "add a new instance", all you do is set the flvplayback's activeVideoPlayerIndex to a new number, and it's ready to load a new vid. If you want to see that new vid, set the visibleVideoPlayerIndex to the same number. cheers chichilatte On 23 March 2010 09:13, Andrew Kenward wrote: > Hi David > > when you .close() the connection to the netstream object/video it stops the > download and you lose the connection. I would also remove it from the > displaylist. If you then want to go back to that same video after using > .close() then you have to make a new connection to the video. So reload the > videoplayer basically. Depending on the users browser it may continue to > download the progressive video from the browser cache. If you have safari > browser try looking at the activity window in the windows drop down menu. It > should show you whats being downloaded on the page. > > Andy > > Andrew Kenward > a...@milkybrain.co.uk > www.milkybrain.co.uk > 07590 609 554 > > On 22 Mar 2010, at 19:59, flashcoders-requ...@chattyfig.figleaf.com wrote: > > > [Flashcoders] flv stop loading / close netconnection > > > ___ > 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] flv stop loading / close netconnection
Thanks for that clarification! Didn't realise that activeVideoPlayerIndex was a property you could set. Cheers > From: chichila...@gmail.com > Date: Wed, 24 Mar 2010 13:25:14 + > Subject: Re: [Flashcoders] flv stop loading / close netconnection > To: flashcoders@chattyfig.figleaf.com > > My experience is that you can't close the default vp (video player) in an > FLVPlayback instance, so you *never* use it. What were they thinking?! > > Before you load a video, you set the vp index to whatever you want, just not > zero! > > myflv.activeVideoPlayerIndex = 1 > myflv.source ="hippo.flv" > > Then when you're done... > myflv.closeVideoPlayer(1); > > When working with active indexes, i find this page incredibly useful to find > out what FLVPlayback properties are affected by activeVideoPlayerIndex... > http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html#activeVideoPlayerIndex > > > On your side note ("I can't find anything in the docs on adding new > instances of VideoPlayer Class"), you don't have to do anything to "add a > new instance", all you do is set the flvplayback's activeVideoPlayerIndex to > a new number, and it's ready to load a new vid. If you want to see that new > vid, set the visibleVideoPlayerIndex to the same number. > > cheers > > chichilatte > > On 23 March 2010 09:13, Andrew Kenward wrote: > > > Hi David > > > > when you .close() the connection to the netstream object/video it stops the > > download and you lose the connection. I would also remove it from the > > displaylist. If you then want to go back to that same video after using > > .close() then you have to make a new connection to the video. So reload the > > videoplayer basically. Depending on the users browser it may continue to > > download the progressive video from the browser cache. If you have safari > > browser try looking at the activity window in the windows drop down menu. It > > should show you whats being downloaded on the page. > > > > Andy > > > > Andrew Kenward > > a...@milkybrain.co.uk > > www.milkybrain.co.uk > > 07590 609 554 > > > > On 22 Mar 2010, at 19:59, flashcoders-requ...@chattyfig.figleaf.com wrote: > > > > > [Flashcoders] flv stop loading / close netconnection > > > > > > ___ > > 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 _ Tell us your greatest, weirdest and funniest Hotmail stories http://clk.atdmt.com/UKM/go/195013117/direct/01/___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders