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


Similar Posts:


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 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 :: 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

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

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 :: 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 :: 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

Media Server :: NetStream.Play.Stop And Complete Fired Early On RTMPE Streams

Oct 20, 2011

I am experiencing an issue with playback on RTMPE streams. after investigation it seems that the FMS server is firing the NetStream.Play.Complete message at random points, indicating that a stream has ended. This is happening and random points during the stream,  not even close to the end.[code]As you can see roughly 17mins into playback...although the stream is 1 hour 24mins long.I have tested this numerous times, and each time it is at a different point in the stream.Intermittently the NetStream.Play.InsufficientBW warning is being fired prior to NetStream.Play.Stop.I am using a player built on OSMF 1.5

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

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 :: Pause NetStream Loading?

Dec 21, 2009

i have this (becoming-abnoxious) client, for which i make a video player (using the NetStream class), who came out today requesting that instead of starting to load the video only when the user clicks the 'play button, he want the video to begin downloading as the player loads (before the user clicks the 'play' button), but only the first 10 minutes of video (most of his videos are long, even up to an hour), and after that the loading will pause, and will resume (from the same point of course) after 3:30 minutes if the user doesn't click the 'play' button in the meanwhile.

i told him no-can-do: i can pause the download after (give-or-take) 10 minutes of video were downloaded, but once the downloading resumes it will start from squqre-one (using what has downloaded to the browser's cache). his reply for that was 'i don't take no for an answer, find a way'.before i give him the 'no-can-do' again, is there anybody who think that my client request is doable?

View 1 Replies

Actionscript 3.0 :: FLV NetStream Pause() Doesn't Work

Apr 30, 2008

I followed lee's tutorial to create my own video player and I'm using AS3 for that. The problem is that for some reason, pause() doesn't work, it will pause the first time I clicked it, but it wouldn't go back and play again. I looked through AS3 books and online, everything tells me that pause() should be able to pause and resume. Another thing is that if I try to use pause(true), an error would appear and tell me that the argument should be no more than zero, and I'm like "why?????" so here's my code, it is basically based on lee's code but in AS3...

[Code]....

View 3 Replies

ActionScript 2.0 :: F8 Play / Pause Clip Not Working With NetStream

Feb 6, 2009

I've got a play/pause movie on my timeline to control an FLV via NetStream. The idea is to switch from a play symbol to a pause symbol, but it's not working.[code]Clicking on the clip will start and stop the flv just fine, but the symbol switch doesn't happen. When I take out the ns code, just to check and see if the switch will actually work, there's no problem.What am I doing wrong? How can I get my clip to change from a play to a pause symbol?

View 1 Replies

ActionScript 3.0 :: Error: "NetStream.Play.StreamNotFound" While Playing Mp4 File Using NetStream Object?

Jan 7, 2010

I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:

var url:String = <some http url>;
connect_nc = new NetConnection();
connect_nc.connect(null);

[code]........

View 0 Replies

ActionScript 2.0 :: [CS3] Netstream Play/Pause - Show A Couple Of Short Animations?

Feb 20, 2009

I'm using netstream to show a video in .flv.Over this video I need to show a couple of short animations, and when they play, I need to paus the long video so it doesn't plays in advance in the background.I've got this script to pause the movie:

Code:
btnPlay.onRelease = function () {
ns.pause();
}

But how do I apply it so that when the timeline hits a certain frame, it calls it. I mean, the user can't really know when to stop to see the animations, so it has to be done at a specific time.

Code:
this.onEnterFrame = function(){
ns.pause();
}

Would do it.

View 1 Replies

ActionScript 3.0 :: Function NetStream.pause() Process Incorect When Embed Swf In Webpage

Oct 26, 2008

I use NetStream to play media file. It includes pause, resume functions. When running in the flash player, there isn't any problem. However, when embedding this swf file in web page, there is following problem. - If clicking [pause] button and then (in short period) clicking [resume] button to continue playing, no problem. But, if clicking [resume] button after longer period (bigger than playing file's time), the swf file will start playing at the next media file in the list, NOT at the time that was paused.

I would like to send the source code link: [URL]

i can't test this article [URL] when I pause netstream. it clear buffer. when I resume it rebuffer

View 1 Replies

Actionscript 3 :: NetStream.info, Getting Error #2154 "The NetStream Object Is Invalid"

Mar 20, 2012

In my application I have a video playing from a NetStream. Every second on timer I update a text label with statistics like stream.info.currentBytesPerSecond. The problem occurs when the NetConnection associated with this NetStream closes: the getter for stream.info throws

[Code]...

View 1 Replies

ActionScript 3.0 :: Can't Seem To Call The NetStream.onStatus Event

Jul 23, 2009

I'm just trying to build as simple of a player as possible, and I have it working how I want it to, but I need to figure out how to know when the video ends so I can call any callback functions I might want to be called.I've spent the better part of the last 3 hours trying different examples online, but none do anything. It compiles fine, but just doesn't do anything...

I'm attaching the code I already have, and would appreciate it if anyone could point me in the right direction.

ActionScript Code:
var _path:String = root.loaderInfo.parameters.Path;
var _w:int = root.loaderInfo.parameters.Width;
var _h:int = root.loaderInfo.parameters.Height;

[code]....

View 4 Replies

ActionScript 3.0 :: Used NetStream.appendBytes() ,but Cannot Call BitmapData.draw()?

Nov 14, 2011

the tips: Error #2123: Security sandbox violation: BitmapData.draw: cannot access null. No policy files granted access.
 
Here is some sample code

[Code]...
 
This is only sample code use for an explanation. The error would happen when calling the getImage method while the video is playing. The error mentions a policy file not found. Since the file is loaded locally there isn't really a place to put a policy file. Is there a policy setting somewhere that needs to be set or is the BitmapData.draw feature just not available when using appendBytes? It is a local flv file,  not an ramp stream from a server.

View 9 Replies

ActionScript 3.0 :: NetStream.Connect.Closed - Know Which NetStream Has Been Closed

Aug 2, 2010

A NetStatusEvent with info.code of "NetStream.Connect.Closed" is dispatched by NetConnection when a NetStream is closed. This seems kind of weird, shouldn't the NetStream dispatch the event? how do I know which NetStream has been closed if I have more than one running (which I do)? I need to know so I can cleanup the now dead stream.

View 1 Replies

Flash :: Multiple Audio To NetStream?

Sep 9, 2011

I am working on a video conferance projectthere will be a lecturer and an interpreter.interpreter will write the translated text simultaneously.what I am trying to is add vocal translation but I also want to keep the original audio is it possible to attach multiple audio to netStream or do I have to create another netStream for 2nd audio??

View 1 Replies

Flash :: Add BitmapData To A NetStream Publishing To A FMS?

Oct 28, 2011

A webcam feed is published to a Flash Media Server. Now I want the Augmented Reality layer to be a part of this video capture, rendered into one NetStream.

Has anyone done something like adding a watermark to a NetStream before?

View 2 Replies

Flash :: Netstream Play In The Middle Of A Video?

Jan 19, 2010

I'm using the netstream and video object to play a video in flash. Specifically a mp4 video.

What I'm trying to do is start playing the file from a specific position (Ex. 20seconds).

However with netstreamObject.seek(20) doesn't work unless the stream has been loaded past 20seconds. Is there a way to specify starting to load at 20s? Or any other way of accomplishing this?

View 5 Replies

Flash :: Start Or Seek To Sub-second Intervals With NetStream?

Jan 20, 2010

I am working on a Flash Video player and am implementing the ability to start a video at x time within the span of an FLV (served from FMS). I am able to start it x seconds into a stream without any issue using

netStream.play(source, startTime);

but as far as I can tell, it only supports seconds. I am looking to be able to give a start time (or even a seek time if that is supported) in milliseconds, or really anything more precise than whole seconds.

Anyone know of any way to achieve this even by monkey patching the fl classes?

View 1 Replies

Flash :: NetStream Status Events Not Work?

Jan 27, 2011

I have a bunch of potential random strings for recvStream.play("randomstring");then i have a timer checking every 5 seconds on a function that runs an event listener:

recvStream.addEventListener(NetStatusEvent.NET_STATUS,
netConnectionHandler);

then im thinking in a switch statement i can use it to check if it's an active stream or not to either have it search for another stream that should be active or stop the timer and let it play.

// i was thinking this would verify it's playing and then that's it
case "NetStream.Play.Start" :
trace("ITS PLAYING YOU SHOULD SEE SOMETHING");[code].....

//I also tried NetStream.Play.StreamNotFound instead of NetStream.Buffer.Empty didn't work either.But it really doesn't work like that. Is there something else I should be using instead of NetStream.Buffer.Empty ? Or something else all together? I'm using Actionscript 3 in Flash CS5 and I'm using Cirrus RTMFP

View 1 Replies







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