all groups > flash (macromedia) > november 2007 >
You're in the

flash (macromedia)

group:

how to stop streaming/downloading flv


how to stop streaming/downloading flv visitor13
7/19/2004 12:25:22 PM
flash (macromedia):
I have a separate fla with a media component only linking to the external flv
that I publish as a "video.swf". This in turns gets loaded into a target when
the button on the main stage is clicked. The problem is the video doesn't shut
up when other buttons are clicked and content on the stage changes even though
I'm unloading the target. I tried stopAllSounds but it didn't work. What the?
Re: how to stop streaming/downloading flv lem
7/27/2004 1:07:12 PM
Hello,
I've got the same problem... and I used the following script : my_mediadisplay.stop();
my_mediadisplay is the occurence name of the mediadisplay.

Re: how to stop streaming/downloading flv visitor13
7/27/2004 2:25:40 PM
Since my last post I experimented a little and it turned out stopAllSounds();
attached to a button reloading a target mc takes care of a problem. Initially I
had that script attached to a frame on a main timeline and that wasn't working.
Your solutions might be a better one though since it adrresses specific
instance.
Re: how to stop streaming/downloading flv Carl_Desmond
10/2/2004 9:00:37 PM
Re: how to stop streaming/downloading flv sfbaygrrrl
10/18/2004 6:02:14 PM
I have the same problem -
what is the function you wrote?

Re: how to stop streaming/downloading flv jeff_f
10/20/2004 5:39:04 PM
I am using the .stop method on the media components. The media does stop
playing in the browser, however it does not stop downloading (you can confirm
this by looking at the activity window in the browser). If someone clicks
several videos in a row, they all try to download simultaneously, and nothing
works very well. Anyone know how to stop it from downloading?
Re: how to stop streaming/downloading flv sfbaygrrrl
10/20/2004 5:50:33 PM
I called tech support and they're working on it.
I'll let you know as soon as I hear.
Re: how to stop streaming/downloading flv jeff_f
10/27/2004 4:42:30 PM
Re: how to stop streaming/downloading flv sfbaygrrrl
10/27/2004 7:33:22 PM
Yes, they did and it works!
Put the following script on any frame you want to stop the .flv from
downloading:

_root.mediacomponentinstance.setMedia("", "FLV");

with mediacomponent instance = the instance name of the media component.

Good Luck!

Re: how to stop streaming/downloading flv rezstudios
11/10/2004 11:33:44 AM
That still doesn't work. It only unloads the playing FLV, but it does not
discontinue the download. I am running MenuMeters and can see the data-stream
downloading as the FLV plays. 'setMedia' does not stop the file from
downloading. This has become a huge headache since people will likely click on
multiple FLVs (or the same one multiple times) if the server doesn't
immediately start sending them the file--- or if they decide to preview other
FLVs before the previous ones finish. This will cause complete bandwidth
congestion and cause the site to become completely unresponsive. The only way I
have found to actually stop the download stream is to close the window... which
is not a solution. Any other suggestions?
Re: how to stop streaming/downloading flv JohnJ
11/10/2004 5:11:34 PM
Same dilemma, I have 10 different videos. First three work great anything past
that they load slowly or don't load at all. It's gotta be your idea that the
flv's are still loading. When running on local machine no problem. So how do
you stop flv's from loading?
Re: how to stop streaming/downloading flv Rothrock
11/10/2004 5:40:19 PM
Re: how to stop streaming/downloading flv Rothrock
11/11/2004 2:37:46 PM
Looks like you can't stop a swf from loading either. Interesting that this was
also a problem under early versions of Player 6 and supposedly was fixed in the
first half of 2002! What version of the player are you using? Which platform?
Which browser?
Re: how to stop streaming/downloading flv Rothrock
11/13/2004 3:33:18 PM
Re: how to stop streaming/downloading flv JohnJ
11/17/2004 5:13:21 AM
Here is what I have found works. I am using 2004 Pro and the project is using
screens. On the screen that has the video component I have put the code. on
(hide) { this.mediacomponentname.setMedia('', 'FLV'); } As sugessted in an
earlier post removing the path. Just tried it out and it works great. Have
watched it and the progress of the download stops then when I come back to the
screen it picks up the download were it left off. Just a note I do dynamically
load the flv versus hardcoding it in the component inspector. That might be
the trick to getting the path to unload.
Re: how to stop streaming/downloading flv Rothrock
11/17/2004 2:07:35 PM
It doesn't work for me. I'm not using screens however. But when I try this, it
does stop the playback, sound, and clear the mediaDisplay. But if I check the
activity viewer for my browser the file is still downloading. Now I'm not using
a packet sniffer or anything to confirm that the file is still actually coming
in, but I think it probably is.
Re: how to stop streaming/downloading flv twodotone
11/17/2004 3:40:28 PM
this is a major issue of flash player. of course (who knows why) this problem
doesn't occurr when using flashcom. i got to tell you more... it also happens
with mp3 streaming from file (not flashcom). macromedia should fix this as soon
as possible, and make tests on Mac safari in order to have an activity window
open and see what happens. it's already 5 days i'm trying to solve this, but
nothing works. if you go back and forth from one video to another more than4
times, the pipeline gets stuck with data. the only solution might be exporting
a video as frame sequence and use the audio on a separate layer as stream. but
this flv refuses to work. it's a bad, bad day ciao.ubi
Re: how to stop streaming/downloading flv Rothrock
11/17/2004 3:45:55 PM
The same problem happens with swf files as well. So if you were trying to use
loadMovie or such to load a large swf file you would have the same problem.
This was a known error under Flash 6 and they fixed it fairly quickly with the
release of a new player. But evidently it is back for 7! So if you haven't,
please send a report at the link above.
Re: how to stop streaming/downloading flv JohnJ
11/17/2004 11:30:56 PM
Yet to try it but loading a swf into say level 50 then loading another swf into
level 50, it does not trash the old one? I've done alot of projects relying on
the new swf deleting the old swf. But as for a workaround I'd say create the
project in screens. The on (hide) and on (reveal) only work with screens and
forms. They are great because no matter what was clicked to make you leave that
area it invokes that code. Other than that just hope with Macromedia's big
push for video on the web might inspire them to solve this 'issue' or all
their advertising will be a waste.
Re: how to stop streaming/downloading flv twodotone
11/18/2004 10:38:34 AM
guys. this happens on every kind of stream. mp3, flv, swf's containing flv's
(video only or video+audio), swf's containing audio set as 'stream'. after
noticing that even importing the flv or quicktime (directly) into flash and
re-exporting, the issue still stays, i decided to try the old way. i rendered
the quicktime as a frame sequence, import the sequence into flash, putting the
mp3 on another layer, exporting as swf. to sync video with audio, and allow the
video to stream, you need to set the sound as 'stream'. it's the only way.
well... i thought this was solving everything. can you imagine how boring is it
when you see it's the same? please, MM, we pay loads of money for your
products, fix this MAJOR issue. thanx ciao.ubi
Re: how to stop streaming/downloading flv Rothrock
11/18/2004 12:31:52 PM
twodotone have you used the link listed above to report this to MM? While their
people do sometimes stroll through the forums, they don't read everything. My
guess is that if enough people report this through the regular channels, the
sooner it will get fixed.
Re: how to stop streaming/downloading flv twodotone
11/18/2004 7:07:04 PM
yes i did use the bug report link.
hopefully this will get solved.
i'll keep everyone posted on revelations or myracles.

Re: how to stop streaming/downloading flv coakleytom NO[at]SPAM hotmail.com
12/1/2004 4:59:23 PM
[quoted text, click to view]


Thanks for all the info guys...I wasted about 4 hours attempting the
impossible. Not too uncommon in flash. I do not see the bug report
link above. Possibly because I am coming in through google. Could
you post that again and I will report it as well?

Thanks
-Tom Coakley
Re: how to stop streaming/downloading flv kflo
12/2/2004 12:32:28 AM
Setting the mediaDisplay URL to a blank value with setMedia() or stopping it
with stop() do not stop the download for me either. This is compounded for my
application where loading a new FLV into a mediaComponent appears to retain the
previously loaded FLVs playheadTime immediately. My app uses a sequence of FLV
URLs and their respective cuePoint lists loaded from XML. So, by not
'resetting' playheadTime, my cuePoint events get hit right away. And here's
one more: if you jump backwards in an FLV w/ cuePoints, it will hit all of them
on the way (and trigger any code that you have set up); so you have trap w/
your own code to act accordingly. I've sent all of these 'bugs' w/ more
description to Macromedia bug list. - KF
Re: how to stop streaming/downloading flv kflo
12/11/2004 5:04:48 AM
Update: I got a reply from Macromedia Tech support. Summary: 1) CuePoints
hit moving backwards in an FLV: this should be 'fixed' in next release 2) FLV
playheadTime doesn't reset 'immediately' when loading new FLV: MM suggested
mediaDisplay.stop(); and mediaDisplay.setMedia('','FLV'); neither of which work
'immediately; my workaround was to use setTimer to wait for a buffer of video
to load (5%); which allowed the media to 'rewind' before my scripts continue
3) FLVs/MP3s/SWFs keep loading if not fully loaded and you switch to different
contentPath: MM says that this is only in Safari -- Well, the good thing is
despite me developing my app on Mac, Windows playback is all that matters to my
client. I was at least grateful for the Macromedia response!
Re: how to stop streaming/downloading flv keishter
12/31/2004 12:00:32 AM
how do you use the setTimer?
Re: how to stop streaming/downloading flv kflo
12/31/2004 12:17:58 AM
Oops, I actually meant to say that I used 'setInterval()' not 'setTimer'.
After setting the media content, make a function call to set an Interval timer.
Here is a stripped down version of what I used: function setIntervalTimer() {
timerID = setInterval(checkMediaBuffer, 1000); } function checkMediaBuffer() {
loadDecimalPercent = myVideo.bytesLoaded/myVideo.bytesTotal; mediaLoadPercent
= Math.round(loadDecimalPercent*100); mediaBufferStatus_mc.pBar_mc._width =
loadDecimalPercent*20*150; mediaBufferStatus_mc.bufferStatus_txt.text =
mediaLoadPercent+'%'; // trace('videoLoadPercent: '+videoLoadPercent); if
(mediaLoadPercent>5) { // trace('clearing timerID: '+timerID); // Do what
you want here! } } Good Luck!
RE: how to stop streaming/downloading flv nino78
11/27/2007 2:45:35 PM
i dont know what to say i have the same problem but i dont have any ideas so im traying to fallow whats going on but if any one have idea about this please be pacific how to acsses to the computer and how to get to do things and i thank you

From http://www.developmentnow.com/g/68_2004_7_0_0_322751/how-to-stop-streamingdownloading-flv.htm

Posted via DevelopmentNow.com Groups
AddThis Social Bookmark Button