Actionscript 3 :: Get Netstream BytesLoaded And BytesTotal From Streaming .mp4?

Mar 26, 2010

I have a flex 3 app that uses netstream and a video object to stream .mp4 movies. I want to use the bytesLoaded and bytesTotal properties of the netstream to display the buffering information. I would also like to get any information about the number of frames that are dropped if possible.

When I've tested on .flv I'm able to get the information without a problem, but it doesn't seem to work on .mp4.

Is it possible to get this information streaming .mp4? Is there some configuration that I'm missing to make things work the same for .mp4 as .flv?

View 1 Replies


Similar Posts:


Media Server :: NetStream BytesLoaded Not Registering With Streaming?

Jul 10, 2009

I'm working with a custom made Flash video player using FMS (Wowza, actually).The video is working, yet when I access the BytesLoaded and BytesTotal,I get 0 (zero) for each.This even persists as the video is loading and playing.It's as if it is not even being registered at all.Here's the code:

var amountPlayed:Number = Math.round(ns.time * tlInterval) / Math.round(duration * tlInterval) * tlInterval;
controls.tl.width = Math.round(amountPlayed) * controls.tlw / tlInterval;[code].....

I tested this with a similar player that uses progressive downloading instead, and I get real data.

View 2 Replies

ActionScript 3.0 :: Difference Between BytesLoaded And BytesTotal

Jul 10, 2009

I am confuse about this two method bytes Loaded and bytes Total. I want to see pratical example with trace method. Is there body know how to use this two method .

View 1 Replies

ActionScript 3.0 :: BytesLoaded & BytesTotal Properties?

Jan 31, 2012

i built an preloader class that load any content using Loaders objects created dinamically with a "for" loop and save each Loader inside an array. In this way, i have one LoaderInfo object by each Loader object created. I created a variable whose hold the sum of all bytesLoaded properties values for each Loader object, in other worlds, this variable holds the total of bytes which will be loaded.Here's the code:

ActionScript Code:
var loadURLs:Array = new Array("url01","url02","url03",...);
var loaders:Array = new Array();[code].........

View 9 Replies

ActionScript 3.0 :: Custom ProgressEvent Does Not Report BytesLoaded And BytesTotal

Jun 12, 2009

I have created a custom  progress event in a purpose to pass a handy parameter to event handler:

[Code]....

You see - I am unable to get progress status from my CustomProgressEvent !

View 3 Replies

ActionScript 3.0 :: Stop ProgressEvent.Progress When BytesLoaded < BytesTotal?

Oct 30, 2009

I want to stop ProgressEvent.Progress and two seconds to determine whether the Internet connection is dialup.  Is there a way to stop ProgressEvent.Progress when bytesLoaded < bytesTotal?  Right now, the event continues until the entire *.jpg file is loaded and/or creates a fatal error closing Flash.  Here's the code I'm using:

[Code]...

View 4 Replies

Professional :: Bytestotal / Bytesloaded - Loading Of The Entire Swf Is Monitored Or The Loading Of Objects Which Are Used On The Stage Are Monitored?

Nov 13, 2010

this.stage.loaderInfo.bytesTotal; with that line of codedoes stage mean the loading of the entire swf is monitored or the loading of objects which are used on the stage are monitored? can specific objects (say a specific movie clip) be targeted?can externally used AS scrips be targeted? and what does "this" doe

View 8 Replies

Reset NetStream.time For A Streaming?

Jan 27, 2010

How do i reset netStream.time for a streaming .flv that was intiatied on the server side? It just keeps incrementing on me even after the streaming .flv is done playing.

View 4 Replies

ActionScript 3.0 :: NetStream Doesnt Stop Streaming?

Nov 11, 2010

i have a video object on my stage and i make it play by using ns.play();However, when i want to stop playing by ns.close(), i see from httpfox that streaming doesnt stop but continues.is there any way to really stop steaming anytime i want?it is same when i use FLVPlayback component. when i assign path to its source attribute, it starts streaming without saying it to play..

View 3 Replies

Flash :: Crop Camera Before Streaming To A NetStream?

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

Flash :: Use Netstream.appendBytes() For Http Dynamic Streaming?

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

Flex :: Streaming - Access Raw Outgoing NetStream Data In AIR?

Jun 29, 2011

I have a Flex/AIR desktop application that connects a local camera and microphone to a NetStream for delivery to a Flash media server.However, I would also like to archive a copy of the outgoing stream locally on the filesystem. Is there any access to the actual bytestream of a NetStream object (even in the dreaded mx.internal namespace) that I could turn around and feed to a FileStream for the local archive?

View 1 Replies

ActionScript 3.0 :: Fullbrowser Streaming Video: FLVPlayback Or Netstream?

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

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

Flex :: Detect When A Remote Client Has Started/stopped Streaming Video Over His NetStream With RTFMP ?

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

Media Server :: NetStream.Play.InsufficientBW When Streaming Server Side Playlist?

Sep 23, 2010

I am streaming pre recorded audio files (mp4) to an AIR client. I have tried two different solutions,
streaming the file directly with the NetStream.play("mp4:xxxxx.m4a") and creating a server side playlist, adding the same sound clip and then streaming the playlist. The problem is, when streaming the playlist i get a few NetStream.Play.InsufficientBW, this does not happen when streaming the file direct. Both solutions uses bufferTime=1.0
 
I would like to use a server side playlist to implement a simple key solution so that the client dont know the full path to the file, but instead sends a key to a custom server side function that looks up the file path and creates a stream for the client.

View 1 Replies

ActionScript 3.0 :: NetStream.time - Misreporting Time On Streaming Flv?

Feb 13, 2009

Is there a particular reason that when you stream a video your _netStream.time will misreport the elapsed time of the stream? I've tested streaming vs progressive download and discovered that while progressive netStream.time seems spot-on accurate the streaming netStream.time is behind the actual running time of the flv.

In other words, the video has played to completion and stopped, but the seek bar has only progressed 85% of the way through on a stream.

Is this something to do with the sample rate of the video, or some other encoding issue?

View 1 Replies

Flash :: Streaming - Generate A "NetStream.Play.StreamNotFound" Error While Play?

Mar 2, 2011

I used NetStream.play("invalid-live-stream-url") to play an invalid live stream. The other arguments are using default, e.g. start = -2, len = -1.

The menu says that when we use the default "start" and "len" to call "NetStream.play", "Plays the live stream until it is no longer available. If a live stream of the specified name is not found, Flash Player plays a recorded stream until it ends."

However, I do not have a recorded stream on the server that has the same name as the live stream, and I did not get the expected "NetStream.Play.StreamNotFound" error.

View 1 Replies

Actionscript 3.0 :: RSS BytesTotal Is Zero?

Aug 26, 2009

I do hope this is not too dumb a question I need to preload a couple of RSS feeds. With the following code, if I test with Feed 1 I get the bytesTotal correctly, but if I test with Feed 2 I get 0.

[Code]...

View 3 Replies

Flash :: Why LoaderInfo.bytesTotal Is Zero

Nov 22, 2011

I'm developing a flash file that that will be uploaded to dozens of websites which I have no control over. I found out that one of them seems to be gzipping the swf, which is causing loaderInfo.bytesTotal to be zero. This screws up the loading animation. I tried a workaround of just testing if bytesTotal is zero, if so simply proceed. That doesn't work because, as expected, not all the necessary data has loaded yet. Alternatively I can put a timed delay of whatever the expected load time is, and hope that it covers all the bases.

Does anyone have any other suggestions? Ideally there's an alternative way to define bytesTotal, but I haven't found one. FYI this is somewhat related to this question: Why loaderInfo.bytesTotal is Zero But I can't do the htaccess suggestion because I don't have control over the other websites, some of which may be on windows servers anyway.

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

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

Flex :: Why Would BytesTotal Increase In Preloader

May 4, 2010

I'm creating a custom preloader for a Flex app and have noticed the following behavior: when loading, the progress bar goes to 100%, then down then back up, and so on until the app is finished loading.When I put a trace in the dowloadprogress listener, I see that while the app is loading, both bytesLoaded and bytesTotal increase, but not necessarily at the same time.[code]Why does bytesTotal change during load?

View 2 Replies

ActionScript 2.0 :: MovieClipLoader: BytesTotal Wrong?

May 18, 2007

Code:
var loader_mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();

[code].....

View 1 Replies

Actionscript 3.0 :: BytesTotal In FLV Player Reading 4294967295

Aug 15, 2008

I've got a very annoying problem and I've not got a clue why it is happening. I've created my own FLV player in actionscript 3.0 and I want to create a Progress Bar for my player. I've done all the code for it but it doesn't work properly as the bytesTotal number is 4294967295 instead of the actual size of the FLV until the bytesLoaded gets to the size of the FLV and then bytesTotal suddenly equals the FLV size. [code]As you can see once my 17MB FLV file has loaded the bytesTotal suddenly changes from 4096MB to the actual 17MB size.So how comes the bytesTotal is not picking up the size of the FLV?

View 3 Replies

ActionScript 3.0 :: Socket <- ProgressEvent Getting NoOutput For BytesTotal?

Nov 22, 2010

i get the following out put very stange

HTML Code:
progressHandler loaded:837 total: 0
[ProgressEvent type="socketData" bubbles=false cancelable=false eventPhase=2

[code].....

View 2 Replies

ActionScript 3.0 :: BytesLoaded From FMS?

Aug 28, 2009

Here is what I am trying to do which is make a custom seek bar and all the code examples I have seen are using NetConnect to do this where I am using the FLVPlayBack object. All the examples call out to bytesLoaded but via Adobe's documentation this will only work for an HTTP progressive download and not a feed from a FMS server. So my question is this how would one go about getting this type of information and/or create a custom seek bar while using a Flash Media Server to serve up the FLV file?

View 1 Replies

JS To Show BytesLoaded Of SWF?

Nov 20, 2010

I want to use Javascript / AJAX to show % loaded of SWF.

The thing is I cannot edit the ActionScript. I have seen this done before...

View 1 Replies

ActionScript 2.0 :: [CS3] Loader Code: Load A Portion Of The Swf Instead Of BytesTotal?

Aug 14, 2008

I've gone through the two loader tuts on this site ([URL]) and they are great. But they both use the 'getBytesTotal' function. Is it possible to tell the loader to only load a portion of the swf, like 50% of total bytes - or upto scene 5? I've got a 5 min long interactive 'demo' and I don't want the viewer to have to sit and watch the loader while it loads all 5 min of content.

View 2 Replies

ActionScript 3.0 :: Passing BytesLoaded Using DispatchEvent

Aug 18, 2009

I'm struggling to get the bytesLoaded in a class back to the main timeline. This is my class:

Code:
package com {
import flash.events.*;
import flash.display.*;

[Code].....

View 6 Replies







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