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

Data generation mode video seeking

I am building a Video Player and try to use data generation mode. But when I had tried to seek I could not find a way to properly proceed. I have searched a lot but could not find an example of seeking in data generation mode. Can anybody help me in…
1
vote
1 answer

Videochat netstream SoundTransform not working for volume control

I have a video chat application where there can be 6 participants. What I would like to do is give the option to each publisher to control their own stream's volume. The code I have looks like this. [global] private var…
gunz_rozez
  • 21
  • 3
1
vote
1 answer

Play RAW video data from a ByteArray

According to the NetStream API, Flash can play LOCAL RAW video by calling ns.play("raw:filename");. My question is how can Flash play RAW video data from a ByteArray? I have basically set my NetStream object to data generation mode by calling…
Code.Blodded
  • 231
  • 1
  • 19
1
vote
1 answer

AS2: No video with netstream, just audio

So I'm having a problem with AS2 when loading a netstream video. my_vid = _root.createEmptyMovieClip("my_vid", _root.getNextHighestDepth()); var video:Video = new Video(); var nc:NetConnection = new NetConnection(); nc.connect(null); var…
nrm
  • 11
  • 1
  • 2
1
vote
2 answers

Is it possible to add BitmapData to a NetStream publishing to a FMS?

Simple setup: Actionscript3/Flash application for Augmented Reality. A webcam feed is published to a Flash Media Server. Now I want the Augmented Reality layer to be a part of this video capture, rendered into one NetStream. Has anyone done…
1
vote
1 answer

Connect to multiple netstream in the same video object

Is it possible to have a same Video object ( and perhaps StageVideo) connected to multiple NetStream's objects? It's videoconferencing app, in which all members can speak ( So multiple audio sources) but should not hear themselves (that's why I…
Johnny Everson
  • 8,343
  • 7
  • 39
  • 75
1
vote
1 answer

NetStream.seek in "Data Generation Mode"

I created a flv player using the method NetStream.appendBytes for entering data into the buffer. For now, I perform the seek action in this way: ns.seek (0); ns.appendBytesAction (NetStreamAppendBytesAction.RESET_SEEK); ns.appendBytes…
1
vote
1 answer

Is it possible to attach one NetStream to several videoDisplays?

I'm working on simple videochat app with Adobe FMS 4.5. Everything works fine except one thing: I have small videoDisplay for each connected client and one main display. So user can choose his main interlocutor. When i'm trying to attach netStream…
sevenbit
  • 35
  • 4
1
vote
1 answer

How do I know, when the player stops playing?

public function videoPlayer() { connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); …
Benny
  • 2,250
  • 4
  • 26
  • 39
1
vote
0 answers

Do red5 always work same way on windows and linux?

i have developed a simple application that record a video from webcam using flex and red5. This application is been made using flex and extending red5 Application adapter, on client side i use NetStream.publish() method, and on server side i will…
puzzle-it
  • 46
  • 3
1
vote
0 answers

as3 Netstream appendBytes and seeking

I have a simple flv player which connects to a CDN which can take header byte range requests if a user wants to skip through a flv without the need for the flv to be 100% loaded. I am using a third party http librabry to add the range header to the…
Jamie
  • 380
  • 8
  • 19
1
vote
1 answer

Why NetStream#togglePause() do not work?

I create a record audio application based on red5 0.9 version. Below is my flex client code snippets. My red5 server work fine. private var playStream:NetStream; private function playRecord(event:MouseEvent):void{ if(isPausing){ …
zires
  • 554
  • 6
  • 16
1
vote
1 answer

Access Raw Outgoing NetStream Data in Flex/AIR

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…
ETWW-Dave
  • 732
  • 5
  • 8
1
vote
2 answers

Using Flash peer to peer to share files. How to display a progress bar to the downloading client?

I am trying to implement the actionscript program described at this address. http://cookbooks.adobe.com/post_Create_a_P2P_file_sharing_application-16539.html. It lets two flash client connect to the cirrus service and share a file using the flash…
Anon21
  • 2,961
  • 6
  • 37
  • 46
1
vote
0 answers

As3 NetStream ns.seek() does not work

public function seek( percent:Number ):void { var p:Number = Math.floor( ( nsClient.length * percent / 100 ) ); trace( "netstream length is: " + nsClient.length + " and to go num is: " + p ); …
coderbanna
  • 123
  • 1
  • 11