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


Similar Posts:


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 1/2 :: Update NetStream.time During Scrub?

Dec 3, 2009

Just want to throw this out first that I am very new to ActionScript.  I am trying to integrate Omniture tracking with a custom Flash player.  Here is my dilema.I have this function which populates the "currentVideotime" variable with the current time in the video:

function videoStatus() {  amountLoaded = ns.bytesLoaded / ns.bytesTotal; if(initialized == "yes"){  controllbar_mc.loadbar.loadprogress._xscale  = amountLoaded * controlload_width; controllbar_mc.scrubhandle_mc._x = ns.time / duration *
 
[code].....

View 7 Replies

Media Server :: Get NetStream.time On The Serverside?

Jan 26, 2010

I'm using the following code to attempt to get netStream.time on the serverside.....i've tried various ways googled it but have come up short...what code do i need to use so i can track a streams progress from the server side?
 
myStream = Stream.get("home1");
setInterval(time,5000,myStream.time); function time(myStream){  trace(myStream); }

View 2 Replies

ActionScript 3.0 :: When Netstream.time Updated / When Seek?

Feb 17, 2009

The problem is that I have an fla video player that uses the netstream class in order to pull a stream (mp4 h264), I've tried this with a few different mp4 files and they all behave the same..Basically, when I goto seek to a position, say 10 seconds into a 300 second mp4, the movie buffer goes blank and my readout of the current time I can see climbing from around 7 seconds and keeps going all the way to the end.. almost as if the seek command is trying to find a keyframe where it can resume from..I'm using http (not rtmp), and thus streaming directly from naive http.After awhile I decided to use the FLVPlayback component, set the source to the same, and it read in some initial metadata.. when I try the movie with the FLVPlayback component I can pause, seek resume to any position without problem, at first I was thinking the problem might have been http related but if the FLVPlayback component works then I'm a little stuck..Also note that I've checked the seekpoints of the movies and there are TONS of them, so the seek command should be able to find a nearby seekpoint to where I suggest.

View 7 Replies

Media Server :: NetStream Time NaN After A Period Of Inactivity

Jun 25, 2009

I am developing a video player for FMS 3.0 and my client complains that when he leaves the player running overnight or after computer goes to sleep when he comes back the elapsed time displayed as NaN and when he tries to play, nothing happens. Why is this happening? Does it mean that the connection with the FMS dropped and I have to reconnect? How can test for the dropped connection?

View 2 Replies

ActionScript 3.0 :: Attaching Event Listener To NetStream Time?

Jun 4, 2010

So Im trying to get the current time (play head time) for a video on the stage and am using Netstream. I have a timer with an event listener pinging a function every 1000ms. But it is not smooth and the numbers jump a bit.

Is there a way to attach an event listener to the netstream time itself?

I tried ns.addEventListener(NetStatusEvent.time, monitorTime); but as you probably know that Dog wont hunt.

View 1 Replies

ActionScript 3.0 :: NetStream.time Jumps Ahead When Buffering Playlists?

Dec 7, 2009

I am streaming a playlist of multiple mp4 video files and have been experiencing strange netStream.time values when the buffering is set for an extra long time on slow connections.

For example, when starting the video, if I set the buffer to something like 90 seconds, while filling the buffer netStream.time reads 0. The second the buffer is full, instead of reading 0,1,2 +++ it jumps to a really high value, in this case 53535 and sticks there until the video, which seems to play correctly from the begining ,catches up to that time and then starts incrementing as it should. What's odd about this is that the time the netStream.time gets stuck to always corresponds to the end/begining point between two streams in the playlist. For whatever reason this always seems to be the third video in the playlist. IF I seek to a new location, it re buffers, and then the time properly is stuck at the time that corresponds to the end of the 4th stream.

If the connection is relatively fast and the buffer is set to a smaller value, I never see any issues.

I know netStream.time is notoriously buggy, but something tells me there is more going on here.

View 0 Replies

Streaming Two Or More Flv Videos At The Same Time?

Jul 28, 2009

I am working on a site that is intended to stream two or more flv simultaneously. The slightly different header clip should renew on entry to each page. When I publish the fla file it plays as intended. When I upload the swf file to the web only one of the videos are playing back. It does not matter if I import the video to a timeline, or stream it progressively from the server. Both clips are uploaded.

View 7 Replies

Media Server :: NetStream.time Jumping Ahead When Buffering Playlists?

Dec 14, 2009

I am streaming a playlist of multiple mp4 video files with flash 9 and FMS 3 and have been experiencing strange netStream.time values when the buffering is set for an extra long time on slow connections. When I have my buffer set to something like 60 seconds I'll start experiancing this problem:
 
the NetStream.time value will return 0 on progress events while buffering, but the moment the buffer is full, instead of reading 0,1,2 +++ it jumps to a really high value, in this case 53.5 seconds, and sticks there until the video (which seems to play correctly from the beginning) catches up to that time and then the netStream.time starts incrementing as it should.
 
Another relevant fact is that the time the netStream.time gets stuck to always corresponds to the end/begining point between two streams in the playlist. For whatever reason this usually seems to be the third video in the playlist. If the connection is relatively fast and the buffer is set to a smaller value,

View 1 Replies

Flex :: Netstream Video Chat Client Freezes And Crashes After Time?

Oct 11, 2010

So I built a videochat client that uses the adobe stratus protocol. Its very simple and just connects two users. However, after about a minute of video chatting the clients freeze and the browser crashes.what might have caused this? Is there some sort of cache that I need to clear every so often or a possible memory leak? I am not sure where to start

View 1 Replies

Flash - Modify Sound In Real-time With SampleDataEvent For Audio Within NetStream?

Jan 27, 2011

I'm streaming audio using NetConnection and NetStream. I know that you can modify sample data in real-time with the Sound object, however I cannot find the SampleDataEvent for audio playing with the NetStream object. Is there a way to pass the audio from the NetStream object to a Sound object and modify the sound at that object instead?

View 2 Replies

ActionScript 3.0 :: NetStream: Video Is Taking A Long Time To Begin Buffering

Jul 28, 2009

I'm trying to implement a simple NetStream video player with Progressive Video, but for some reason the video is taking about 12-13 seconds to begin buffering...I don't get it. If you check this link, you can see the buffer progress, you can see that it sits at 0 for >10s, until finally starting to buffer, at which point it finishes very quickly. [URL] It's a hard one to search for as any query using connection or slow obviously returns a bunch of crap that I don't need...

[Code]...

View 1 Replies

Php :: Real-time Streaming Of An MP4 File

Apr 8, 2011

Is it possible to play the video (mp4) in real time using some flash player? What I mean by in real-time is that player would receive data on the fly, not from alredy saved file but e.g. php script (which sends appropriate content-type header) THAT IS DOWNLOADING AND 'ECHO-ing' THE FILE AT THE TIME PLAYER PLAYS IT - like e.g. some kind of live stream.

View 3 Replies

Actionscript 3 :: Streaming A Video From A Certain Time?

Dec 22, 2011

Is that possible to streaming a video from a certain time.

For an example i want to start the video from the time of 1.23 min but its always start from 0 only

time= something in millisecond;

I gave nsStream.seek(time) but even its start from 0 only.This is because the stream is not available for that time.

So can we start video streaming from mentioned timing is that possible.

I don't want to use FMS or Red5 for this.I know there is a possibility using server.

View 1 Replies

Media Server :: Get Total Time Of Streaming Flv?

Apr 4, 2011

using old AS2 code on an fms project.it seems that both server-side NetStream object and client-side NetStream object do not have a totalTime property.my goal is to determine when the flv has completed playing ( has reached the end  visually );so I figured that comparing time to totalTime would work but there appears to not be a totalTime.

View 3 Replies

ActionScript 3.0 :: Get Time Length Of Mp3 File While Streaming?

Aug 16, 2011

Iam doing a mp3 player, i want to play music while streaming. I have a probleme, i cant get time mp3 length of this song while streaming.

View 1 Replies

Android :: H.264 Real-time Streaming Timestamp In NAL Units?

May 10, 2011

I'm trying to build a system that live-streams video and audio captured by android phones. Video and auido are captured on the android side using MediaRecorder, and then pushed directly to a server written in python. Clients should access this live feed using their browser, so the I implemented the streaming part of the system using flash. Right now both video and audio content appear on the client side, but the problem is that they are out of sync. I'm sure this is caused by wrong timestamp values in flash (currently I increment ts by 60ms for a frame of video, but clearly this value should be variable).

The audio is encoded into amr on the android phone, so I know exactly each frame of amr is 20ms. However, this is not the case with video, which is encoded into H.264. To synchronized them together, I would have to know exactly how many millisecs each frame of H.264 lasts, so that I can timestamp them later when delivering content using flash. My question is is this kind of information available in NAL units of H.264?

View 1 Replies

Media Server :: Dynamic Streaming Taking Too Long Time To Switch Video Using NetStreamPlayOptions In AS3

Aug 18, 2010

why dynamic streaming taking too much time to switch video from lower bit rate to higher bit rate and vice versa. I am doing dynamic streaming in following ways -
  
var param:NetStreamPlayOptions = new NetStreamPlayOptions();
param.oldStreamName=oldStream();
param.streamName=newStream()

[code]....
 
I am using duel buffering and that is 3 seconds when video starts and 10 seconds when "NetStream.Buffer.Full". Video taking approximately 30-50 seconds to switch video and when I am calling the above code.

View 6 Replies

Flex :: Playing A Large/long H264 File With NetStream Takes A LONG Time To Begin Playback?

Aug 1, 2010

I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can cause this bloated lead in time?

View 2 Replies

ActionScript 2.0 :: Know What Needs To Be Added Or Changed For It To Reference The Time Off The Server And Not The Local Computer Time

Apr 9, 2009

I have this clock code and would like to know what needs to be added or changed for it to reference the time off the server and not the local computer time (and preferably reference the server just once and not repeatedly). I already have a file on the server "time.php" that is providing the milliseconds. I know it should be fairly simple, but I just can't wrap my head around it.

[Code],,,

View 2 Replies

ActionScript 3.0 :: Run Time Errors 1046 : Type Was Not Found Or Was Not A Compile-time Constant?

May 5, 2010

I use CS4.

Code:
package {
import flash.display.Sprite;
import flash.events.Event;[code]...........

Both of these are saved in files with the name same as the classes.

Both are saved a folder which also contains an fla file name hello.fla.So,when test the movie(hello.fla),after choosing the document class as WavyBall,I get these errors: 1046: Type was not found or was not a compile-time constant: Ball.

Source: var Ball:Ball;
1120: Access of undefined property stage.
Source:Ball.x=stage.stageWidth/2;
1120: Access of undefined property stage.
Source:Ball.y=stage.stageHeight/2;
5000: The class 'WavyBall' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.What is wrong?

View 3 Replies

Movie Clip Within Main Timeline Runs Slow/choppy First Time Around, But Not Second Time?

Dec 11, 2009

I have a fairly complex animation movie clip within my main timeline in a Flash file.  When you click a button, it plays the movie clip, then goes back out to the main timeline.  The first time the movie clip runs, it plays choppy and slow, but if I play it two or more times, it plays correctly (smoothly).  Is there some actionscript I need to preload the movie clip, or some other solution to the first-run slowness? 

View 2 Replies

Media Server :: Stream Is No Longer Play From Time To Time (5-8 Seconds)?

Aug 24, 2009

I'm testing Live streaming with FMSS. The stream is pushed to FMSS buy Adobe FMLE software. Streaming works fine until I reach 1300-1400 simultaneous connections.No matter what the encoding ratebit is (150kbps or 2000kbps) the stream is no longer play from time to time (5-8 seconds).

The CPU (2xIntel Quad) is loaded less than 20% and memory used is about 2 GB (there is plenty of memory installed 32G). The OS is RedHat 5.3 64bit platform. Network uplink maximum rate is 4Gbps.I disabled the Queue but the problem still persist.

View 1 Replies

ActionScript 3.0 :: Set UTC - Change System (local) Time - The Entire Time Will Be Changed?

Jul 29, 2010

I added in my application universal time, and I gave start and stop time. The process is going smoothly, but if I change my system (local) time, the entire time will be changed. Is there any solution to solve this problem?

[Code]...

View 6 Replies

ActionScript 1/2 :: Military Time Be Reset To Regular Time In Flash File?

Aug 27, 2010

I am working on a site that has a clock but it displays in military time, is there a way to change it to regular time. The following is the Action script:

[Code]...

View 8 Replies

ActionScript 3.0 :: Get Total Time And Time Played From Flash Video Component?

Jul 6, 2009

I've loaded a video into the FLVPlayback component and I'm looking for a way to get the total time and the time played so far and output them to two text fields so the end result would look something like "00:12/00:50".

Right now I'm defining the video by the components inspector but I'm eventually hoping to define this bit by actionscript as well.

View 6 Replies

ActionScript 2.0 :: Dynamic Buttons - Set The Expiry Time Of The File, Each Time Has A Button ?

Aug 2, 2009

im making a flash upload thingy for my site, it has options to set the expiry time of the file, each time has a button which needs to be made from an array (which comes forma php script, not really relevent)... here is my code..

ActionScript Code:
if (vars.options == undefined){[code]....

i know the x values are too small but they should still all appear on the stage right ?, only the final item in the array appears...i think i might be replacing the previous one with the new one.

View 3 Replies

Actionscript 3.0 :: FLVplayback Component : Add The Time Elapsed And Time Left On The Controls?

Feb 9, 2010

Im using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls (just like how the player on the tutorials on this site works). I dont really want to create my own controls, as im happy with the flv playback component.

View 2 Replies

ActionScript 2.0 :: Time Base Events - Perform A Function After A Period Of Time?

Mar 19, 2006

I was just wondering whether it was possible to perform a function after a period of time.like +2 to hp every 6 seconds.

View 2 Replies







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