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
Similar Posts:
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
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
Nov 30, 2010
I need a feature of allowing buffering the video when it's paused, which I cannot find how to do it directly... 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:
[Code]....
View 1 Replies
Nov 30, 2010
I just made it clear of the differences between the progressive video and streaming video *^_^* But I do need a feature of allowing buffering the video when it's paused, which I cannot find how to do it directly... I followed an article ( url...) to manage the buffer strategy but it didn't solve my problem. My problem is: if the user has a very slow network condition, he/she might want to just pause the video manually, and wait it to be downloaded until it's 'pretty much', and he/she can watch it without interrupting. But 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 for the streaming server, I use red5.
View 1 Replies
Nov 28, 2010
just made it clear of the differences between the progressive video and streaming video *^.^*
But I do need a feature of allowing buffering the video when it's paused, which I cannot find how to do it directly...
I followed an article (I'm not able to post the url) to manage the buffer strategy but it didn't solve my problem.
My problem is: if the user has a very slow network condition, he/she might want to just pause the video manually, and wait it to be downloaded until it's 'pretty much', and he/she can watch it without interrupting.
But 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?
I really expect the "buffer when paused" functionality, is it possible to do?
p.s. I'm using red5, not fms, although I haven't touched the difference part of them.
View 3 Replies
Nov 22, 2010
I just met a piece of error log when I was trying to resume the paused mp4 streaming. Here is the log from the server:
[INFO] [NioProcessor-1]
org.red5.io.mp4.impl.MP4Reader - Frame
position was not found for timestamp:
92000
I'm using Red5 newest 0.9.1 final for mac os x to stream the H.264/AAC encoded MP4 file to my flash app.
And there's no problem when I'm resuming the .flv file.
View 1 Replies
Apr 1, 2006
I'm having a problem loading an FLV file via the NetStream object.
The following is on frame 1 of my root timeline:
Code:
loadMovieClip();
function loadMovieClip():Void {
// Create new NetConnection object
[Code]....
The code is EXACTLY the same, except it isn't within a function, yet the latter example plays the video correctly, and the first example doesn't.
View 2 Replies
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
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
Feb 1, 2009
hey guys, what would be best to use on a full browser video, where the video should resize as the browser resizes and the flv will be streamed?
View 3 Replies
Jul 22, 2009
how I know the status of the NetStream whether it is playing or paused or stopped
View 7 Replies
May 1, 2011
Am building a video chat application and i was wondering if there are any native events for the NetStream that fire,that can help in detecting when a remote client starts/stops streaming video over his outgoing stream (NetStream) to which the other client has subscribed over P2P/RTFMP in AS3 ?I maybe able to dispatch custom messages since the two clients are already connected, but i don't want to add the extra overhead.
View 1 Replies
Mar 23, 2010
I have a player set up to stream live tv channels. It works fine except when paused for more than 10 secs or so, it continues to stream but very jumpy, as if we press on advance/rewind button.
View 2 Replies
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
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
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
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
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
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
Aug 4, 2011
We have developed flash video player which needs to playe large videos (at least 500 MB videos).We have some issues in the player right now.I am playing a 100 MB + video, it start playing and say it is buffering upto 50% of that video. Then I am closing that page. If I take that video again, it starts downloading from beginning. It never resume downloading from where it buffered previous time. But for small video files, this is looking ok. Is there any size limit a video player can buffer?Is there any better way to play large videos (more than 500 MB). Any other protocol or any other settings in flash player?
View 1 Replies
Jan 11, 2012
I am developing the video player with custom video controls and I want to stop the video buffering when my video is paused. As sson as I play the video the buffering starts from the last bufferring point.
View 8 Replies
Mar 23, 2011
I'm building a very simple publisher for the webcam in Flash. I want to select a camera and send the stream to a RTMP URL, basically:
Camera camera = Camera.getCamera();
NetStream ns = new NetStream(connection);
ns.attachCamera(camera);
ns.publish("stream name");
Now, I know I can set a mode on the camera, like this:
[Code]...
View 1 Replies
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
Jul 10, 2010
I am trying to figure out how to use http dynamic streaming with flash 10.1 but I can't get the basic functions working. What is the syntax for using appendbytes with a video file?
package com.player {
import flash.display.Stage;
import flash.net.NetConnection;
[code]......
View 1 Replies
Jul 20, 2010
I have built a video gallery. All videos are stored on a video hosting server. Throughout my timeline, I have various FLVPlayers mapped to their relevant video. The videos are generally from 45 mins to 1 hr 15 mins in length. I am finding that the video doesn't start to play until a player has been sitting there for 5-7 mins. I am assuming this has something to do with the buffer timeframes HOWEVER, when I attempt to access the same MP4's through Google Chrome, they start playing within 10 seconds.
There is no actionscript refering to the videos or onClip handlers. The video players are there and simply refer to URL of the video it should be playing.
View 7 Replies
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
Feb 15, 2010
I have a service running off a FMS and I was wondering how I would get a stream to keep downloading the rest of the file even while streaming. For example, like YouTube downloads the entire video while you're watching it, much like Progressive Download does but I want that from my streaming server.Or even better than that, if I could buffer at least 20 seconds ahead of the current stream position. If I use NetStream.setBufferTime(20) - the stream doesn't play until at least 20 seconds has been buffered, but I want it so that it will play even though it hasn't buffered completely, but will keep buffering while streaming.
View 1 Replies
Nov 3, 2009
As the piece of music I use on the intro page to my site has become quite lengthy, I decided to stream it rather than imbed the file. I used (AS2):
var mySound:Sound= new Sound();
mySound.loadSound("melange.mp3" , true);
mySound.onLoad = function() {
mySound.start();
}
Which worked fine, the only problem being that after a certain amount of time (which varies depending on computer, bandwidth etc.) the tune will stop and then immediately start again from the top. After this, it will play back fine every time I load the page, until I empty the cache, turn off the computer, etc.
All this leads me to believe that I have a problem to do with buffering. Im thinking that if there was a line of code to override the default buffer size, I might be home free.
View 1 Replies
Aug 14, 2009
I DO NOT KNOW FLASH - let's just get that straight. I do not know actionscript, and I'm not familiar ith the interface. But I do know how to open a document, drag a .flv into the frame, add a playback skin, and save a swf for use on a web page.
The problem is that the videos all start playing on default. I'd like the user to have to hit the "play" button to play the video so that they are not inundated with sound when the page loads.
View 2 Replies