[flexcoders] Re: NetConnection Header
I ended up writing a service that takes the new session id as a variable and changes the server session. This updates the appendtogateway varaible with the new session ID and all subsequent calls use the new session id. http://www.amfphp.org/docs2/fundamentals/Sessions.html Wade Arnold
[flexcoders] NetConnection Header
I am working on trying to change the PHPSESSID that is being sent to the server on each service call. With NetConnection I can add a new header but that header is just inside of the AMF call. Is there a way to actually change the HTTP header from AS3? This is what I tried but I need to do this up a level on the network stack. private var gateway:String = http://localhost/amfphp/gateway.php;; private var connection:NetConnection; public function Main() { var myHeader = {PHPSESSID:'123456'}; connection = new NetConnection; connection.connect(gateway); connection.addHeader(Cookie, true, myHeader); etc Thanks for any insight that you might have! Wade Arnold.
[flexcoders] Re: Can Flex play rtmp camera video?
Are you suggesting this? Can you please provide an example of it working? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Can Flex play rtmp camera video?
I want to play a live feed from the flash media server in flex. I have another camera that is connected and uploading the video feed to FMS. I am unable to find a solution for Flex to play that stream. The following is what I would do in flash. Your assistance would be greatly appreciated! -- Wade import mx.utils.Delegate; System.security.allowDomain('10.3.0.141'); var _camera_vid:Video; var _nc:NetConnection; var _ns:NetStream; function setupNetConnection(uri:String):Void { _nc = new NetConnection(); _nc.connect(uri); _ns = new NetStream(_nc); _camera_vid.attachVideo(_ns); _ns.play(camera); } setupNetConnection(rtmp:/10.3.0.161/cam1); -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] recieve RTMP Stream in flex? This can't be this hard?
I am trying to connect to an RTMP stream from the Flash Media server in Flex 2. I have yet to be able to pull this off. Following the api I have the following class in the components directory and below that the mxml. This is the error that I receive. Any ideas on how to make this work would be greatly appreciated. Video Example! netStatusHandler connectStream netStatusHandler Unable to locate video: rtmp://10.3.0.104/iscam1 -- Wade package components { import flash.display.Sprite; import flash.events.*; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; public class VideoExample extends Sprite { private var videoURL:String = rtmp://10.3.0.104/iscam1; private var connection:NetConnection; private var stream:NetStream; public function VideoExample() { trace(Video Example!); connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); connection.connect(null); } private function netStatusHandler(event:NetStatusEvent):void { trace(netStatusHandler); switch (event.info.code) { case NetConnection.Connect.Success: connectStream(); break; case NetStream.Play.StreamNotFound: trace(Unable to locate video: + videoURL); break; } } private function connectStream():void { trace(connectStream); var stream:NetStream = new NetStream(connection); stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); var video:Video = new Video(); video.attachNetStream(stream); stream.play(videoURL); addChild(video); } private function securityErrorHandler(event:SecurityErrorEvent):void { trace(securityErrorHandler: + event); } private function asyncErrorHandler(event:AsyncErrorEvent):void { // ignore AsyncErrorEvent events. } } } AND THE MXML ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:T8=components.* layout=vertical horizontalAlign=left T8:VideoExample / /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/