Flash :: Relay Incoming NetStream To Outgoing?

Aug 20, 2011

Is it possible to make some kind of relay, to rebroadcast received stream to another host?
For example, if i have code like this

nsOut = new NetStream( outgoingNetConnection );
nsOut.client = {};
nsOut.addEventListener( NetStatusEvent.NET_STATUS, onNetStatus );
nsIn = new NetStream( incomingNetConnection );
nsIn.client = {};
nsIn.addEventListener( NetStatusEvent.NET_STATUS, onNetStatus );

How to connect this two streams to make direct transfer from nsIn to nsOut ?

View 1 Replies


Similar Posts:


Flex :: Streaming - Access Raw Outgoing NetStream Data In AIR?

Jun 29, 2011

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 access to the actual bytestream of a NetStream object (even in the dreaded mx.internal namespace) that I could turn around and feed to a FileStream for the local archive?

View 1 Replies

ActionScript 1/2 :: Capture Pixels From Incoming NetStream?

Jul 11, 2010

I am using Action script 2.0, Flash CS4. Flash Media Server. Working on windows 7.

[URL]

Its all working fine. I can put Pixel Effects on My Video Panel and it works fine when I broadcast my video using my web cam.
 
I want to implement same effect on the Incoming NetStream. But when I try to implement same effects on incoming NetStream it throws Security Error that Connection to rtmp://localhost/videochat halted - not permitted from file:///D|/xampp/xampp/htdocs/MIKE/Test/clientAS2/videochat.swf

I wonder why I can not capture pixels information using BitmapData for incoming NetStream ??

View 1 Replies

Media Server :: IOS To Play H264 Encoded By Flash Player Via Relay Of FMS?

Aug 16, 2011

Probably this feature is in the next generation of FMS 4.5 However, it is said this can be achieved with some manipulation of files with current FMS. Can we do a 2-way live video session.
 
UserA(in webpage flashplayerV11 beta: encode using H264) -> Flash Media Server -> UserB at iPhone(either HTML5 or others to play the live video in RTMP/RTMFP)

Next step will be the reverse:UserA(in webpage flashplayerV11 beta: decode using H264) <- Flash Media Server <- UserB at iPhone(either HTML5 or others to publish the live video in RTMP/ RTMFP)Better to use UDP based.Seems the HTTP live streaming incurs huge delay 4-8sec; not really working for live video chat sessions.. So how Skype handle this on iOS? with its own encoding/decoding?

View 2 Replies

Flash :: NetStream.Buffer.Full Not Fired After Call To NetStream.pause?

Jul 6, 2011

I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:

_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....

View 1 Replies

Catch A Swf's Outgoing Message?

May 24, 2011

I currently have something going that gets me a pretty accurate value inside a swf (one I have no control over), but I want even more precision

I know it will sometimes send out data about itself to other locations

View 1 Replies

Flash Animation For Incoming Text Message Alert?

Jan 14, 2009

I want a flash animation of an Xbox achievement to use as an incoming test message alert for my mobile phone.

I found this site that lets you create an achievement but after spending hours trying to figure out how to download it I am now stuck.[code]...

View 1 Replies

Relay A Stream From One FMS Server To Another?

Sep 23, 2009

Like on wowza, is there any way to relay a stream from one FMS server to another FMS server ?

View 3 Replies

Actionscript 3 :: Capture And Alter All Outgoing Requests From A Flex Application?

Feb 22, 2012

Currently in my flex application, I've got all of the app's assets being served from my local server, but I want to be able to serve all of the assets from a CDN (URL...)

the application has quite a bit of components so rather than going to each component and changing the source of the asset, is there a way to capture all of the outgoing request from my flex application and run some logic where I can change the request from [URL]...

View 1 Replies

Flash :: Application Which Can Relay Another Application On Media Server?

Oct 5, 2010

Is there any application which can relay another application on Flash Media server? For exmaple I have a "live" application on the server. I want another application, "liverelay" which can basically relay what is coming on the "live" application. Is it possible? If so how can I implement it? Looking forward to a response.

View 12 Replies

ActionScript 3 :: How To Relay Complex Type Via NetConnection To FMS

Feb 22, 2011

I need to send complex type object (marked RemoteClass in Flex) via NetConnection to other clients.

[RemoteClass]
public class ComplexType {
public var _someString:String;
public var _someInt:int;
}

... and using ...
_nc = new NetConnection();
_nc.connect("rtmp://localhost/echo/");
_nc.addEventListener(NetStatusEvent.NET_STATUS, _onNetStatus);
_nc.client = {};
_nc.client.echoCallback = _echoCallback;
[Code] .....

Is there a way to relay strongly typed object via NetConnection? Added callback function source code with ObjectUtil.toString() output

View 2 Replies

Flash :: Make Flex Builder Debugger Start Listening For Incoming Debug Session Connections

Nov 10, 2009

Is there any way to get Flex Builder to connect to an existing browser session running Flash Player Debugger? I can connect to FDB like this, but with Builder I need to click Debug and rush to close the newly opened browser window before it loads the Flash file and then go back to the session I want to connect and right click it to start the debugger.

Unfortunately this is not very reliable as I can't always beat the window opening, requiring several attempts before being able to connect to the session I am interested in. If I could just tell Builder 'Start debugging' and then have it wait for the connection, I could now calmly go over to the browser, right click, hit debug, provide the IP and voila. This would allow me to inspect variables on a hard to replicate bug on a session running on a tester's computer.

View 3 Replies

ActionScript 3.0 :: Error On BitMapData.draw() After NetStream.pause() Then NetStream.seek()

Feb 25, 2010

I am working on an app that will take a snapshot of an rtmp stream of an archived video, save it to a file, and ExternalInterface the file name to the hosting page to javascript it up for display.

I actually have all pieces working great. The only time an error is thrown is when I pause the video, seek to somewhere, and then try to take a snapshot. Then there is a runtime error of:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mySwf.swf cannot access rtmp://myFlashServer/myApp. No policy files granted access.I've seen post after post of suggestions and have tried them, but without success.

I have the crossdomain.xml and my FlashMediaServer security setup fine (it is actually working, except for this one glitch). It just seems to be the pause-then-seek-then-BitMapData.draw() combination which is creating issues.

Another weird thing: after the error is thrown, if I resume the stream and take a snapshot, it works flawlessly again.

View 5 Replies

Media Server :: Restrict Incoming Stream From Flash Media Live Encoder

Aug 19, 2011

Has there been any further discussion regarding restricting who can stream to FMSS (not FMIS or the development version).
 
I found this article, but I don't know if this was ever fully resolved:
 
[URL]
 
I don't want just anyone to connect to my server to stream live.  I want to restrict by IP address, authentication, or any other means.

View 7 Replies

Way To Protect Incoming Stream

Oct 26, 2011

I like to protect, with a password and user name, the incoming stream to the FMS (application Live Packager). How can I instal a password (I don't mean SSL), to prevent that unauthorized persons can stream their own content over my server. This means, the Flash Media Encoder should ask for a password and username.

View 1 Replies

ActionScript 3.0 :: Incoming XML Looks Completely Corrupted

Sep 11, 2010

I'm calling a php page from my Actionscript which generates XML and sends it back to me. No problem; I've done this hundreds of times before. Now, however, I get a weird problem: The *second* time (and subsequent times) I call the php page, the returned XML looks like[code]...

View 3 Replies

Media Server :: Two Incoming Streams To The Same Box?

Oct 13, 2010

I'm trying to figure out whether or not it's possible to have two incoming streams to the same FMS server. Every time I try to search this information, I find stuff on having multiple outgoing streams, but nothing on multiple incoming streams.
 
The two streams will have the same content, but will use different video / audio codecs, and be set to different resolutions / bitrates. 
 
I don't want to spend the money on another server, so it'd be great to know if FMS can do this..

View 3 Replies

ActionScript 3.0 :: Get All Incoming Variables From PHP File?

Mar 15, 2011

I am attempting to retrieve data from a PHP file within my Actionscript file.I have a large amount of incoming dynamic variables so it is necessary for me to retrieve them all, however, I don't want to get every variable individually as that would take a very long time to code and does not work well. Is there any way to get all variables at once?[code]...

View 3 Replies

As3 :: Flex - Pass Along An Incoming Xml Post Request?

Jun 15, 2011

I need to pass along an incoming xml post request using as3? Is there a simple way to just pass that request through an as3 application? I don't want to do anything with the request other than send it along to its destination.

View 1 Replies

ActionScript 3.0 :: Parsing Incoming Data From URLLoader?

Jan 28, 2010

How can I parse my incoming string returned by server and get values?

Look at the code below, that is part of a class I am writing:

Code:
var PHPURLRequest:URLRequest = new URLRequest(MyServerURL+"myscript.php");
var PHPsendVars:URLVariables = new URLVariables();
var PHPLoader:URLLoader = new URLLoader();

[Code]...

View 1 Replies

ActionScript 3.0 :: Treat Incoming XML As Variable Names?

Apr 22, 2010

I use AS3 in Flash to read XML from an external document. I'm wondering how to tell AS3 to read and treat some of the incoming XML values as variable names. For example, in the beginning of my Actionscript, I have defined the variable:

var playerAge:Number;

and some of the incoming XML nodes look like:

<whichVariable> playerAge </whichVariable>
<whichValue> 10 </whichValue>

Now, upon reading these two nodes, I want to make a function that adds the value of the second node to the variable with the name contained in the first node. However, I can only get AS3 to read the value of the first node as a a string ("playerAge"). How do I get it to make the 'connection' between the XML node and the variable with the same name?

View 2 Replies

ActionScript 3.0 :: How To Listen Incoming Data (Like Socket)

Oct 30, 2010

I need my flash to pull data from php dynamically. I got a php file that listens mysql for new datas to be pulled in while condition.. when data pulled I have the following ideas:
Use socket server within the same php file and send the data thru socket.. (this can be done but I do not wanna use socket yet!) have my flash file listen for posts but how can I send a POST variable from php to flash without clicking Submit button? Using Ajax and passing received-variables thru flashvars?Examples : [URL]

View 5 Replies

Flex :: Display The Incoming Stream In Receiver Page?

Mar 29, 2011

I'm trying to put in place a Flex application that allows a user to send a video stream and let the others to display it.

I created a sender page (below).

[code]...

I don't know why in the receiver page I can't display the incoming stream? I put a simple alert to show the returned connection code, it shows "Success".

View 1 Replies

ActionScript 3.0 :: Stop And Restart Incoming Stream Through Server?

Mar 8, 2011

Can anybody tell me how to stop and restart the incoming stream thru server action script?

View 0 Replies

ActionScript 3.0 :: Error: "NetStream.Play.StreamNotFound" While Playing Mp4 File Using NetStream Object?

Jan 7, 2010

I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:

var url:String = <some http url>;
connect_nc = new NetConnection();
connect_nc.connect(null);

[code]........

View 0 Replies

Actionscript 3 :: NetStream.info, Getting Error #2154 "The NetStream Object Is Invalid"

Mar 20, 2012

In my application I have a video playing from a NetStream. Every second on timer I update a text label with statistics like stream.info.currentBytesPerSecond. The problem occurs when the NetConnection associated with this NetStream closes: the getter for stream.info throws

[Code]...

View 1 Replies

Flex :: Get The Number Of Incoming Links To A Page Through The Google Search API?

Jan 25, 2010

I am trying to get the number of incoming links to a page through the Google Search API. It is not working (just returning Null)

Here is the code

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();" width="320" height="480" backgroundGradientColors="115115" backgroundGradientAlphas=".2" backgroundAlpha=".2" dropShadowEnabled="false">

[code]....

So the data return from the query is correct, and the difficulty lies in accessing the "estimatedResultCount" near the end of the JSON data.

View 1 Replies

ActionScript 3 :: Generating Random Starting Points For Incoming Objects?

Oct 26, 2011

we have this game where you control an avatar in the middle of the stage that defends itself from incoming projectiles. If it hits them with its arms or legs you get a +1, but if they hit the head or torso you get a -1. But cant figure out how to spawn them randomly along a given path. See picture below. Want them to come in from the sides but have the same "destination-area" - which would be the head & torso.

View 1 Replies

ActionScript 2.0 :: Can't Get Swf To Shrink The Incoming Swf To The Size Of The Clip Calling The Method

Apr 20, 2009

I'm using the "loadMovie" method and according to the using flash manual.. it's supposed to import a swf and resize it to the size of the movieclip it's replacing... only here's the problem.. I cant get it to shrink the incoming swf to the size of the clip calling the method... it keeps importing the swf at full size..

View 1 Replies

ActionScript 3.0 :: NetStream.Connect.Closed - Know Which NetStream Has Been Closed

Aug 2, 2010

A NetStatusEvent with info.code of "NetStream.Connect.Closed" is dispatched by NetConnection when a NetStream is closed. This seems kind of weird, shouldn't the NetStream dispatch the event? how do I know which NetStream has been closed if I have more than one running (which I do)? I need to know so I can cleanup the now dead stream.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved