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
1
vote
1 answer

Unable to get stream via NetStream method in AS2

Here is my Code:

     var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp://localhost/oflaDemo/");
    var my_ns:NetStream= new NetStream(my_nc);
    my_video.attachVideo(my_ns);
  //my_video.play();
   my_nc.onStatus…
Javed
  • 11
  • 4
1
vote
0 answers

Delay in livestream after some time?

I am using flash builder for live stream application. When I trying to play using netstream as: ns=new Netstream(nc); ns.bufferTime=0; ns.play(streamname,-1); My stream plays well with 1 or 2 seconds delay...When time passed by, my stream…
divya
  • 81
  • 4
  • 13
1
vote
1 answer

FLV glitching when replaying the same video

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…
justinbach
  • 1,945
  • 26
  • 44
1
vote
2 answers

Can't make microphone work on Flex

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,…
Eric
1
vote
1 answer

onSeekPoint weirdness

I have a NetStream which is put into data generation mode properly... everything works fine and I get onSeekPoint() events when I do something like the following: EXAMPLE 1 public function setupStream() { netStream.client = {}; …
davidkomer
  • 3,020
  • 2
  • 23
  • 58
1
vote
1 answer

Audio FLVPlayback not working

I currently have an SWF application that records audio and saves it to FMS. Then inside Flash Professional I'm trying to use a FLVPlayback Component to play the recording, but it never plays. The recording is saved here:…
Zach L
  • 1,277
  • 4
  • 18
  • 37
1
vote
0 answers

Red5: Flash stream publish stops immediately

Years ago I've made a little flash applet that streams webcam video to red5 server. Now I tried to "reproduce" my work, but something may went wrong with the current Red5 or Flash versions. After publishing the stream it stops in less then a…
Zoltán Hajdú
  • 485
  • 7
  • 8
1
vote
0 answers

Flash Player hangs few seconds after NetStream.publish() on Mac Only

I'm having a realy wierd issue since the last two days. I'm developping a Flex Application to be able to live stream video. Every thing works just fine on Windows but on MacOs the NetStream Stops streaming after a few seconds (3 to 10 seconds) but…
Amine
  • 11
  • 1
1
vote
1 answer

How do I know how much of a video is loaded by a NetStream in AS3?

I'm making a video player in AS3 and was wondering how to find out how much of the video is currently cached/buffered. I'm not sure what the correct terminology is, so I haven't been able to find it in the documentation. NetStream.time gives me the…
joon
  • 832
  • 13
  • 31
0
votes
1 answer

newbie: flex netstream how to get my code stream and receive netstreams correctly?

I have problems getting my flex code to work, below is my code I try to netstream a webcam and receive it and use 2 functions for that. Any flex guru can help me fix these functions? function onNetConnectionPublish():void { …
Ilse
  • 233
  • 1
  • 3
  • 11
0
votes
1 answer

NetStream FLV movie playing way too fast

I have this little NetStream movie (which I'm not allowed to show, sorry) set up like this: var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new…
Kriem
  • 8,666
  • 16
  • 72
  • 120
0
votes
1 answer

How to detect that streaming stopped AS3?

I have a flash app and I need to detect whether the streaming of data has stopped. That means the connecton is still opened but the stream of data is cut of i.e no data in the pipe. So I am asking which of these NetStatus events coresponds to this…
Vlad
  • 2,739
  • 7
  • 49
  • 100
0
votes
1 answer

NetStreamPlayTransitions.SWITCH for different streams?

i have an rtmp folder with videos, I am trying to do a seamless change to next video using nestsream play2 method. have tried using the fast switching of NetStreamPlayTransitions.SWITCH like below. private var FName:Array =…
Aditya P
  • 1,862
  • 5
  • 28
  • 39
0
votes
2 answers

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…
Sanders
0
votes
2 answers

about publish() method in NetStream AS3

Can i use publish method to record flv file with streaming servers other than Flash Media Server, or it is just meant for FMS? How about crtmp server?
Vlad
  • 2,739
  • 7
  • 49
  • 100