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
2 answers

Out of memory with NetStream.appendBytes() or How to Play Large Video?

The following is a fully-functioning pure actionscript project for AIR When run, try opening a large FLV (I'm testing it with a 3GB file) With DEBUG_UNUSED_BUFFER and DEBUG_APPEND_VIDEO set to false, it works fine- reads through the entire file…
davidkomer
  • 3,020
  • 2
  • 23
  • 58
1
vote
0 answers

How to save graph from NetStream to gexf file?

I am trying to save a GraphStream/NetStream from NetLogo do *.gexf file. Graph has constant number of edges and vertices. Thing that is changing is parameters of nodes/'turtles'. Currently, after each tick, I send information from NetLogo to…
dodo
  • 31
  • 6
1
vote
1 answer

Using NetStream in data generation mode with formats other than FLV

I'm working on a project where we're trying to play video in Flash, by putting the NetStream in data generation mode and appending bytes. This works fine for FLVs, but I need to support other file formats, such as mp4. I want to either support the…
WesleyJohnson
  • 1,538
  • 1
  • 16
  • 30
1
vote
0 answers

AS3 RTMP client not working properly

I'm trying to view a stream that works in JW player, but not in my code. Code: netcon.connect("rtmp://..."); netcon.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); netcon.addEventListener(SecurityErrorEvent.SECURITY_ERROR,…
1
vote
1 answer

Netstream - how to publish an mp3 file using RTMFP

I want to publish a mp3 file from one of the peers and play it from other peers, very similiar to a RTMFP chat app. From what I understand till now: netstream.publish is used to publish a stream to RTMFP netconnection and netstream.play for…
navgeet
  • 987
  • 1
  • 10
  • 23
1
vote
0 answers

What is wrong with this as3 piece of code?

I'm an as3 newbie and I'm trying to send a message through netstream to a function that will handle it. Here is the line that sends public function _attachLocalVideoAndAudio(muteCam:Boolean = false, muteMic:Boolean = false):void { ... …
Michael Nana
  • 1,969
  • 4
  • 24
  • 36
1
vote
2 answers

play flv using netStream appendBytes

I know that there are many ways to play an FLV file but considering my project requirements, I need to play the flv using URLStream and NetStream here's the complete sample code that I'm doing my tests on: package { import…
Hadi tavakoli
  • 1,267
  • 2
  • 16
  • 30
1
vote
1 answer

Requirements for using NetStream.seek()

I'm using a NetStream class to play video using Video class or stage video , there is no seek bar to backward or forward video , i add seek bar to video but the seek function not work exactly , it give me a wrong time of seeking .…
Sameer H. Ibra
  • 1,816
  • 2
  • 17
  • 25
1
vote
0 answers

NetStream error callback, peer to peer

I am pretty new , I know this place is really strict and is for the well of the forum... So please forgive if my question is not appropriate.. I have a chat application using node.js , the user request cam with the partner this create a flash object…
UTAN
  • 11
  • 4
1
vote
1 answer

AS3: Call external function periodically depending on played video stream

I implemented a flex application to play an incoming video stream from a Red5 Media Server. private function playStream(streamName:String, offset:int):void { stream = new NetStream(connection); stream.play(streamName + ".flv", offset); var…
1
vote
1 answer

Asynchronous TCP server/client unreliable packets?

Alright so for my game, Ive set up a server / client peer to peer connection, to send positions and etc back and forth. Although my messages arent actually sending that fast, and not reliably either. As in parts of the strings are missing, and…
user1965626
1
vote
1 answer

Unable to seek beyond 16776 seconds

I have a custom player that plays back voice recordings (only audio). If the audio file is long the NetStream class does not seek it well. I found out that after 16776 seconds (04:39:36), the NetStream seek function starts again from the beginning…
Radu Maris
  • 5,648
  • 4
  • 39
  • 54
1
vote
0 answers

flash netstream appendBytes and .mp4

Can I use NetStream.appendBytes() with an mp4 file? There seems to be several options, but I'm not sure if any of them work: osmf HTTPNetStream -…
1
vote
2 answers

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

as3 netstream sends StreamNotFound on all mp3's, not on mp4's

I've developed a custom video player which needs to double up as an audio player. All the functionality is there, but the NetStream doesn't load the mp3. It throws NetStream.Play.StreamNotFound. I am not using a Flash Media server. I have tested…
joon
  • 832
  • 13
  • 31