Actionscript 3 :: Flash NetStream.Buffer.Flush Firing Repeatedly

Oct 13, 2011

I've made a custom video player in as3. Everything works, but once a video has loaded and played through completely, if the user replays the video it continuously fires the NetStream.Buffer.Flush event until the video stops playing again (by either ending or by the user hitting pause). It doesn't seem to effect anything negatively, but I would rather not have an event continuously firing in the background like that. I can't find any documentation of this happening online anywhere. Is this normal behavior for a NetStream that has fully loaded?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Flash NetStream.Buffer.Flush When The Streaming Video Is Paused?

Dec 26, 2010

I notice that, when I pause the video, the event "NetStream.Buffer.Flush" is triggered. And according to the language reference: "Data has finished streaming, and the remaining buffer will be emptied.", I have to re-buffer it, right? However, also according to the reference, it shouldn't stop buffering:

Starting with Flash Player 9.0.115.0, Flash Player no longer clears the buffer when NetStream.pause() is called. This behavior is called "smart pause". Before Flash Player 9.0.115.0, Flash Player waited for the buffer to fill up before resuming playback, which often caused a delay.

I'm using Flash Professional to do the debugging, and the traced version number is: MAC 10,0,22,91, and it appears for both FMS4 and red5.

View 1 Replies

Media Server :: NetStream.Buffer.Flush When The Video Is Paused?

Dec 26, 2010

I notice that, when I pause the video, the event "NetStream.Buffer.Flush" is triggered. And according to the language reference: "Data has finished streaming, and the remaining buffer will be emptied.", I have to re-buffer it, right? However, also according to the reference, it shouldn't stop buffering:Starting with Flash Player 9.0.115.0, Flash Player no longer clears the buffer when NetStream.pause() is called. This behavior is called "smart pause". Before Flash Player 9.0.115.0, Flash Player waited for the buffer to fill up before resuming playback, which often caused a delay.I'm using Flash Professional to do the debugging, and the traced version number is: MAC 10,0,22,91, and the streaming server is FMS4

View 3 Replies

Flash :: NetStream.Buffer.Full Not Fired After Call To NetStream.pause?

Jul 6, 2011

I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:

_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....

View 1 Replies

Flash :: NetStream Object Buffer Fails To Fill And Video Just Freezes?

Nov 22, 2011

I have a Net Stream object that I am using to stream video from an Amazon Flash Media Streaming service.The video makes a connection and plays fine but randomly it seems to just freeze and the only way to get it to work again is to re-establish the connection. I have tried to put other videos in that amazon bucket as well and they seem to play fine. this happens when it is in .FLV form and .mp4 format.

I have set the buffer time to be 5 seconds and i watch the output of the buffer to see the % of full it is. when the problem occurs the buffer 5 goes from 100 to 0 and then it throws a Buffer fail error (i'm using OVP framework).I have come to the conclusion that it is either a video encoding problem or perhaps there is a firewall issue that blocks the data from getting through.

View 1 Replies

ActionScript 3.0 :: NetStream Buffer In IE?

Oct 27, 2009

i've a very strange problem with a NetStream Buffer only in Internet Explorer (flash player version 10,0,32,18). When I connect to a netstream I use this:

var videoOpe:Video=new Video();
var stream="name live stream";
var nsOpe = new NetStream(nc); //nc is an active netConnection
nsOpe.bufferTime=1;
nsOpe.client=this;

[Code]...

View 1 Replies

IDE :: Can't Get Netstream Buffer To Preload

Apr 8, 2010

I'm trying to make a preloader for the buffer for a 19MB video. I can trace everything, but the math won't do.

Preloading the video itself is no problem. But what I want is to make a xx% preloader for the buffer of this video.[code]...

View 4 Replies

ActionScript 2.0 :: NetStream Buffer Pause?

Apr 10, 2007

I have a video file FLV which is dynamically loaded using AS NetStream function.Now I want to stop the buffering of the video after a certain amount of bytes are being loaded. For example, the FLV size is 10mb and I want to PAUSE the buffer after the 2mb of bytes are loaded. During the PAUSE of the buffer, the connection should be ON and I should be able to play the video.Is there any way we can PAUSE the buffer and after certain amount of time, we again can START the buffering process? Say it should again start buffering after 2 minutes.

View 2 Replies

ActionScript 2.0 :: CS3 Using NetStream, Buffer Animation Keeps Reappearing

Mar 8, 2009

I'm using netStream to stream dynamically loaded flv's into a video gallery. I've created a "buffering" animation called "bufferCounter" that loops while the stream is buffering. However, it keeps reappearing at odd times in front of the movie.

I'm assuming it's doing this because the buffer is no longer at 100%, but I can't seem to work around it.

Here is my code for reference:

Code:
// Create a NetConnection object
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection

[Code]....

View 7 Replies

ActionScript 2.0 :: NetStream.Buffer.Empty Not Working?

Jun 25, 2009

I have 9 videos in a gallery. Each one gets displayed in a custom video component. When you navigate to watch a new one a new NetStream is setup.I have 2 problems. Basically if you don't watch the video right to the end and when you select and watch a new one:1. a "buffering video" movieclip does not display correctly (or at all) indicating that NetStream.Buffer.Empty isn't working properly (maybe its referencing the previous movie ???).2. when the next movie is buffered and starts you hear a little split second glitch of sound (which sounds like its from the previous movie).

both these problems seem to indicate that in some way the previous movie is still lingering around and in some way needs to be 'flushed' away so that on the next movie the code to display the 'buffering video' message works properly and you don't get this legacy remnant of sound for a split second.At the beginning of the code for each movie I have placed:

ns.pause();
player.clear();
ns.close();

[code]........

View 0 Replies

Actionscript 2.0 :: Netstream Buffer Visible From Start?

Jan 23, 2009

I have made a video player based on the code from Lee's tutorial and I have modified it with help from code found in this forum. The video is paused from start and thats fine, but the bufferClip shows all the time (like forever) until i press the play button, I just want the bufferClip to be visible for as long the video is buffering.

Code: Select allns.setBufferTime(4);
var firstPlay:Boolean = true;
ns.onStatus = function(info){

[code].....

View 1 Replies

Media Server :: Publish Live Stream(H.264) To FMS(NetStream.Buffer.Empty)?

Feb 27, 2011

I am developing a C++ program to connect FMS via RTMP, and then publish a live stream I can't use FMLE here because I need collect the H.264 NALU from somewhere and forward them to the FMS.I write a demo app, which parses H.264 encoded FLV file, and send the VideoTag in the FLV as RTMP Message content for publishing.Finally, I make it run and I can see some frames of video!But the problem is: The video does not play smoothly and it just updates some frames.
Then I looked at the NetStream event and found that:Everytime when there is a NetStream.Buffer.Full event, the frame in the video is updated and display correctly But immediately there is another NetStream.Buffer.Empty event followed and the video is frozen.
 
[code]...

View 1 Replies

ActionScript 3.0 :: NetStream.Play.Stop Firing Early In Chrome?

Feb 4, 2011

Is anyone having trouble with Chrome getting NetStream.Play.Stop early in Chrome? Seems to fire around the time the buffer has filled. Same code is and has been working fine in all other browsers for some time.

View 2 Replies

Media Server :: Player Debug Output Messages While Out NetStream.Buffer.Empty Will Stop.Screenshot

Jul 2, 2011

dvrcast is a live service.mp4: as the service record and I look over to the dvr sample player debug output messages while out NetStream.Buffer.Empty will stop.Screenshot is shown below. Is it possible to do without stopping the service?

View 6 Replies

ActionScript 3.0 :: How To Flush Flash's Memory

Mar 19, 2011

Right now, I'm doing a lot of byte write operations, and I believe this is taking up a bunch of memory, which is then throwing an error. Is there anyway to flush some unneeded memory every now and then? It's not flushing the memory every time I run it in the fla either.

View 3 Replies

Flash CS4 Unexpectedly Quits Repeatedly

May 12, 2009

I've been using it fine - until the last month - I've completely uninstalled it - and reinstalled it. I was having this problem before I upgraded to 10.5.6... thought upgrading the OS may work - it hasn't. I'm on a MacBook Pro

View 6 Replies

Javascript :: Flush The DNS Cache Or Force A Host Name To Re-resolve In Adobe AIR/Flash?

Aug 9, 2009

AIR seems to keep its own DNS cache when an application is running, and ignores any changes to the OS DNS cache (i.e. ipconfig /flushdns.More specifically, I'm creating multiple URLStream & URLRequest objects over a long period of time in a AIR application. Once the first one connects the host's IP address is cached for the lifetime of the application.And the URLRequest.useCache property,understandably,has no effect on DNS caching.how to force a host name to re-resolve inside a AIR (or Flash) application?

Note: Unfortunately, resolving the IP through a web service and rewriting the URL is not an option as a workaround.The use-case is downloading files from Amazon S3 using signed URLs which are invalidated if modified.

Update: The test results above were gathered on WinXP prior to AIR 1.5.2. Subsequent tests using 1.5.2 show serialized requests with URLStream.load() are re-resolved more frequently but still ignore TTL values.I still haven't figured out what conditions are necessary to trigger the re-resolution, but have noted a couple of cases that prevent it.For instance, if another asynchronous URLStream is active to the same host then requests use the cached IP address and are not resolved. And simply closing and dereferencing all streams to a host is not sufficient to ensure the same host name will be re-resolved in the next request.

View 1 Replies

Professional :: CS4 Flash Crashes Repeatedly On Saving?

Jul 6, 2010

I've got a large(at least I assume it's large, ~200meg) flash file I'm working with that upon saving, it goes into the dreaded "(Not Responding)" mode.  Is this a symptom of being such a large file?  It's image intensive--I can try reducing the image quality--or is there something else I'm missing?I'm on a toshiba laptop, using the latest version of windows.

View 3 Replies

Flash :: Can't Stop Page From Flashing Repeatedly

Nov 20, 2011

Well first off here is my script so far on the page[url]...

Using Pastie to keep amount of text on thread low to make things easier to read.

Here are the errors I get everytime I try to debug or Test Movie[code]...

View 1 Replies

Professional :: Cant Stop Flash Page From Flashing Repeatedly (making Website)

Nov 20, 2011

Well first off here is my script so far on the page:
 
[URL]
 
Using Pastie to keep amount of text on thread low to make things easier to read.
 
Here are the errors I get everytime I try to debug or Test Movie:
 
[URL]
 
Also maybe if you can help a bit with it heres the check list that this is graded on. Also no I am not trying to make you guys do my work for me its just he gave us this project but I have been at work (17) and unable to finish it at all. Please help I dont want  a bad GPA this ending semester.[URL]

View 1 Replies

ActionScript 3.0 :: Error On BitMapData.draw() After NetStream.pause() Then NetStream.seek()

Feb 25, 2010

I am working on an app that will take a snapshot of an rtmp stream of an archived video, save it to a file, and ExternalInterface the file name to the hosting page to javascript it up for display.

I actually have all pieces working great. The only time an error is thrown is when I pause the video, seek to somewhere, and then try to take a snapshot. Then there is a runtime error of:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mySwf.swf cannot access rtmp://myFlashServer/myApp. No policy files granted access.I've seen post after post of suggestions and have tried them, but without success.

I have the crossdomain.xml and my FlashMediaServer security setup fine (it is actually working, except for this one glitch). It just seems to be the pause-then-seek-then-BitMapData.draw() combination which is creating issues.

Another weird thing: after the error is thrown, if I resume the stream and take a snapshot, it works flawlessly again.

View 5 Replies

ActionScript 3.0 :: SharedObject.flush() Reasons For Failure?

Apr 9, 2010

So I've looked all over the internet for this answer and have found nothing.I'm writing data to a shared object and need to know when it's successfully written to disk so I can take further action.Most of the time the shared object gets successfully written, but some times, for reasons unknown, it will fail.So my question is, what are the reasons a call to flush() can fail and how best can I avoid that case and ensure that its successfully written?

View 5 Replies

ActionScript 2.0 :: Making A Site Flush All Sides?

Feb 22, 2007

[URL]its like the whole area of the window is flash, he has it ALL over without scrolling. now what im interested is in the no scrolling part. is it a size thing? and if it is, do the values have to be set in flash or in a program like DW?

View 1 Replies

ActionScript 2.0 :: SharedObject - Cannot Get Flush To Return False

May 11, 2007

I have set the amount of data that my SharedObject can store to none, and Never Ask Again. But I cannot get SharedObject.flush() to return false as per the help system. Settings changed here: [URL]

Code:
stop();
var so:SharedObject = SharedObject.getLocal("myObj", "/");
// trap SharedObject memory limit set to 0

[Code].....

View 1 Replies

Media Server :: Flush SharedObject In A Separate Thread?

Nov 23, 2011

How to flush SharedObject in a separate thread? FMS is blocking the program during write, and to save more than 2,000SharedObject takes about 15 seconds.

View 2 Replies

Flex :: Error #2130 Unable To Flush SharedObject

Apr 22, 2010

I cant flush the shared object in my project. What can I do for that problem?

View 4 Replies

Flex :: Set TCP_NODELAY To Socket.flush(), NetConnection.call() Or SendToURL()?

Jun 25, 2009

I'm writing a real-time app using a Flex/Flash client and my own server running on Linux.

I'd like to be able to send data from the Flex client in real time (in response to user actions). I've tried the following methods:

flash.net.NetConnection.call()
flash.net.sendToURL()
flash.net.Socket.write() followed by flash.net.Socket.flush()

[Code].....

The second nc.call() above won't send data to the server until the ACK for the first call has been recieved. I'd like to be able to send data immediately without waiting for that ACK.

If the round-trip time to the server is long (e.g. 300ms) I can only send data to the server 3 times a second. Ideally I'd like to be able to send data up to 30 times per second, but this is only possible with a RTT of around 30ms at the moment.

It doesn't matter if the server itself gets the data 300ms late - I realise I can't beat the speed of light.

Is there any way to get the Flash Player to send data without waiting for an ACK? In other environments this is done by setting the TCP_NODELAY flag on the socket but it seems I don't have that level of control in Flash/Flex.

Update: I think I may have stumbled on a workaround for this. I think the Flash Player tries to get the host browser to give it a separate TCP connection for each NetConnection object, subject to the connection limit for each browser, e.g. 2 for IE. The connection limit can be got around by using sub-domains (haven't tried this yet) so hopefully it should be possible to get closer to real-time behaviour by using a pool of NetConnections.

View 2 Replies

ActionScript 2.0 :: Tween.onMotionFinished Repeatedly?

Jun 26, 2006

I'm trying to animate entirely in AS for the first time. (Woo!) I'm using the Tween class, with the very convenient Tween.onMotionFinished to invoke my next animation. But once I get pretty far into it, it starts to look like this:

[code]...

I've found that, when applying a tween to a function, I am unable to refer to that tween (specifically, onMotionFinished) from outside of it. This works okay but leaves me with some rather ugly ActionScript!

View 4 Replies

ActionScript 3.0 :: Referencing The Same MovieClip Repeatedly?

May 31, 2010

I'm trying to make a loader class that will spit back MovieClip data from the Loader. If another class/function requests the same data (Rather, the same file), rather than making a new loader and re-loading it, I was hoping to just have it return the same MovieClip. This all works to some extent, but the problem I'm having is this - Because the new request is adding the MovieClip, it's taking it away from the old one.

I tried making a copy when the request is made, but the image is generally not loaded then, and because the copies aren't updated, most of the images are empty when everything requests it.So basically what I'm hoping you can guide me towards is a sort of... C++ pointer-esque thing, something that could point to the MovieClip data without actually taking it away from everything else. I've messed with AS3 for a while, but can't find anything like that. Or any other method that would let multiple MovieClips reference a single "original" movie clip, reference-style.

View 2 Replies

Flash :: Set A Buffer Graphic Using OSMF?

Jun 29, 2011

I'm building a pretty simple player and have a a buffer size set on my MediaPlayer (mediaPlayer.bufferTime = BUFFER_TIME). That's working but I want to show a graphic whenever it starts to buffer. I have an Event Listener on my mediaplayer to show and hide but it doesn't seem to be working properly.[code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved