Professional :: Where Does Buffered Data Get Written To
Mar 12, 2010
When recording a video to FMIS if the stream is buffered, does this get buffered in memory or does it use up local storage?
I am developing an application that will use a web cam to record videos which will then be submitted to the server. Ideally I would have liked to write the video to disk first and then upload later however, I understand that I can't do this with flash (my solution has to be in browser AIR apps aren't an option). I am ultimately concerned about video quality so in order to ensure that I loose as few frames as possible I'm planning on setting NetStream.bufferTime to a large value. I am concerned however that someone with a poor internet connection and a good webcam will quickly use up local storage assuming that it is set to the default of 100K.
If this is the case then I potentially need to think again about my approach - maybe even look into Silverlight 4, or at the very least try and explain to my users how to go into flash settings and set local storage to be unlimited.
View 1 Replies
Similar Posts:
Sep 29, 2010
i have a video in which I can seek to unload parts (Pseudo-Streaming), the server return the video and it loads it from the requested second,the problem, i don't want to make a new request to the server if a part has already been buffered, here's what I have in mind, but can't achieve
Code:
if(netStream_has_been_download){
//Just run the seek() command
[code].....
View 1 Replies
Jul 14, 2011
when uing netsream.seek(), how can i make a new request to the server if the seconds parameter specifies a time outside of the currently buffered video data. I want to seek unloaded time
View 3 Replies
Jun 8, 2010
asically what is happening is that my Flash client claims that it is calling functions that don't arrive at the server -- or they arrive, but the socket data is out of order and therefore is garbled. I've stared at the source code for hours and tried a lot of trial-and-error type stuff and added trace statements to see if I can find the problem and I'm not having any luck.
In particular, there's class I have called RPCSocket that extends the AS3 Socket class so I can serialize data structures before sending them across a socket. At one point, this RPCSocket class calls super.writeBytes and super.Flush. It is the point at which I send all data out of my client. The data is binary data in AMF3 format.
public function executeRPC(serviceName:String, methodName:String, methodParams:Array):void { if (!this.connected) { log.write('RPCSocket.executeRPC failed. ' + methodName + ' attempted on service ' + serviceName + ' while not connected', Log.HIGH); throw new Error('RPCSocket.executeRPC failed. ' + methodName + ' attempted on service ' +
[code]....
Can someone recommend a way for me to store without corruption, conversion, or filtering or translation of any kind *all* of the information sent across this socket? I'd like to write it to a file. I'm guessing that keep a global ByteArray var and storing the info there might work, but I'm wondering how I might get the contents of that ByteArray into a file so I can inspect it.
Also, I'm wondering if I might be able to inspect what flash actually sends out on the socket? I have a sneaking suspicion that data I supply to super.writeBytes may be sent out of order or may not actually get sent across the socket. This bug I'm talking about only seems to happen under high-stress situations when I'm sending dozens of messages per second across this one socket.
View 2 Replies
Aug 28, 2007
I have 5 text fields & 1 list box component. I have found lots of examples of databases passing data to Flash but not vice versa. I realized that unlike the text inputs I had to set a variable for the list box I call OnlineAdTypes. I feel like I am very close because I do now see undefined rather than a blank field
[Code]...
View 10 Replies
Sep 29, 2006
I have some code that was written to create a thumb galleryof sorts...an image scroller that, when the thumbnail was clicked,another data area was populated with the xml data. I have removedthe image scroller part, making the main data area itself scroll. Ineed it to display the xml data when the image loads, instead ofmaking me click on the image to load it, which is what is currentlyhappening.
View 7 Replies
Jun 5, 2011
I have a fairly simple app that is running slower than expected on an iPhone. Even without animations I takes too long to respond to user actions.
What tools do you recommend for funding performance bottlenecks in an iOS app written in Flash?
View 1 Replies
Jun 12, 2010
I'm using 64 bit Windows 7, I tried to download it on both Firefox and Google Chrome, I used the uninstaller on this site so I shouldn't have any current Flash installed. When I go to try and install the new flash 10.1, it tells me...."A required file (C:WindowsSysWOW64MacromedFlashNPSWF32.dll:5) could not be written due to insufficient permissions."
View 2 Replies
Apr 27, 2010
Is where any way to tell if a flash file online is written in either flash 9 or 10?
View 4 Replies
May 19, 2010
I'm moving an movieclip using the cursor keys. The device it has to run on, is too slow to process the keys realtime, so the keys are placed in a some sort of buffer and the object keeps on moving for a while when the key is released.The device places 8 keys in the buffer per second, but flash can only process 5 per second, so holding the key for a second, will look like I've pressed it almost twice as long. Any way to counteract this? I've tried using Key.isDown, but that returns true, even though they key is released, until the buffer is emptied.
I've tried using the onKeyDown event to start the movement and stop the movement using the onKeyUp event, but it seems like the onKeyUp event only occurs when the buffer becomes empty. Even when I remove the onKeyDown listener, it seems like the buffer only decreases 1 key per frame. It might have worked when there is no keyrepeat in the hardware, but that is not an option. It would be good if there was a timestamp indicating when the key was pressed, or some way to clear the buffer, but I've not found one.
View 7 Replies
Feb 5, 2010
Whenever a youtube or any other flash content is buffered on the browser, isn't it true that is downloaded to the client computer ? So my assumption is that, any completely buffered youtube file should be found on my client right ? For example, when i view this video on youtube, i see that it is actually referring to this swf location [URL] How does youtube actually buffer this video on my computer then ?
Note: My objective is NOT to download youtube videos as i know there are extensions available for it. I just want to know how it works :) .
View 1 Replies
Nov 4, 2009
i'm trying to build a mp3 player that plays a (for istance) base64 encoded mp3 file.my needs is to protect original files and decrypt them at runtime.now, i'm playing with new Sound apis and SampleDataEvent like this:
ActionScript Code:
public var s1:Sound;
public var s2:Sound;
[code].....
View 9 Replies
Feb 11, 2010
I found an interesting questions regarding the events in action script: is the event buffered and ordered?
Ie) In a swfloader example, I setup a timer(1 sec) to run a function, in the function I setup a listener to event INIT of the loaded swf. It depends on the network condition that whether the timer handler or the INIT event will be first executed. Imagine a case that the INIT event fired first but the handler to handle the INIT event be setup later, will the handler be invoked?
Another question, if the loaded swf fired several events very fast, will the events be kept ordered as the fire sequence?
View 2 Replies
Jul 7, 2010
I can get which part of file in bytes is loaded using netstream.bytesLoaded,netstream.bytesTotal, I can get the current playing position using netstream.time. But I want to know how many seconds of video are already loaded (not the length of buffer, which remains constant).
View 1 Replies
Dec 23, 2011
Normally we use NetStream.Seek method but it will make the seek after the buffer area crossed the seek time length.(HTTP). Can we seek the video that is beyond the buffered area like youtube in red5. Will it start the buffer from the seek point.
View 1 Replies
Jan 30, 2009
what I'm trying to put together is some code that will load in multiple flvs, buffer the vids and have them play one after the other in a loop. I have so far code that loads in an array of flvs but doesn't loop. Also the buffering stops the play back for a moment towards the end of the first video, not sure why but changing Flush into Full doesn't help. Anyone know how to add a buffer that plays after a % of the movie it buffered or will buffer movie one and then buffer movie two while the first movie is still playing? As for looping goes I need a listener waiting for the last video in the array to be completed, but not sure how to pull that off.
[Code]....
View 0 Replies
Feb 10, 2010
The upgrade version of FMS 3.5.3 append the new function about buffered stream, in order to resolve problem when the bandwidth no good caused the video getting more and more slow, but I can't find the configuration in which file.
View 2 Replies
May 22, 2010
I'd like to start playing a web-based video at a specific time, say 2 minutes in, even if the video hasn't been downloaded that far. I thought I could just "seek" to that time but that apparently only works when the video is buffered first.
So for example, this:
Code:
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.play("[URL]");
ns.seek(123);
video.attachVideo(ns);
Seems to work if you have the video cached or buffered or whatever, but if you don't it gives the "NetStream.Seek.InvalidTime" error, which makes sense. I want to know if it's possible to start playing a video at a specific time, even if the video hasn't loaded up to that point.
View 1 Replies
Jun 9, 2011
I have 4 flv playback instances on a stage.
1. when i load 4 videos and ensure they are fully buffered from video progress event and bytesloaded==bytestotal . and then play them. I get sync issues for every other second.
2. when i download the vidoes and place them in my project folder and then load them ( no loading time) there are no sync issues. I cant understand why 1 is different from 2 as we are completely loading the videos in cache.
View 0 Replies
Aug 31, 2011
I have a site with an SWF that I can put some metrics into, such as ZIP Code, Weight, etc.. then, it takes that info and gives me shipping rates.
I need to build a front-end site that I can have a forms page that will push data to the backend SWF, and then return the data back from the SWF to the front end.
Front-end -> SWF (Zip Code, Weight, Size) -> *Calculates* -> Front-End
That should be the flow.. So I need to send data to the backend, GET the data that it calculated, and return the results to my front-end.
View 3 Replies
Apr 30, 2010
I have a windows service behaving as a Binary Socket sending data to flex applications. Once I try to send strings or int's or any other native data-type, everything is working great.
I even succeeded in sending JSon from the server to the client parsing it on Flex.
I want to send AMF objects to the client.
Meaning, I have a class called User, I want to fill it with data and send it to the client, there I want it to be mapped to an object on the client.
View 2 Replies
Oct 19, 2009
How can you know that a swf was written using flash or flex?and is there a way to compile back to flex?
View 2 Replies
Nov 15, 2011
I'm trying to download SWF files from a site the traditional way, but a few of the SWF files have been created dynamically through what I believe to be ASP.net 2.0.
Every attempt to D/Load results in the correct dimensions, height and width, but it just gives me empty white space.
View 1 Replies
Feb 20, 2009
I've been designing a SharedObject-based Cookie system for a while, everything works fine in my Flash authoring tool and my localhost (I used a dummy domain) But after I committed the swf file to server, the SharedObject stopped to working. Here is the code: The only difference is that, on the server, the SWF stored on another domain. I'm not sure whether this caused the issue.
[Code]....
View 1 Replies
Mar 12, 2010
I have got a function that do something "on.Resize", and my question is: how can i do exactly same thing from some keyframe on timeline? I mean... do the same effect but without need of resizing the swf that would trigger the function?
View 2 Replies
Jun 17, 2009
I want to use some assets ( buttons, etc. ) I'm creating in flash in a flex actionscript project. Since all my assets are bellow 10K, I'm not planning to load a swf ,wait until it's loaded and create the interface. I want to use a swc and just instance the clips I need. Also, I want my Button class to have some extra properties, and this is where the problem occurs.
If in the Linkage Properties in the Flash IDE I add a reference to a custom Button Class and trace a child of the Button MovieClip, I get the right trace. If then I create a Button, in the Main class in Flex, using the generated swc file and trace the same child of the Button MovieClip, I get null. Why is that ? Is there anyway to get around this ? I've considered using the Flex Component Kit, but since I'm working on a simple actionscript project and I'm not using the Flex framework, I see no point in using the Component Kit at this point.
View 2 Replies
Mar 16, 2010
I absolutely love good defender games (e.g. Gemcraft, Protector: reclaiming the throne) as they can be intellectually quite challenging; it's like playing chess but a little less thinking and a bit more action. Sadly, there are not that many good ones out there and I thought I would create one myself and share it with the rest of the world by making it available on-line.I have never worked with ActionScript but when it comes to on-line games, this is the main choice. I have tried to find a decent 2D game in the form of a Java applet but to no avail. Why is this so? I could write the game, most comfortably, in Delphi for Win32 but then people would need to download the executable, which could deter some form downloading it, and also it would only work on Windows. I am also familiar with Java, having worked with Java for the last four years or so; although, I don't have much experience with games programming.
Should I not be deterred by the fact that all on-line games are written for in Flash and create my defender game as a Java applet, or should I consider learning ActionScript and games development for the ActionScript Virtual Machine (AS3 looks very much like Java... but still, it's an entirely new technology to me and I might never use it professionally.)
View 8 Replies
Feb 5, 2009
I have written a class that works fine, but as soon as I try make it re-usable and pass a parameter. It gives me this error "1120: Access of undefined property xmlList_0."
Here is ActionScript Code:
package Classes{
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Carousel extends MovieClip {
[Code] .....
This is the code in my fla.file to run this class:
ActionScript Code:
import Classes.Carousel;
var carousel:Carousel = new Carousel(xmlList_0);
addChild(carousel);
View 3 Replies
Mar 23, 2011
1) I don't understand the difference between flex and actionscript. I understand AS is used to write flash apps but what is flex?
2) I am going to create a flash app for recording sound which is then processed by dll's written in c++. Can this be done in flash? I don't want the flash app to communicate with dll's on a web server, I basically want to load the dll's for direct use into the flash app.
View 8 Replies
Mar 25, 2011
i have a function that works fine but is obviously the wrong way round. how do i write it so that the event happens if it is true. at the moment it happens when it isnt true in the 'else' statement.
[Code]...
View 1 Replies