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


Similar Posts:


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

Media Server :: About Peer - Assisted Network NetStream.MulticastStream.Reset

Dec 1, 2011

I am developing a video system using the peer-assisted networking of FMS. but when I have published video successed, I can't receive the video at some endpoint.

[Code]....

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

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

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

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

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

ActionScript 2.0 :: Reset/add Time To Delay?

Apr 15, 2007

The code show's the movieclip "nav" when "bg_inv" is clicked, and fades it out when 5 seconds have passed. What I want to achieve is this:When I click a button inside "nav" called "next_btn" the delay needs to be reset, so that "nav" doesn't fade out until five seconds have passed since I clicked the button.

Code:
nav._visible = false;
import mx.transitions.Tween;
import mx.transitions.easing.*;

[code]....

View 1 Replies

ActionScript 1/2 :: Reset A Flash Video Each Time They Log On

Oct 11, 2010

I am working in AS2 and I am wondering if someone knows how to make a video so it doesn't reset everytime the user logs in - it just remembers where they are and what they already clicked.I created a video that will be uploaded in a learning management system.Students can click on movie clips and make them disappear.What I would like to have happen is have the flash video remember which movie clips the student already clicked (and made disappear) so that the next time they log in the movie clips that should be invisable remain invisable (rather than starting over)Basically, it is like a little game, once saved you do not need to start at the beginning every time you go back to it.....it remembers where you left off.

View 5 Replies

ActionScript 2.0 :: Reset Image Display Time?

Dec 28, 2010

I have a problem with reseting time of displaying a picture when user click button to next/previous picture.

ActionScript Code:
stop();
time = setInterval(nextpicture, 7000);

[code].....

View 3 Replies

ActionScript 3.0 :: TIMER Time Doubles, It Doesn't Reset?

Mar 5, 2009

Having a little issue here with TIMER, basically I am looking for the timeline to advance 1 frame after 3 seconds, OR on MouseEvent.CLICK advance to next frame (before the 3 seconds it up). Which would then reset the TIMER. So, on CLICK go to next frame, OR wait 3 seconds and go to next frame (while having the TIMER reset both times). So...

Wait 3, (timer resets) wait 3, (timer resets) CLICK, (timer resets) CLICK, (timer resets) CLICK, (timer resets) wait 3, (timer resets)wait 3, (timer resets)CLICK, (timer resets)CLICK... You get the idea.My issue is the timeline, over time the TIMER time doubles, it doesn't reset... I am sure this is pretty basic and I am over thinking.

[code]...

View 3 Replies

ActionScript 3.0 :: Shouldn't Variables Reset Each Time The Frame Plays

Sep 16, 2010

In my flash program I have everything on one frame. In the actionscript on that frame, I made a variable called currentButton and set it to the first button, to keep track of which button is currently pressed. In the click function this variable is changed to whatever button was clicked.Now, I didn't think this would work, because seeing that the one frame is being played over and over, (there's no stop() command in there) I thought currentButton would keep being reset every frame. To my surprise, it worked just fine. Not that I'm complaining, but I'd like to know why it's doing that. Shouldn't all the code on the frame be done every time the frame is played, including the part that sets currentButton to button1?

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

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

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

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







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