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?
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.
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.
I have the same problem - what is the function you wrote?
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?
I called tech support and they're working on it. I'll let you know as soon as I hear.
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!
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?
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?
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?
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.
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.
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
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.
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.
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
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.
yes i did use the bug report link. hopefully this will get solved. i'll keep everyone posted on revelations or myracles.
[quoted text, click to view] "Rothrock" <webforumsuser@macromedia.com> wrote in message news:<cnfrnj$5hv$1@forums.macromedia.com>... > 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.
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
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
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!
how do you use the setTimer?
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!
Don't see what you're looking for? Try a search.
|