Questions tagged [netstream]

The NetStream class opens a one-way streaming channel over a NetConnection.

  • Call NetStream.play() to play a media file from a local disk, a web server, or Flash Media Server.

  • Call NetStream.publish() to publish a video, audio, and data stream
    to Flash Media Server.

  • Call NetStream.send() to send data messages to all subscribed
    clients.

  • Call NetStream.send() to add metadata to a live stream.

  • Call NetStream.appendBytes() to pass ByteArray data into the
    NetStream.

(From this Article)

247 questions
50
votes
2 answers

How to make use of play2() function in order to perform fast stream switching of videos?

I am currently working on a Flash webplayer with resolution switching functionality. I am trying to make use of the NetStream class's play2() function in Actionscript. The problem I am running into is that the videos don't change quickly. For those…
funseiki
  • 9,167
  • 9
  • 36
  • 59
8
votes
3 answers

AS3, NetConnection/NetStream: Is there a smart way to split source url?

The problem I have to replace the mx:VideoDisplay component in an existing Flex project with a custom made component. To achieve this, I have to conform to its current Interface, so my component receives the video urls (via source parameter) in the…
7
votes
2 answers

AMS doesn't receive unpublish command SOMETIMES over rtmpt

This one has had me going for a week at least. I am trying to record a video file to AMS. It works great almost all of the time, except about 1 in 10 or 15 recording sessions, I never receive 'NetStream.Unpublish.Success' on my netstream from AMS…
6
votes
1 answer

Flash HTTP Streaming - Multiple Files

With Flash 10.1+ and the ability to use appendBytes on a NetStream, its possible to use HTTP streaming in Flash for video delivery. But it seems that the delivery method requires the segments to be stored in a single file on disk, which can only be…
sixones
  • 1,953
  • 4
  • 21
  • 25
5
votes
2 answers

Modify sound in real-time with SampleDataEvent for audio within NetStream

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…
Johan
  • 1,897
  • 5
  • 23
  • 29
5
votes
1 answer

AS3 NetStream AppendBytes Seek issue

I'm having trouble with NetStream in AS3. The project I am working on allows users to browse a video (locally) and play it back. The issue I am having is that netStream.seek(0); from what I can tell it doesn't do anything, although I get inside a…
AntBirch
  • 272
  • 4
  • 20
5
votes
3 answers

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; …
Kornelije Petak
  • 9,412
  • 15
  • 68
  • 96
4
votes
2 answers

Is there any way to get volume level of netStream in Actionscript 3?

I want to get the activity level of audio of a NetStream, similar to how you can do it with a Microphone. In this article, AS3: Audio activity level of a NetStream NetStreamInfo.audioBytesPerSecond is said to be the solution. However,…
user872176
  • 108
  • 1
  • 7
4
votes
6 answers

How to implement the Adobe HTTP Streaming spec without using their Streaming server

As of Flash 10.1, they have added the ability to add bytes into the NetStream object via the appendBytes method (described here http://www.bytearray.org/?p=1689). The main reason for this addition is that Adobe is finally supporting HTTP streaming…
Scott
  • 16,711
  • 14
  • 75
  • 120
4
votes
2 answers

Problems loading a NetStream Video

I have been creating a custom video player for the web. On some machines that I run this on it will start loading the .flv file then no progress will be made for 30 seconds to one minute then show that the video is completely loaded. I am checking…
Snikk
  • 156
  • 1
  • 5
4
votes
2 answers

SoundTransform panning not working on a rtmp stream with ActionScript 3.0

I'm having a strange problem, I'm using the SoundTransform function to play the sound of an RTMP stream from red5 server only on the left speaker and to lower it's volume with stream.soundTransform = new SoundTransform (0.5,-1.0); on Actionscript…
4
votes
1 answer

stream was not writable when trying to write to Networkstream

I'm new with socket and trying to write a Client-Server application My applicationhas those two main methods : SERVER running on separate Thread : public void socketListener() { byte[] StreamMessage = new byte[9632]; Socket…
LordTitiKaka
  • 2,087
  • 2
  • 31
  • 51
4
votes
3 answers

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…
Tom
  • 41
  • 1
  • 3
4
votes
1 answer

Implementing FCSubscribe on client side

I am struggling to find any information on the FCSubscribe methods used by various CDNs. I need to implement the methods in a custom video player. I would like an official specification for these methods, but even a SO search for "FCSubscribe"…
Drahcir
  • 11,772
  • 24
  • 86
  • 128
4
votes
1 answer

How can you toggle H264 on and off in a NetStream?

Take the following code: m_h264Settings = new H264VideoStreamSettings(); m_ns.videoStreamSettings = m_h264Settings; What's a decent way to toggle whether m_ns's videoStreamSettings are still using H264 or not? I…
Panzercrisis
  • 4,590
  • 6
  • 46
  • 85
1
2 3
16 17