Javascript :: Create A Web Real Time App?
Mar 13, 2010I want to create an application like this:
[URL]
What is the most efficient way to create this real time application ?Flash ? Long polling ? Http Streaming ? or anything else ?
I want to create an application like this:
[URL]
What is the most efficient way to create this real time application ?Flash ? Long polling ? Http Streaming ? or anything else ?
Is it possible to create a flash character that can speak in real time?I want to create some characters that use the speech from my pc microphone (e.g. as I speak into my mic the character uses my voice to speak.
View 1 RepliesI'm working in an educational software, mostly developed using Flash AS3, and we have a chronometer which shows different values through different users. Example: Two users starting the chronometer at same time, but along some minutes of usage, they have different values.
The current implementation uses Timer class, causing this to happen, obviously due the different average speed of each computer.
I want to design a web page that will display a visual aid representing real time data. Real time for me means updating at least every few seconds, or literally realtime/event based if that is possible. The data displayed will be displayed in a rather visual/graphical way rather than simple text or a table.
I do not have a lot of knowledge of web development other than a little knowledge of HTML, so I do not know what options are available to create a web page that does what I want. My search has seemed to point towards Flash as being the technology best suited to do this, but I have also seen several articles which caution against flash (but mention no alternative).
The main alternative contender instead of Flash seems to be Comet style programming which I understand would likely utilize (in my case at least) a system called "long polling" to update data regularly. This could work, however the nature of the way I would like the information displayed leads me to believe that flash might be better than this as it sounds like longpolling is well suited for simple display of text inofrmation based on results, whereas I will need certain details of the visual display to change as well depending on results.
My research has also lead me to believe that an ASP.NET or PHP page would almost do what I want, but my understanding is that these two frameworks'/ languages' purpose is more along the lines of generation of a unique web page when loading rather than updating it as someone is looking at it.To make sure it is clear: communiciation is COMPLETELY one way in my imaginary web page. the user's display needs to update but they in no way send data back.What tools are best suited to create a webpage which will update/display (in a visual manner) data in real time in as someone is viewing it?
edit:
after finding this article: How does facebook, gmail send the real time notification?, I am thinking Comet could still be a really good option as I can just use it really as the messenger of events rather than having the direct result displayed as text or something. Still looking for advice on which way may be easier though due to my impression that Flash may be easier to program the graphics in a dynamic way.
I'm working on creating a new look for my portfolio and had a concept.I would like have one movie clip tween in real time 365 frame increments, while another moves in real time minute or second increments.Along with this, I would like to be able to override the passage of time by scrolling an associated scrollbar.The two tweens would be independent of one another.
View 1 RepliesI'm currently using the Graphics library to draw bands of color across an image (bitmap).So, I draw a square of colored bands, and mask it with the bitmap image. Unfortunately, when I use a mask (or even set the blend mode to .LAYER, OR use a shader filter) the FPS drops to un-usable levels.Is there some way that I can draw the bitmap shape I want without killing the FPS? I was thinking that I could like, draw the bitmap on top of the sqaure of Graphics, and then make a certain color transparent.
View 7 RepliesIs it possible to play the video (mp4) in real time using some flash player? What I mean by in real-time is that player would receive data on the fly, not from alredy saved file but e.g. php script (which sends appropriate content-type header) THAT IS DOWNLOADING AND 'ECHO-ing' THE FILE AT THE TIME PLAYER PLAYS IT - like e.g. some kind of live stream.
View 3 RepliesDrawing in real time in a film
View 6 RepliesI have a C executable (named myprogram). When I run it by ./myprogram I get some output statements on the standard output of my Linux shell. I used run.php to get access to whatever is being printed to the standard output:
#run.php
<?php
$output = shell_exec('./myprogram');
echo $output;
?>
Then I called an HTTPService having id="service" to access this run.php file and I also set the text attribute of a TextArea to {service.lastResult}. When I run my Flex app, the interface kind of halts for a moment and then the TextArea displays all the 20 lines at once. But if program is run from Linux shell they appear one by one. Is there a way by which I can display a line as soon as it gets printed to standard output? This will then make the TextArea show the output in real time.
Or is Flex unable to do this? Rather how can a PHP program achieve such effect i.e. showing, whatever is being printed on standard output, concurrently in the browser in real time? Myprogram outputs 20 lines each after some microseconds. I want only the first line of standard output to appear in TextArea of Flex or in the browser (but in real time) while the program may then continue running the program.
I have a Flex/AIR application communicating with a PHP server application. Recently my client requested real-time-like connectivity between the applications to replace what we currently have; refresh buttons which have to be clicked to refresh data.So effectively the server needs to push data to the client when something changes. I can write the code that detects when something changes, but I'm not sure about the push side of things.
View 4 RepliesHow to play mp4 videos in e.g. flowplayer in real-time (streaming) - without downloading it fully first?
View 2 RepliesWe're currently building a fairly big dynamic website, and I was wondering if there was a way to have an animation that updates and move in real time as there's action on the site. Ex. red bulbs light up each time a user posts something on the forum or whatever. It'd be all related to the mysql database.
View 1 RepliesI am looking for the script to save image or pdf from swf in real-time.
View 0 RepliesI have made a shopping cart. And in it I have a quantity text field that the user can change. If the user is changing that value the hole total price thing is changing. My problem is that I lose my self in that part where I have to modify the total price/all products.
View 9 RepliesI'm looking to create something within Flash that I've not yet seen done.It will be a shared, real-time interactive session. What I want to know is, is it possible to create an individual, private session within Flash that is synchronized between two or more computers? I am doing this for the medical profession, but I can also see this would have benefits in the gaming community as well. I'm trying to create something that two specific users can interactively share in real time.
For example,a coloring book.Two players,or as many as you want, log in together and share a private coloring session. They will be able to interactively see anything that the other person is coloring in real time.The other people would also be able to color and let everyone else see their work.
I want to do a flash that changes based on the time of day. For example to load right .swf on container MC at the right time of the day.
View 1 RepliesIm trying to create a real time multiplayer game similar to "Stick Arena". Ive already created a nio java server which works wonderfully. Everything connects and works ok however the problem im facing is efficency. When I test the game on my lan network, there is a delay of about 200 ms. When the game is tested ona single computer everything gets sent without any significant delay (1ms~). Whats wrong?
View 6 RepliesIs there any way to disable the "Download This Video" button from RealPlayer. It seems that when users have RealPlayer installed on their machines, it automatically adds a "Download This Video" button to any SWF that loads an FLV.
Edit: My intention isn't to prevent someone from downloading the SWF or FLV, I would just like to remove the ugly button that RealPlayer adds on top of my Flash content.
I need to communicate to the server in real-time. I can't let clients write to remote shared objects so I have to forward their requests to the server which checks if the data is valid and then writes it to a remote shared object. Should I use NetConnection.call() to forward clients' request to the server or is there something faster than that?
View 3 RepliesI'm working on a simple real time graph. The data is polled every 50ms, and each poll translates to a line one pixel wide, (data_point) pixels high. The graph scrolls such that new data is on the right, and the oldest values eventually fall off the left.
My solution is embarassingly brute-force, in that I just use theMC.graphics.clear() and a loop of lineTo()s for every graph refresh. While this displays correctly (and I can control the refresh rate to mitigate the CPU burn), it should be painfully evident why I want to move away from this method.
I want to programatically scroll or pan the entire graph one pixel to the left (and drop the leftmost line), and then just draw one new line on the right, but I can't figure out where to start. Assuming such a thing is possible in AS3, would someone be so kind as to point me in the right direction?
I would like to do script to do 10 band equalizer which would change sound from microphone dynamicly (in real time) and result play in earphones (also realtime) with small time lagIs that possible? Maybe some paid library? I would like to get 15 band EQ.
View 4 RepliesFlash can use the RTMP protocol to exchange data between a server and a client. How do you typically access this functionality in AS2 or AS3/Flex? For example to use sockets you use the XMLSocket (AS2) or Socket (AS3) classes. Does the server-side RTMP software use Sockets under the covers? or is it HTTP with tunneling?
The Real-Time Messaging Protocol (RTMP) was designed for high-performance transmission of audio, video, and data between Adobe Flash and a server. RTMP is now available as an open specification to create products and technology that enable delivery of video, audio, and data in the open AMF, SWF, FLV, and F4V formats compatible with Adobe Flash Player.
I'm trying to build a system that live-streams video and audio captured by android phones. Video and auido are captured on the android side using MediaRecorder, and then pushed directly to a server written in python. Clients should access this live feed using their browser, so the I implemented the streaming part of the system using flash. Right now both video and audio content appear on the client side, but the problem is that they are out of sync. I'm sure this is caused by wrong timestamp values in flash (currently I increment ts by 60ms for a frame of video, but clearly this value should be variable).
The audio is encoded into amr on the android phone, so I know exactly each frame of amr is 20ms. However, this is not the case with video, which is encoded into H.264. To synchronized them together, I would have to know exactly how many millisecs each frame of H.264 lasts, so that I can timestamp them later when delivering content using flash. My question is is this kind of information available in NAL units of H.264?
I'm still new at Flex. I want to make a flex code that request data to server everytime. I use java as a server. i have successfully generate a linked-list of data at server from asterisk cli command. like this
[Code]....
I have a Sprite object that I called three methods[code]...
View 1 RepliesI want to build an android application that visualize some real time data , to get the position of objects and update it in real time and give me a simple animation . studied OpenGL ES for couple of days but it seems quite complicated but I dont think it fits to my needs
View 1 RepliesOne thing that's really frustrating me about Flash is that the info panel doesn't display real-time width or height values.So if I'm drawing a rectangle, I can't just draw it out as do in Photoshop to say 400 X 200. I'll need to set this manually after I draw a small box.
View 2 RepliesI have created real-time data loading flash file. I'm loading realtime data in dynamic text filed using variable. From JavaScript, I'm pushing the data into those dynamic text fields with 10 seconds interval.
Now I want to animate the dynamic text fields when the new data load into the text filed.
I have an equation that needs to calculate variables as it receives them and output the value to a dynamic text field. I have successfully created a function passed values to it but after the first calculation it wont do anything else. [code]...
View 3 RepliesI now know that it is impossible to save a swf over a virtual server (in real time) which has had its text changed dynamically. But does this apply to webcam video? What I mean is, if I allow someone to use my app on the internet, and this app allows them to record a video using their webcam, can they then save this swf to their computer?
View 1 Replies