Flushing Cached/Stored Streams
Hi, I have a setup where I have 2 FMS, configured in Edge - OriginConfiguration. I have all the applications on the Origin Server. I havethe edge server configured to route all the requests coming to it tothe Origin server and cache the media in a directory. When I play the video from a client requesting the Edge server, it isfetching the video from the origin FMS and saving the media locally inthe cache directory.The problem occurs when I want to remove or update the media on theOrigin server. i have a script which removes or incase of update put anew file on the origin server and also clean the cache directory forthe said file. The issue is the file is accessed by large number ofclients and is stored in the buffer of the media server and its stillshowing me the same file in the FMS console under streams that the fileis chached and its size. The users can still see the same file which Ihave removed.Could you please suggest a solution for this problem.Thanks.
Adobe > Flash Media Server
Posted on: 12/19/2006 11:20:47 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flushing Variables, Please Help. Thank You.
In a movie I call a variable, TextOne, from a text file. I have an input text field that allows you to change TextOne. Using ASP, the changed information changes the text file where the Variable is stored. On Mac, when I recall the variable, it changes the text. On a PC, TextOne is changed in the text file (the ASP works fine), but the variable doesn't change in the Flash movie. I know why, because it's stored in the cache of the browser. So on a PC you iether have to empty the cache or restart the browser for it to work.
Would you know of a way to flush the browsers memory using FSCommand and javascript, or is there another way I can recall the variable so it successfully changes.
For info: When you press on the Change button, I have 3 frames that loop until the ASP sends a variable that says the change has been successful, in that case I have a loadVariables frame, then it goes back to the original frame to show the changes.
Once again on Mac this works fine. On IE 6 in win 2000, it doesn't. It doesn't work on IE 5.5 iether.
Thanks for any help.
TD
Flushing A MovieClip
Quick flash question.
I'm usin the normal tell target script to control a movie clips behaviour on the main timeline. The action is contained in a button within a movieclip.
That's easy - problem is I want to flush the previous movieclip from the main timeline. You can see this in the swf. The infobox for 1948 will load but the previous infobox for 1946 is still there. And this will continue to happen with all further movieclips unless I can implement a function to flush all other movieclips except for the one I've just called from its relevant button.
removeMovieclip doesn't seem to work or maybe I'm usin the wrong parameters - any ideas?
http://www.punchbear.com/content_area.fla
http://www.punchbear.com/content_area.swf
Reloading/flushing Variables
Hello,
I am wondering how one would flush variables in a movie. I have a scene where I import data, set them into variables and then display them in dynamic text. I then have a button that changes it to a different set of import data. So I am trying to have the output text seamlessly change its values with the click of a button.
I can get it to work if i separate out the frames. Meaning I have frame 1 load the variable, and frame two display the data. The button loads frame 1 with a different value and then frame 2 picks up the new value again. The problem is that when I click the button, there is that 1 frame gap where the text field isn't displayed. Is there a way to do this in code?
If I can elaborate more or clarify more, please don't hesitate to ask. Thank you for your time.
Steve
Am I Flushing At The Correct Place?
Hello,
I have searched the boards and haven't found the exact help I need, so I'm hoping this group can help.
I have an input text field that a user will put information into that needs to be called later on in another swf that they will eventually navigate to. I'm apending the input info to the end of a url. I'm using shared objects to accomplish this. Unfortunately it doesn't pass the SO the first time I run this. But, the second time I run the movie it works perfectly. Could this be a problem with flushing? Is there a certain time you should flush? I've tried putting in the normal code, and I've also tried attaching it to a button and neithr will get the movie to work on the first time. I'm using MX04 if that makes a difference.
Thanks,
Starley
Flushing XML Data From Object
Actionscript 2.0 in Flash CS3
I downloaded a simple xml based photo gallery, but I want to categorize the content. Basically the data gets pushed into the object, and when i click a new category button I want it to begin showing the photos only in that category (which is a separate XML file).
The problem I am having is that when i click a new category it doesn't replace the XML data of the object, it appends to it. So it continues to show the original category and then shows the new category after it gets done and then eventually goes back to the original. For example, it starts playing CatOne01.jpg from CatOne.xml, CatOne02, 03 - 10... etc... at the end it goes back to CatOne01
If you click on category 2, it loads CatTwo.xml (I watched it all load up in firebug)and it finishes playing through CatOne CatOne10.jpg and then plays CatTwo01.jpg-CatTwo10.jpg and goes back to CatOne01. I need to find a way to clear out the data before it pushes the new data from the new XML file. I tried flush (as shown below) and nothing changes, i tried delete XML, and that just makes it go blank onclick. All I need is for the values from the first xml to be flushed out before the new values are pushed in each time the user clicks the category buttons, and the new category's images immediately begin playing.
Any suggestions?
Code:
on (release) {
gotoAndStop(1);
_root.techtype.flush();
_root.caps.flush();
_root.photos.flush();
var feed:XML = new XML();
feed.ignoreWhite = true;
feed.onLoad = function(){
var nodes:Array = this.firstChild.childNodes;
for(var i=0;i<nodes.length;i++)
{
_root.techtype.push(nodes[i].attributes.id);
_root.caps.push(nodes[i].attributes.desc);
_root.photos.push(nodes[i].attributes.url);
}
_root.mcl.loadClip(photos[0], _root.gallery.photo);
_root.textBar.t.text = caps[0];
_root.buttons.gotoAndStop(techtype[0]);
}
feed.load("images/CatOne.xml");
}
and
Code:
var photos:Array = new Array();
var caps:Array = new Array();
var techtype:Array = new Array();
var current:Number = 0;
this.createEmptyMovieClip("gallery", -99999);
this.gallery.createEmptyMovieClip("bmdc", 1);
this.gallery.createEmptyMovieClip("photo", 2);
var bmd:BitmapData = new BitmapData(500, 375,true,0x000000);
this.gallery.bmdc.createEmptyMovieClip("preload", 1);
this.gallery.bmdc.attachBitmap(bmd, 2);
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadComplete = Delegate.create(this, tranny);
mcl.addListener(mclL);
function loadPhoto():Void
{
trace("loading photo...");
bmd.draw(this.gallery.photo);
this.gallery.photo._alpha = 0;
if(current == photos.length-1) current = 0;
else current++;
textbar._rotation = rr;
textBar.t.text = caps[current];
mcl.loadClip(photos[current], this.gallery.photo);
_root.buttons.gotoAndStop(techtype[current]);
}
function preload():Void
{
if(current == photos.length-1) var num = 0;
else var num = current+1;
this.gallery.bmdc.preload.loadMovie(photos[num]);
}
function tranny():Void
{
trace("starting transition...");
var f:Fuse = new Fuse();
f.push([{target:this.gallery.photo, alpha:100, time:4},
{target:textBar, delay:0.5, start_x:-518, x:cx, time:0.5, ease:"easeOutExpo"},
{target:textBar.arrow, x:ca, time:0.5, ease:"easeOutQuad", delay:0.5}]);
f.push({func:preload, scope:this});
f.push({target:textBar,delay:5, x:-518, time:1, ease:"easeOutExpo", func:loadPhoto, scope:this});
f.start();
}
function cx():Number
{
var te:Number = textBar.t.textWidth;
var nx:Number = -518 + te + 60;
return nx;
}
function ca():Number
{
return textBar.t._x - cx()+27;
}
function rr():Number
{
if(Math.random() < 0.5) return Math.round(Math.random()*15);
else return Math.round(-Math.random()*15);
}
Flushing A Script When Changing Scenes
I have used a script to produce a looping effect for a static image. The animation is triggered by a mouseover so as you approach one side or the other the image moves that way...stops when the mouse is in the middle of the screen. The script automatically duplicates the image on the right or left side depending on where the mouse is positioned. The problem is when I go to another scene the duplicating effect seems to hang on and doesn't get flushed by changing scenes. I have tried unload movie and whole lot of other things to try and get rid of the issue when switching scenes but nothing seems to work...any help would be appreciated.
How To Disable Flushing SharedObject On Close?
Hi all!!
My prob is very simple..
How to disable flushing SharedObject on winodow close??
I wrote a little app and i want to flush my SO only at some button event...
but.. everytime i close the swf, flash automatically flush my SO.. i dont want it!!
please.. someone..
10x!
Xml Gets Cached I Think
I have created a .swf and in it contains a slideshow extention component called xml flash slideshow v3
Here is the url
http://therain.ca/mockupv2
the problem seems to be that when you click on another button on the site and then return to the gallery it duplicates. Maybe it takes it from cache as well as reloads the xml but im not sure.
Here is the code that I am using as this has been provided by the company that makes this extension.
// Create init object
var initObj:Object = {};
initObj.fillStage = false;
initObj.forceWidth = 300; // PUT WIDTH HERE
initObj.forceHeight = 300; // PUT HEIGHT HERE
initObj.initXML = unescape("");
initObj.xml = "http://therain.ca/mockupv2/datacomponent.php"; // PUT FULL XML
PATH HERE
initObj.preventCache = true; // IF LOADING FAILS, CHANGE TO FALSE
initObj.disableMultipleXML = false;
// Create the slideshow
createClassObject(com.ui.Slideshow, "slideshow_mc",
getNextHighestDepth(), initObj);
Is there anyway I can get this to stop duplicating that anyone can see.
XML Gets Cached I Think
I have created a .swf and in it contains a slideshow extention component called xml flash slideshow v3
Here is the url
http://therain.ca/mockupv2
the problem seems to be that when you click on another button on the site and then return to the gallery it duplicates. Maybe it takes it from cache as well as reloads the xml but im not sure.
Here is the code that I am using as this has been provided by the company that makes this extension.
// Create init object
var initObj:Object = {};
initObj.fillStage = false;
initObj.forceWidth = 300; // PUT WIDTH HERE
initObj.forceHeight = 300; // PUT HEIGHT HERE
initObj.initXML = unescape("");
initObj.xml = "http://therain.ca/mockupv2/datacomponent.php"; // PUT FULL XML
PATH HERE
initObj.preventCache = true; // IF LOADING FAILS, CHANGE TO FALSE
initObj.disableMultipleXML = false;
// Create the slideshow
createClassObject(com.ui.Slideshow, "slideshow_mc",
getNextHighestDepth(), initObj);
Is there anyway I can get this to stop duplicating that anyone can see.
Cached .swf
I have a .swf in my html page, but if I make changes to the movie and reupload it, the browser caches the old .swf, meaning I need to close all browsers and open them again - can i stop this?
monkey
Where Are The Streams?
Hi,
I'm trying to figure out where the streams are stored on the server. I'm running through the sample app "publishlive" and it seems be to be working, in that I get two videos (one local, one presumably from streaming from the server) going. On the Admin Console, I see that my stream is there. Yet, there is nothing in the #{Root_install}/applications/publishlive/streams/_definst_ folder.
I tried to change ns.publish("liveRecording1", "live") to ns.publish("liveRecording1", "record"), and that ended up throwing an error:
NetConnection.Connect.Success
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Record.NoAccess
at NatureCam/publishCamera()
at NatureCam/onNetStatus()
Everywhere I look it says that the streams should just show up under the applications folder, but it doesn't seem like its workign for me. I'm running on a linux platform.
Any help would be greatly appreciated! Thanks!
Two Streams Into One
hello,
can anyone tell me if this is possible to do?
i have a background video that is played. the user can record with his face with a webcam, which is set as a second video on the background. now i would like to save both, the background and his face into one clip. can this be done and what would be the approach?
many thanks
Cached Flash
I was just wondering where exactly, does a flash (.swf) file get cached when viewing through your browser.
Thank you,
Mike
Cached SWF Files
Hi All,
I'm loading an external SWF file in the background while the user is viewing a page. This cuts down on the preloading that I have set up for all the external SWF files. This approach seems to work well, except when the background loading SWF file contains sound. The sounds from the external SWF will play while the user is on a different page. I tried using a StopAllSounds command, but this doesn't work anymore after the SWF is in cache and the page is refreshed. Is there any way to turn sounds off while the external SWF is being loaded? Perhaps an if/else script with the ifFrameLoaded command. My actionscripting isn't that great. Any help would be appreciated.
-devoe
Cached XML Files...HELP
I know about adding a random variable at the end of a URL string to make sure that it's loading the file for the first time...everytime, but it doesn't seem to work with XML files. What gives? It's it the same thing?
Here's what I've been using:
mailinglist.new XML();
mailinglist.load("mailinglist3.xml?zz="+int(Math.r andom*100000));
Any ideas? PLEASE!!!
Loadmovie - Jpg's - Cached?
Can I load a bunch of jpg's into any mc (like an invisible one on stage) and then later load one of these into a different mc and the jpg will already be cached and not have to reload?
I'm randomly loading 50 jpg's, one every 10 seconds. Currently, I'm loading them into two differernt movies on stage, one is loading while the other is displaying.
I thought that this would give me plenty of time to load a 50K jpg over highspeed access, but, from time to time, it turns out I have to wait longer for one to load.
My question is - can I load a jpg into one mc, then later into another and the jpg remains cached so it doesn't have to reload?
Swf Files Not Being Cached
has anyone ever had the problem of your swf files not being cached?
i just finished a site at work and i realized after a particular flash movie loaded, if i hit refresh or go back to it later, it has to load all over again like it was never cached in the first place. please advise, thanks.
Cached Files
Asking here first since its my best shot at a quick answer.
We're all familiar with loooking throught the cache/temporary internet files for the .swf (for whatever reason)
I noticed that it does not show up when looking at bigshotmedia.com.
How am I to hide an .swf file from the system folders?
thanks.
Cached Files
We're all familiar with loooking throught the cache/temporary internet files for the .swf (for whatever reason)
I noticed that it does not show up when looking at bigshotmedia.com.
How am I to hide an .swf file from the system folders?
thanks.
Cached Asp Pages
Hi,
I have a movie which is acalling an aspx script to return an xml document of bookings data. I seem to be having some caching problems. If I make some changes to the bookings and save them, via another aspx script and then reload them, the changes are not always reflected until a) I clear the internet cache or b) I run the script that returns the bookings manually in another browser.
I have tried to set the cache expiry in the aspx page to 1 second using the OutPutCahce directive as follows:
<%@ OutputCache Duration="1" VaryByParam="none" %>
Can anyone explain what might be going on here and if there is a way that I can force it to refresh the file every time it loads?
Thanks in advance.
SWF Menubar Cached
Dear All,
I have designed a menu bar with Flash, and it resides in an ASP page. My problem is the on the local server, I can see the changes I have done to the menubar, however, when I upload it on the server, the changes are not visible.
I tried to insert a ?cachebuster="+getTimer() after every link, and also tried to amend the asp file with this code:-
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
meta http-equiv="PRAGMA" value="NO-CACHE"
meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT"
link href="inc/frontstyle.css" rel="stylesheet" type="text/css"
'here we set some vars so that the page will refresh and will not be cached
Response.expires= 0
Response.Expires=-1
Response.Expiresabsolute = Now() - 1
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
However, I still cannot see any changes to the menubar. Can anybody help me please.
Thanks for your help
Cached Problem
We all know that a flash file gets cached when you view it on a web site.
So here is my problem:
I have a flash file that is loading dynamic text from a *.txt file, that works perfectly.
I have the *.txt file updating using PHP. That works perfectly.
But when I revisit the flash file after altering the *.txt file the flash displays the same text as it did be for updating the *.txt file. (yes, even after a refresh)
Is it possible to tell flash not be cached?
Or does any one know of any other options, I’m sure there is a way around it, because how do large companies with flash interfaces update their websites?
Any help would be tremendous.
Please!
How To Check If SWF Is Cached?
hello, i'm trying to write some code that goes through a list of files names (of SWFs) and checks if they've been cached. Is there a way to check (using actionscript) if a SWF has been cached without having to try to open that SWF?
Jpg Cached, But Not Always Displaying
I've got a movie that loads an external jpg. However, I'm often finding that although the filename is loaded and the image is actually cached by the browser, it is not displaying unti lI press refresh.
Can anyone see why this could be happening?
Code:
//stop the timeline
stop();
//we need to have some variables, this is manual
//this two can be automated if you use a server side script
//like php or asp
var lastImg = 9;
var firstImg = 0;
var imageLoaded = 0;
//just in case other formats are accepted
//or somebody find a way to load other formats
//just change this after adding their routine
var imageFileExt = ".jpg";
//let us have the main preload function
//MovieClip._holderCount = 0;
MovieClip.prototype.preloadjpg = function(movietobeLoaded) {
//trace(movietobeLoaded);
//create a controller mc for the preloading routine
var holder = this.createEmptyMovieClip("holder", 1);
//load the movie
holder.loadMovie(movietobeLoaded);
//check the loading on every enteframe of the controller mc
this.onEnterFrame = function() {
//make sure holder is not visible
holder._visible = false;
//define the bytes to be loaded and loaded ones
var tLoaded, tBytes;
tLoaded = holder.getBytesLoaded();
tBytes = holder.getBytesTotal();
var percentage = int(tLoaded * 100 / tBytes);
//the load indicator routine
percent_white.text = percentage + "%";
percent_drop.text = percentage + "%";
//Make sure stream has started
if (isNaN(tBytes) || tBytes < 4) {
return;
}
//jump out and play if fully loaded
if (tLoaded / tBytes >= 1) {
//now load it the placeholder and show it
_root.record.placeholder_mc.loadMovie(movietobeLoaded);
percent_white.text = "";
percent_drop.text = "";
delete this.onEnterFrame;
gotoAndStop(4);
}
if (tLoaded == tBytes) {
_root.record.gotoAndPlay(2);
}
};
};
//let us load the first default image
preloadjpg(_root.labelLoadPath);
[F8] Cached Flash
Is there any way to inprove flash so it does not cache so easely? Sometimes
I realy have problem with getting new content such as picture streamed in flash...
Is it any way to getting that problem solved?
Where Are Loaded Swf's Cached?
I've been using a design pattern for the past year or so where I run a preloader swf first that's only a few Kb, and use it to load my core swf.
Obviously that makes it pretty easy to cache and decompile the core swf and I don't care too much about that. But I'm working on a site that requires a higher level of obfuscation.
First off, the site will run only over ssl, which should make it harder to pick the core source out of the stream. But will it really? What I'm wondering is, is there any really safe way for my preloader to load another swf and keep it from being saved by the user? Specifically:
(1) Where are internally loaded swf's being cached, and for how long?
(2) Is there any way to keep them from being cached, say, by naming them randomly, streaming them through a PHP wrapper with no-cache headers, then deleting the file off the server?
(3) Does loading an swf over ssl have any real benefit as far as preventing the end user from saving the .swf?
An example of the preloader / core pattern I use is at http://www.mackwinston.com ...in case anyone's got a sec to check it out with firebug and see what's going on there...
Thanks!
Josh
As File Cached?
Im working on as file attached to my main fla, It loads the file fine, but when i try to add any code or change any code it doesn't seem to recognize it in flash. I've removed all the code and saved over the as file so its just a blank document. It still runs the code that I removed.
Any ideas?
Cached & OnLoadProgress
I am having issues with cached files in IE.
I want the progress bar to only show up if it needs to be loaded.
This below works fine in FF and Safari, but doesn't work for me in IE
(I think it's because IE still feels the need to "reload" 4-5% of the clip)
Code:
var loader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
loader.addListener(listener);
listener.onLoadProgress = function(clip, loaded, total){
var percent:Number = loaded/total*100;
if(percent < 100){ //still is true for cached clips in IE ???
pbar._xscale = percent;
}
};
listener.onLoadInit = function(clip){
finish();//finish function
removeListener(listener);
};
loader.loadClip(target, clip);
Any thoughts would be greatly appreciated.
Cached Swf Files
Hi
I'm loading an external swf file into my flash movie. Now I want to detect whether the swf file is cached or not. This because I don't want to preload it if it is cached. I'd rather show a dummy preloader than the real preloader just jumping to 100%.
On the first frame I tell the movie to load the swf into the desired movieclip. On the next frame I tried something like this(doesn't work):
if (_root.clip.getBytesLoaded() == _root.clip.getBytesTotal()) {
_root.preloaderDummy.play();
} else {
_root.preloader.play();
}
Any suggestions?
In advance thanx
Soulcop
Are LoadMovieNum .swf's Cached?
Hey,
just a quick question.
I have a button that loads 'cheese.swf' onto _level5 of my main movie.
I also a button that loads 'ham.swf' onto _level5 of the main movie.
What happens if i first click cheese button
then click ham button
THEN click cheese button again? will cheese be loaded again as if it hadnt been already been, causing the user to wait for content which he has already seen to load?
Or is it already cached by flash and load instantly?
hope ive not confused anyone with ham and cheese
cheers
Clicks Are Stored?
Hey has any one else come across the problem of clicks being stored??
I've built a scrolling selector (kinda like a slot machine). its simple enough, a display window with a scroll up arrow above and a scroll down arrow below. The selection changes the appearance of a movie clip below. Clicking on the arrows lets you customise a character below. This bit works fine.
BUT
When I click the accept button below.
The timeline races off down the movie ignoring all the stops and condition statements. Its as if the clicks are stored up as "true" values and plugged into all the conditionals. I've been trying to debug this for the last 2 days and I'm absolutly flummmoxed? Any suggestions??
Cheers
Connor
*@*SH - Where Are Temporary .swf Stored?
I'm going to stay calm, and watch my *&#!!ng mouth for a moment...
I spent the last 3 hours working on a project, when suddenly, Flash crashed... I hadn't saved my work.
Can anyone tell me where temporary .swfs are stored? (The .swf files created when you CTRL-Enter an untitled document.)
Any help would be greately appreciated.
Stored Files From FMS 3
I am currently trying to use FMS 3 to stream a stored file through the VOD folder. Both of my access files are set to * and my main.asc is just set to allow client connections. My current code uses Netconnection the nc.connect works. I start running into problems with Netstream when I tell it to connect using the Netconnection I always get an error. From what I can tell this is because I am trying to connect to a live stream. I don’t want a live stream I want to use a stored file. How do I go about making this call to FMS 3 in AS3 so that I can retrieve a stored file. Note I now have it working when I call an MP4 file but not when I call an FLV file. The MP4 shows as a stored file on the server but the FLV keeps showing up on the server as a live stream and I want to play it as stored.
Download Streams?
I hope someone can help me with this, but I have a flash ad to do and a specification says "30k download, and up to four additional download streams upon user click are permitted. Each additional stream may not exceed 50k" Does anyone know what this means?
Hope someone can help. Thanks!
Audio Streams
Hi guys!!!
I was wandering if you could help me out in this one.
What script do i have to use, so that whenever someone enters my site, there is no sound and the preloader only loads the graphic content, and then then someone presses the right button, load the audio stream and then play it.
Thnks for your help
Swf Player For Streams
Hi guys
Does any1 know about a SWF player which supports mp3 streaming ?
My problem is that actually, we have windows media embedded to reproduce the audio stream, but we have got lots of users saying they cannot hear because they use Firefox, so this is why I'm looking for a crossbrowser solution, and I think swf would be great...
Thanks a lot in advance.
Sound Streams?
Anyone here familiar with which class methods can save sound streams? For example saving mic sound to an mp3 ... or simply manipulating the sound data as a packet, etc.
There seems to be good resources of I/O for sound, but not so much on the data stream manipulation itself. Any advice would be great.
Streams Go Offline Somehow
I have this very strange problem and I dont expect anyone to tell me the solution to it, but maybe you can give me some pointers into what I should be looking at:
I am streaming a bunch of cameras to a Red5 server and everything works no problem. However, I have also another NetConnection to the same Red5 server that just executes call() methods and lets the server know which one of the streams to actually pay attention to.
Now Somehow, the act of using the call() method exactly 4 times makes all the streams go offline, connection is cut, or something. They stop streaming. Is there a way that this call() method could somehow disrupt the connection of the streams? I am trying to call remotely a method dostuff(). And I make that method do absolutely nothing! public void dostuff() {}. And still after a few calls the streams go off. Its just the act of calling a remote method that messes up the streams!
I have no idea what is going on. Can it be that somehow the stream connections are disrupted when I use a separate connection for non-streaming purposes or something? This is not an issue in the old version of this program that was written in AS2, but in AS3 i get this weird behavior
Mixing Streams Together
It is my understanding that the only way to have an application in which multiple streams are allowed to play at the same time (for example, a simple audio conferencing app) is to have each client subscribe to each of the individual streams. I'm wondering if, on the other hand, it would be possible to have each client publish its own stream, then combine all the streams at the server and publish just one "combined" stream where all the audio is mixed together--sort of what a telephone switch would normally do. This would make it possible to, for example, maintain a fixed bandwidth requirement for each user as opposed to have the bandwidth required by each user grow arithmetically with the number of users in the conference.
Any thoughts?
Thanks!
FCS Zombie Streams
I've been having problems with fcs (1.5 update 2) loosing recorded streams and other fun stuff, and in the process of narrowing the problem down, I've found a related problem that's cool (not).
FCS will accumulate zombie streams if you open and start recording and then stop playing without enough delay... ie:
ActionScript Code:
var stream = Stream.get( new_unique_stream_name );
stream.record();
stream.play( some_live_published_stream_name );
// later on...
stream.play(false);
delete stream;
In my case, I can see that if my stream.play(false) gets called before the application.onStatus() announcing[1] the new stream gets called that the stream gets 'closed' but hangs around in the App Inspector as a zombie stream with no name, no time, etc.
However, if you look in the streams directory, you can see the .FLV file still growing in size as its still recording data.
If anyone is interested, I can provide a main.asc and a client.fla to show this problem.
-Trevor
Note 1:
Trace()ing the info passed to app.onStatus gives:
Good:
Quote:
app.onStatus: NetStream.Record.Start: Recording archive/newstream70.
app.onStatus: NetStream.Publish.Start: Publishing archive/newstream70.
app.onStatus: NetStream.Play.Reset: Playing and resetting clients/tester1/rx.
app.onStatus: NetStream.Play.Start: Started playing clients/tester1/rx.
Client.stopCut: archive/newstream70
app.onStatus: NetStream.Unpublish.Success: archive/newstream70 is now unpublished.
app.onStatus: NetStream.Play.Stop: Stopped playing clients/tester1/rx.
Bad:
Quote:
app.onStatus: NetStream.Record.Start: Recording archive/newstream71.
app.onStatus: NetStream.Publish.Start: Publishing archive/newstream71.
app.onStatus: NetStream.Unpublish.Success: archive/newstream71 is now unpublished.
app.onStatus: NetStream.Play.Reset: Playing and resetting clients/tester1/rx.
app.onStatus: NetStream.Play.Start: Started playing clients/tester1/rx.
Closing Streams From FMS
I am having an issue and need some help please. I have a SWF file that has multiple scenes that I am using the FLV 8 plybk component using the component inspector to set all of the parameters. I have a cue point that moves it to another frame label where you then click a button to move to another scene, but the FMS monitor still shows an active open connection. When you get to another video it then opens another connection, and so on, and so on. What is the easiest way to close the connections not knowing what the stream name is at all times? knowing that FMS gives the same stream a different name each time and for each user. I have used "stream.close()" and a couple of others but it never works. Please help me to find an easier way then hard codeing it.
Thanks
Streams Not Recording
I'm new to FMS, so hopefully this problem has a simple answer. I'm recording video streams using a simple call to NetStream.publish('path', 'record'). It was working fine a few days ago, but now it's not and I'm not sure why -- it seems that everything is fine on the client, but no FLV files are appearing on the server.
Tracing out the status event from NetStream:
-- status --
description,Connection succeeded.
code,NetConnection.Connect.Success
level,status
-- status --
clientid,112165952
description,test is now published.
code,NetStream.Publish.Start
level,status
-- status --
clientid,112165952
description,Stopped recording test.
code,NetStream.Record.Stop
level,status
-- status --
clientid,112165952
description,test is now unpublished.
code,NetStream.Unpublish.Success
level,status
The server log just says a connection has taken place. The weird thing is that In the console, under "streams", it lists the stream name but says its type is "live" even though I passed "record" to NetStream.publish().
My application's directory (program files/macromedia/flash media server 2/applications/photobooth) is completely empty.
I've tried restarting the server and the computer and everything.
Does this sound familiar to anyone? Thanks.
Syncronized FLV Streams
I know this has been asked before but I can't find any answers at the moment.
I need to create a simple app, where users will be shown a series of 8 minute videos. After all users view a video, there will be a Q&A session. Then the presenter starts the next video.
My question is, can I ensure all connected users are synced in FLV playback? In other words, when the presenter presses play, all uses are done exactly 8 minutes from that point. I know I could do it if the stream was a live stream from the presenter's cam, but what about from an FLV file?
Streams In Idle?
I am new to FMS. I am working with the videoPlayback component. I have tried several different ways of connecting to the FMS server, including the simpleConnect component, and coding in the connection myself. In all cases I am able to successfully connect to the server. Within the console I see my client connections, as well as the prospective streams. However, when I hit the play button on my videoPlayback component, nothing happens. Within the streams window in the console, I see the streams there, just sitting idle. Also, the name of the stream is blank (says "-") and the time says 0.
My main.asc file contains only one line - it loads components.asc. According to the server logs, all components are loading successfully.
I have made sure to place my FLV within the stream directory and made sure to reference it by its name only, not with the .flv extension.
Thoughts? Thank you!
Candace
Other Input Streams To FMS
I am new to FMS and I am currently researching using the developers edition of FMS 2. I can easily stream a live feed from Flash Media Encoder, but how can I stream from other sources like FFmpeg? I can only stream from my Web Cam.
Thank you
FMSS 3 Streams - Please Help
I am currently using the developers version to do some testing, but my plan is to purchase the FMSS 3 license.
In reading the "readme.txt" file, it gives instructions for deploying an unsigned vod service. If I edit parameters in the Application.xml file, will it work in FMSS 3?
Also, how do I configure my .connect(rtmp://myserver.com/???) connection string to use <streams> that I have added to the Application.xml file? I can access FLVs in the default "media" folder, but I cannot access FLVs from locations defined by my <streams>.
Here's a sample of my <streams>low;C:inetpubwwwrootvideoslow</streams>
Your assistance is greatly appreciated.
Brady Roberts
Edited: 02/12/2008 at 03:09:27 PM by golfguy
Transcode Mp3 Streams
Hi there,
I've got a question about Flash Media Interactive Server 3. We'll be using this server for the streaming of MP3's. I want to know if there is a way to enforce a bitrate for streaming. For example: no matter in which bitrate the MP3 is encoded, I always want to stream it in 192 kbps.
This is very, very important since we're an organisation with an extensive collection of, currently, 6TB of digital media. We're currently digitalizing our entire catalogue which will result in approx 40TB of digital media. ALL this media will be streamable so we need a way to throttle bandwith.
(our collection consists of ALL records that have been released in the Netherlands in the last 35 years..)
Can someone enlighten me about this subject?
Regards,
Nico Beemster
CDR
Vod Streams Not Active
How can I make the video I've placed in vod/definst show up in the streams column in the Admin Console? I have an flv in the folder but nothing shows in the streams column.
|