I need to calculate the latency means time difference between the two user machines the scenario is: 1. App 1 publishes stream 2. App 2 play the stream published by App 1 Now in App 2 I need to show the time difference between the App 2 and App 1 time. Say if current time on App 1 is 10:46:30 and on App 2 it is 10:50:20 then need to display the difference. How to send the time value to App 2 from App 1 as time zones for the two users may be different.
When synthesising sound using the SAMPLE_DATA event of the Sound class, the Flash documentation recommends writing out as many samples as possoible up to 8192. On my system the sound cuts out unless I write at least 4192 samples each event. That's a full tenth of a second, which is going to be user-noticeable.
I may have the option of buffering things up ahead of time, but this is a major annoyance for my application.Is there any way of getting lower latency audio output?
I have a system where clients connect via http streaming channels and use Producer and Consumer classes to dispatch and receive messages. I need to test the latency of messages in a way that adequately simulates real-world usage when the server is under load. I have 3 ideas for how this may be accomplished. Has anyone tried and succeeded or failed with these methods?
I can't find the setttings for have a least latency as possible, either the video quality is bad or the latency is up than 5 secondes...What should i do?
I am developing a simple fast-paced 2 dimensional real-time multiplayer game in Flash. Players can only shoot and walk in point to move fashion. I use TCP socket connection (AS3 doesnt offer UDP).All I want is to synchronize players' actions so Player1 could see the same on its screen as Player2,Player3... or just see close representation (position,taking damage,etc).
I know movement vector coordinates and I can easily interpolate on them using latency. However,I can not figure out an effective way to determine how much time (T1) did it take the state update to travel client1-server-client2 and then make corrections to client2's screen based on T1.(You know, ping times may fluctuate quite a bit).I need a way to do the above-mentioned, i need way which is as fast and as accurate as posssible but not extremely sophisticated. (what algorithm should i use?
Suppose there is a live WAV stream that can be reached at a certain URL, and we need to stream it with as little latency as possible. Using HTML5 <audio> for this task is a no-go, because browsers attempt to pre-buffer several seconds of the stream, and the latency goes up accordingly. That's the reason behind using Flash for this task. However, due to my inexperience with this technology, I only managed to get occasional clicks and white noise. What's wrong in the code below?
var soundBuffer: ByteArray = new ByteArray(); var soundStream: URLStream = new URLStream(); soundStream.addEventListener(ProgressEvent.PROGRESS, readSound);[code]....
I have a project that plays several sounds and triggering interaction on key presses. On mac everything is fine - the animation and the sound gets triggered simultaneously. However, when I port it to windows (either as a swf or exe projector), there seems to be a .5 second delay in the sound. I have to load the sound files from a local filesystem. I've tried pre-loading all the sound so I can just play the sound object when needed, but the latency is always there.
In the game there is a backing groove played by triggering one movieclip to play. The user triggers short sounds from buttons embedded in drag and drop movie clips to play along with the backing groove.
On Safari or Firefox on mac the timing is absolutely fine.
On IE on Windos XP there is enough latency to make it unplayable.
I used to code with "Processing" so maybe I keep the same habbit when I code in AS3. I'm not really sure how to animate in a good way using Enterframe. I made a not so complex animation and I am suprised that there is a very bad latency when I run it. Maybe there is something I don't understand when I write Graphics.
At each Enterframe, I write a black rectangle with a 0.3 alpha to progressively erase old lines and just after I draw new lines.
Are these these Graphics lines and Graphics rectangles stay in memory? Do I have to delete it when they visually disapear from the stage?
I'v made an application with all the default codec and settings provided by adobe to publish live video using FMS. I've made two swfs one is for publishing live video and the other is for viewing the published stream (telecast). When I'm publishing the live video on My laptop using the default web Cam and mic attached to the Dell laptop then after 2- 3 minutes delay on the telecast side start increasing and it keep on increasing continuously .At the same time when I use my desktop PC by attaching external Web Cam and mic to publish, delay on my Telecast side is consistent ,it never increase. I found the problem is with the Laptop's mic. Can anybody please suggest me why it is happening, and is there any solution to it.
We have one functionality in which one user can communicate with the other user at the same time through flash media server3.5. In this fucnitonality we are catching stream from both end through camera and pass it to flash media server. On FMS side this streams gets stored also we are displaying those recorded flv files side by side to the corresponding user so that they can communicate with each other. In this situation we are facing a video and audio latency upto 1.5 to 2 sec.
We have a typical Flash+J2EE application that makes multiple requests from client to server (over Flex remoting), which is taking quite a long time on some client systems (and hence results in poor application performance on such systems).
Now, suspecting issues with network connectivity (latency) on such client system(s), we need to identify how far does it contribute to the slow response of the application (rather than performance issues in the application itself).
So, what are the best way(s) to diagnose this on a client system (Windows)?
Note that we have tried profiling our application, which does not indicate bottlenecks there, so we just need to clearly identify the possible network issues.
iam streaming my web cam to FMS .... i have got a latency of 1 -2 second,,,,,, What should i do to reduce the latency,,,,,, is ter any change i can make in FMS files(xml files) in order to reduce the latency......
We developed one video chat application in which one user can chat communicate with anohter user. Latency is coming on one side in peer to peer connection.
Apparently I seem to have upset one of the forum members by cluttering up his space with rantings about FMS not being up to speed or scratch or whatever. So i'll keep it simple. Since i'm not inexperienced in the deployment of Flash via a streaming provider, I just want to know if other users here, find the FMS software to be brilliant in concept and delivery. In other words are the streaming companies going to be worried that my 1000mb of date transfer per month are going to stream just as well as the $360 a month they would like to charge me for doing the same job?!
I am triggering short sounds dynamically from the library for a game (Specifically Air for Android). When the user clicks a button the sound can take up to 600ms to actually play. I have set it for any silence before the actual sound by calling the sound like so:
[Code]...
All return the same results. I know there are threads here that talk about this but none have offered a real solution that I can find. Is there no way to cache the sound or store it in a buffer?
I have a long list of numbers(Movieclips) aligned horizontally. I have a scroller that span across five number clips the user can drag the scroller to move. I want to dispatch over function inside the number clips whenever the scroller moves over them and likewise out and click event. I dont know how to detect that like if it was move over i could just define a mouse mover event but this trying to detect when a movieclip is over/out other clips.
What I want to do, is to detect if user presses a button. My code atm just detects if it's pressed down continueusly. Is there a way to detect when user only presses it down, doesn't hold it down?
Just like yo can define Mouse over and out event to find out when the mouse is over/out of certain clip, in this case instead of Mouse I want to check when a Moviclips is over/out another movie clip.
I was wondering whether some Actionscript exists that can detect what URL its SWF is in, and jump to a frame within the SWF accordingly?For instance if menu.swf detects that it is embedded within home.html,it goes to Frame 1. Or if it detects it's embedded within services.html it goes to Frame 2, etc.
I have added a child MC in frame 20 of my file. Within this MC, I have added another child MC. In frame 1, I would like to detect to see if the second MC is on the stage. I have tried using the the stage.contain(secondMC), but I keep getting the error 'Access of undefined property secondMC'. I believe this is because I have declared the secondMC within the firstMC by using var secondMC:MovieClip = new secondMC1().
Just like yo can define Mouse over and out event to find out when the mouse is over/out of certain clip, in this case instead of Mouse I want to check when a Moviclips is over/out another movie clip.