netstream

Can a NetStream publisher in Flash pause their stream?

I'm working on a webcam video streaming application utilizing Flash 8 (AS2) and Flash Media Server 3. Streaming the video live is fairly trivial, but I want to give the publisher the ability to pause their stream, effectively giving the people watching a snapshot instead of realtime video. NetStream has a pause() method, but the docume...

Netstream bufferlength is zero when pausing. How to prevent that?

Hi, I am using Flex 3 and FMS3 from where I and sending a videostream. I want the user to be able to pause the stream, then resume it. For this I am using the methods pause() and resume(). The problem is, when I call pause() the bufferLength is released and equals zero. Accordingly when I resume, the NetStream needs to start buffering a...

How to know where live point is in a stream?

How to know where live point is in a stream? NetStream.seek ( 99999999999999 ) basically sends me to the latest point, but how do I find the current exact endpoint of the stream? ...

How can I copy a NetStream Object?

I'm using BulkLoader to load an array of 10 or so FLV files. I want to be able to use and control these FLVs throughout my app independently. So for instance, FLV_1 may be displayed in duplicate but I want to pause one instance and play the other in tandem. I would like to pass the NetStream object around to other Video objects and di...

Can't make microphone work on Flex

Hi, A Adobe Flex issue... I'm attaching a microphone to a NetStream, but there is no mic activity. The privacy is set to Allow, the microphone.muted is false and the activity level is -1. Only when I open the flash settings, and open the Microphone tab, it starts to dispatch the Activity events, and it starts to stream the audio. Als...

FLV glitching when replaying the same video

Hello ladies and gents, I'm building a flash site with video transitions between sections. When a navigation element is clicked, there's some code to check if the relevant FLV has already been loaded. If it hasn't, it gets initialized (i.e. netstream attached to video object, etc), loaded and played back; if it has, it just gets restar...

Bug? Netstream won't resume after an inital pause then seek

I'm experiencing some strange behavior for which I can't find any documented knowledge. Here's what is happening: After calling the play() method, a netstream is paused when the NetStatus code is "NetStream.Play.Start". This disables the default behavior of automatically playing. Before resuming with either togglePause() OR resume(), p...

flash as3 - one video object, multiple video files

I have one video object and 3 thumbnails which, when clicked, will play different video files. What is the best practice for this situation? Currently I have one net connection, one net stream, and one video object. When a thumbnail is clicked, I just say ns.pause(), then ns.play(video2.flv). This sort of works, except if I play video1....

How does NetworkStream work in two directions?

I've read an example of a Tcp Echo Server and some things are unclear to me. TcpClient client = null; NetworkStream netStream = null; try { client = listener.AcceptTcpClient(); netStream = client.GetStream(); int totalBytesEchoed = 0; while ((bytesRcvd = netStream.Read(rcvBuffer, 0, rcvBuffer.Length)) > 0) { netStream.Wri...

RTMP stream of a+v plays only audio, no video

In Flash, AS3, I am using NetConnection to connect to a RTMP server, then I use NetStream to play a video+audio stream. I attach the stream (attachNetStream) to a flash.media.Video instance that is added to stage (double checked that it is ON the stage) and play it, but all I get is the sound of the stream that's being played - no video...

Actionscript NetStream.play drops port in relative URLs

Hi, the current page my flash application is running from is http://localhost:3000/. I'm trying to play a video using NetStream.play(relativeURL) by using a relative URL (e.g. "myVideo.flv"), but when I look at the actual request made by actionscript, it's dropping the port number. (e.g. http://localhost/myVideo.flv). Is there somethi...

AAC/MP4 not working in ActionScript 3's NetStream

I'm trying to play a remote AAC file in ActionScript 3 in Flash CS3 and am currently using this code: var url:String = "http://a1.phobos.apple.com/us/r1000/020/Music/d4/50/94/mzm.kjjofihr.aac.p.m4a"; var connect_nc:NetConnection = new NetConnection(); connect_nc.connect(null); var stream_ns:NetStream = new NetStream(connect_nc); stream...

Error: "NetStream.Play.StreamNotFound" while playing mp4 file using NetStream object (Actionscript/Flex)

Hi, I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http. The mp4 file URL is for example: http://xx.xx.xx.xx/file.mp4 This is an AIR application and the relevant code is pasted below: var url:String = <some http url>; connect_nc = new...

netstream play in the middle of a video

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

Can I start or seek to sub-second intervals with NetStream?

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

Synchronize the Playing of Multiple Video Files in Flash AS3

Hello, I would like to have one controller to sync and control multiple video objects(start/stop simultaneously). Is this possible? ...

Anyone run into this bug? RTMP streaming videos ending 3-4 secs too early?

I've created a player for a client in the past using their LimeLight server to stream videos and not had an issue before, however for a new client using different LimeLight server, the videos seem to be ending 3-4 secs too early. My traces on 3 vastly different videos I tested: metadata duration = 32 // 32 secs long, ends at 27 ...

FIle formats in netstream.

Hi, what are the file frmats supported in netstream, is it that only FLV is supported of how about .avi,.mp4 an all that..... Also, whare are the codec supported here, other than on2 & sorensen..... Please let me know anything that you know.... Thx, AJ ...

Flash AS3: NetStream buffer control

Hi, I have two FLV video players on a stage using two AS3 NetStream objects for playback. I need to have the two players synchronized, meaning that the playback should start when the buffer is full for both streams, and both should be paused when one of the buffers empties, waiting until refills again. My problem is, that the buffering...

Flex 3.5 - NetStream - StackOverflow errors when calling publish() after calling close()

I'm getting stack overflow errors when I'm trying to publish() a NetStream after close()ing it. Pasted below is the error stack: Error: Error #1023: Stack overflow occurred. at com.luxideus.facebook.canvas.controllers::StreamsController/onNetStatus()[...] at flash.net::NetStream/invokeWithArgsArray() at flash.net::NetStream/...