Actionscript 3 :: Buffer Stream When The Video Is Paused With Flash?

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


Similar Posts:


ActionScript 3.0 :: How To Buffer Stream When The Video Is Paused

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

ActionScript 3.0 :: Buffer Stream When The Video Is Paused?

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

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

Flex :: Flash - Buffer + Live Stream Via RTMP?

Jan 27, 2010

Live streaming and a buffer on a NetStream do not mix. Why? The docs don't say you can't do this.The playback gets hosed. Buffer is supposed to fill to what you set it to before playing. Instead though, about half the time, the player starts playing right away and disregards the buffer time you've set. Then you get caught in short buffering and rebuffering cycles that degrades the playback experience.

Give it a shot yourself. Here is the simplest of live streaming video players. No frills. Just connect it to your live stream by changing the defaultURL string and stream name in the ns.play() statement.

Run it in Flex debug mode. It will check and print the ns.bufferLength property every second. The buffer is set to 20 secs currently. Last time I ran it, I never made it above 2 seconds in the buffer. Player started playing right away instead of buffering the full 20 secs first. Sometimes you get to the full 20 and sometimes not.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
initialize="init()">
<mx:Script>

[code]....

View 2 Replies

Php :: Flash Video Player Buffer And Large Video Files

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

Flash :: Error Appears When Resuming The Paused H264/mp4 Streaming Video From Red5 Server

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

ActionScript 3.0 :: Stop The Video Buffering When Video Is Paused?

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

Media Server :: Buffer A Live Webcam Stream?

Aug 20, 2009

Should I buffer a live webcam stream?

View 1 Replies

ActionScript 3.0 :: Play MP3 Sound From Buffer (ByteArray / Stream)?

Oct 25, 2009

I have a buffer with MP3 data (If I would save this buffer and call it buffer.mp3 it would play, but in this situation I should not save it to file system). I have to play it, but I can not, what shall I do? I tried the next code to play that buffrer(ByteArrayStream) (I get MP3 data from server the method of getting data works fine (tested on text int's etc) I call the returned ByteArray readResponse because I have some seading method and It is it's response).

[Code]....

View 5 Replies

Getting Video To Start Out Paused In Stead Of Playing?

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

ActionScript 3.0 :: Dynamic Stream, Initiate, Buffer But Dont Play?

Feb 10, 2010

is there a way to start a stream, let it buffer, but pause it on the fast frame? (or not start it at all) the manual pause call is way to slow.

View 4 Replies

Javascript :: Hide Div After Specific Time And After Buffer The Flash Video

May 1, 2010

i embed a video in my html page and i want to hide div after complete the video. and a specific time.my video time is 12 sec.
I am using this function

$('#fvideo').fadeOut(12000);

and html code.

<div id="fvideo" class="video">
flash video
</div>

UPDATE

actually what i want is that

flash video fadeOut time should start after buffering completely.

or is there any way to fadeout that div( containing flash video) after buffering and running(once) successfully.

View 2 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

Media Server :: Clearing Application Buffer After A Live Stream Ends?

Mar 16, 2012

I'm sure this has been asked and answered a million times, but searching for "application" "buffer" "cache" "live" and "hls" isn't giving me any answers, so let's get to it. After I end a live stream (which I do using FMLE 3.2 and FMS 4.5) and I then start a new live stream with the same application name, the HLS stream just loops the last 30 seconds of the old stream. To prevent this, after I end a stream, I have to go to applicationslivepkgstreams\_definst_ and delete the buffered data there. Only then can I start a new stream with the same name as the old stream. Now... that can't be normal, can it? Is there a switch somewhere I can set to tell FMS to cut it out and stop buffering old streams?

View 1 Replies

ActionScript 2.0 :: Video Paused When Loading Via NetStream Object Within A Function

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

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 :: Flash Buffer Bar Doesn't Show Up Until Video Is Completely Loaded

Feb 27, 2011

Ok, so I have tried and tried to figure this out. Of course in the test environment everything works beautifully, but when I test my swf on my site, thats when the sh*t hits the fan.

The problem is my buffer bar wont show up until the video is completly loaded. In flash however, it loads across as the video is downloaded, like it's supposed to.

Go to my site to see what I am talking about. The loader bar appears uder the progress bar, exactly like on youtube. www.blankensteincreations.com

Here is the code that controls it.

Code:
mcVideoControls.mcProgressFill.mcFillGrey.width = nsStream.bytesLoaded * 710 / nsStream.bytesTotal;

Of course that is wrapped in a timer funtion which, I add, works fine.

FLA is attatched as well as the code below so you can see how it works in flash.

Here is my full code:

Code:
const BUFFER_TIME:Number = 8;
const DEFAULT_VOLUME:Number = 0.6;
const DISPLAY_TIMER_UPDATE_DELAY:int = 10;

[Code]....

View 11 Replies

Flash :: Save Video Stream From Webcam As An Image Instead Of An Flv Video File Using ?

Jun 30, 2010

This will create an flv video file on flash media server:

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.publish("yourCamera", "record");
ns.attachVideo(Camera.get());

How can I generate an image for the current video frame every 2 seconds?

View 1 Replies

Flash :: Video Broadcasting - Stream Webcam Video From One Computer To Another

Feb 16, 2010

For fun I'd like to recreate [URL]. Basically i need to be able to stream webcam video from one computer to another using flash.

View 1 Replies

Remove Any Buffer On Video?

Oct 14, 2007

I'm trying to figure out how to REMOVE any buffer on video. So imagine it like this. You have a live stream set up on a server, and a flash app plays that live stream. I need it to use rtsp as well.does anyone know how this is done in flash? or a way in flash to view/show live feeds?

Similar to using VLC Player, and upening up a rtsp feed, it plays in the player. I need that exactly, or very close to using flash.

View 0 Replies

ActionScript 3.0 :: Find Out When Set Video Buffer Is Full?

Jun 27, 2009

I can fade the video in?

I have set: netStream.bufferTime = 10;

and when that buffer is first achieved I want to fade in the video like so:

TweenLite.to(videoSprite, 2, {alpha:1});

the only way I could think of right now is like [code]...

View 1 Replies

ActionScript 3.0 :: Possible To Add A Buffer To A Video That Is Loaded Though FLV Component?

Feb 3, 2011

Works fine however online it takes some time to start and it just has a blank screen for about 7-8 seconds before it starts the videoIs there any way to add a buffering message until it loads the video?I know that buffering is easier to do with NetStream.. but in this case im using Flash's CS5 FLV component which it doesnt give it as an option in the properties...

View 6 Replies

ActionScript 3 :: How To Create App With Looping Video Buffer

Sep 16, 2011

I'm trying to create an AS3 app with looping, seamless video background. The background is loaded from an flv. The problem thus far is with the seamless bit, because all the video looping tactics I've come accross regarding AS3 always seem to have that short but noticeable pause at the end of the video before going back to the beginning and playing again.

The best way I've determined to deal with this is to play a video and buffer the video frames as BitmapData objects into a queue of a defined length (without adding the video to stage). This way Rendering the video would then really involve popping each of those BitmapDatas into a Bitmap object attached to my stage in a timed manner, which then gets drawn.

Sort of like:
/*VideoBufferer loops the input video and queues frames and then updates*/
var vidbuffer:VideoBufferer = new MyVideo("video.flv",outputImage)
var outputImage:Bitmap = new Bitmap();
stage.addChild(outputImage);
//forgive syntax, this is pseudoCode
timed process that happens X times per second{
outputImage.bitmapData = vidbuffer.popBitmapData();
//returns bitmap data from the queue }

I don't care about sound. However I seem to not know how to implement this desired VideoBufferer class as I don't know how to play a video without adding it to stage and grabbing frames from it. How to implement the frame grabbing side of VideoBufferer?

View 1 Replies

ActionScript 3.0 :: Buffer Next Video While The Current Is Playing?

Jun 26, 2009

I have a video in my web background, and I was wondering could I buffer the next video (if the current has finished downloading) while the current one is playing?

View 7 Replies

ActionScript 2.0 :: Video Lags After Buffer Is Complete?

Jul 2, 2009

I'm using NetStream to show my videos, everything works fine except the annoying lagging that I get after the video has buffered. The video simply skips/ jumps to the point that it had buffered to, stops and waits again for the same amount of it to buffer then plays normally.Me changing the seconds that it takes to buffer doesn't effect it. The action script is as follows:

stop();
ns.play("blank");//stops video playing in the background
var nc:NetConnection = new NetConnection();

[code]........

View 0 Replies

ActionScript 3.0 :: Implement Buffer In Video Recording App?

Apr 30, 2011

I am developing an webcam recorder and would like to implement the buffer concept in order to avoid the dropping of video frames.[code]...

View 0 Replies

ActionScript 3.0 :: Buffer Video And Timing With Movieclips?

Jan 21, 2012

I have an issue that i'd like some help with I'm a beginner to actionscript 3.0 so i'm sorry if there is any "Obvious" mistake. Oh well, here goes nothing:For my school project, i've done a flash video project which works perfectly fine EXCEPT, which is an issue i did not foresaw which was that when i put my project on an FTP, the video would need time to buffer before it would play. Since i worked with the flash video locally, this was not an issue.

On flash, i have a video that plays and stop with a button. This video is being simultaneously played with a MovieClip. My problem is that, when a video is being buffered, the MovieClip would start without it. The Video and the MovieClip is on different layers and on KeyFrame2. Keyframe1 is a start button.

[Code]...

View 6 Replies

Media Server :: Set The Buffer To 30 Seconds For Live Video?

Aug 16, 2010

We purchased the Adobe Flash Media Sreaming Server 3.5.

My question is, the client wants to set the buffer to 30 seconds, so if an error is encountered the live feed feed will not be interupted.

Is this set from the Adobe client that is recording the video or is this a setting on the server?

View 9 Replies







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