Media Server :: XMLSocket NULL Byte Generation?

Mar 25, 2010

I'm trying to get an external script to communicate with an application instance running on my Flash Interactive Media Server installation. I've got the following server side actionscript in my AppStart():
 
[code]...
 
The connection to an open socket on the localhost, port 16005 works fine, but when I try to write some xml to the socket that I accepted the connection on (running on the localhost), I never seem to get the onXML or onData callbacks on the server application instance. One question that I had was regarding the NULL byte. If the FMS application doesn't not receive the NULL byte, does that mean the callback won't happen? If so, can someone tell me how to take something like a Python string and *add* a NULL byte so that the FMS will invoke the proper onXML or onData callback when this data is sent?

View 1 Replies


Similar Posts:


Media Server :: Double Byte Stream Name

Feb 2, 2012

is it possible to play RTMP stream with double byte name like japanese korean etc.? I tried to with and without escape() stream name without success like [URL] doesn't work

View 1 Replies

Media Server :: FLVPlayback Component's NcMgr.netConnection Is Null When Connecting To My Flash Media Server?

Jan 13, 2010

I'm trying to troubleshoot a Flash Media Server working with a little video playback application I wrote a few years ago that has suddenly stopped working.I'm using CS3/Actionscript 3.My app uses the FLVPlayback Component, and was working well last time I checked.  I recevied a report that the videos stopped working, and have been looking into it.I figured I'd add a bunch of event listeners to the FLVPlayback's ncMgr.netConnection so I could get debug info on things like io errors, net status, etc.The problem I'm running into is that the netConnection is null when I set it to anything on my Flash Media Server, and adding any event listeners to this netConnection throws errors.Here's what I've tried so far:

Playback of a local FLV file works fine.In the FLVPlayback documentation, I found an example and stole the URL of the stream they were using in the example, and that works fine, although it is an HTTP protocol stream rather than RTMP.Any attempt to access FLV files on my Media Server, which has worked fine in the past, basically cause the FLVPlayback object to sit and hang in "buffering" mode and never progresses beyond this point.The netConnection object in this case is null.Here's my code:[code]........

Again the purpose of this is to troubleshoot the video streaming from the Flash Media Server, and it seems like there is no netconnection to the server being created.Does this mean that the server is not working, or is there a problem with the way I'm trying to access the content on the server?This was all working fine before, and I have set up the server-side application .ASC files and such to allow things to work fine on the server end.

View 6 Replies

ActionScript 3.0 :: AIR AS3 XmlSocket <=> Java TCP/IP Socket. 00 Byte In Wrong Place?

Mar 8, 2012

I'm extending XMLSocket to work with a daemon, written in Java, that a peer is using to interface with his PLC controller.What I should be seeing from the daemon is simple digital io info in the form:

Code:
d0i,d0o,

Which represents a 'button' dowm/up. The strings are terminated with commas to make it easier for me to parse them. I've got my XMLSocket working just fine, but I'm receiving the data more like this:

Code:
socketDataHandler:
socketDataHandler: D
socketDataHandler: 4

[code]....

So, there's a null character, followed by individual chars that make up the message I'm expecting, only last "," is truncated. It does come through on the next dataEvent:

Code:
socketDataHandler: ,
socketDataHandler: D;
socketDataHandler: 4;
socketDataHandler: O;

Lastly, I checked raw data in a shell, and it looks like:

Code:
0000000: 0044 0034 0049 002c 0044 0034 004f 002c
0000010: 0044 0034 0049 002c 0044 0034 004f 002c

When dumped to hex. It is my understanding (mostly from a sdocs) that Each XML message is a complete XML document, terminated by a zero (0) byte.I can see that he's sending each CHAR separated by a 00 byte, but they are prepended, not appended like:

Code:
0000000: 44 00 34 00 49 00 2c 00 44 00 34 00 4f 00 2c 00
0000010: 44 00 34 00 49 00 2c 00 44 00 34 00 4f 00 2c 00

or even better:

Code:
0000000: 44 34 49 2c 44 34 4f 2c 00
0000010: 44 34 49 2c 44 34 4f 2c 00

View 3 Replies

Actionscript 3 :: Writing A Null Value Into The Byte Array?

Mar 16, 2012

I was wondering what the 0x0 in byteArray.writeByte(0x0) means?

Is it writing a null value into the byte array?

View 1 Replies

ActionScript 3.0 :: Socket Class: Null-byte Throwing EOF

Oct 22, 2009

Could you please explain how to disable this unnecassery, bogus, and semantically invalid behavior of the network communication classes when it receives a 0 valued byte? (specifically the Socket class.)

View 8 Replies

ActionScript 3.0 :: Correct Way To Add Null Bytes In A Byte Array?

Jul 18, 2010

How do you add null bytes to a byte array or in my case I need to pad a byte array with null bytes before its wrote to disk.

View 1 Replies

ActionScript 3.0 :: Wait For Data - Send A 3 Byte Message To The Server (C) And Have The Server Return A Response?

Dec 17, 2010

I made a server connection with AC3 and C, I need the client(AC3) to be able to send a 3 byte message to the server (C) and have the server return a resopnse. So far everything works except for the fact that the feedback isn't fast enough becuase AC3 just tests for data once and moves on instead of waiting like in C. I'm using a binary socket at the moment but I was wondering if there was any way to wait for new data before moving on

View 2 Replies

Media Server :: TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object?

Oct 7, 2010

I have this set of codes for a simple chat program using SharedObjects. When I run the program, I type my name into the 'chatName' box and my message in the 'textInput'box. However when click on the 'Send' button or press the Enter key, I am getting the following error:
 
" TypeError: Error #1009: Cannot access a property or method of a null object reference. at TextChat/sendMsg() "
 
As mentioned in the error message I looked at the 'sendMsg()' function. I realised the problem was comming from the line :
 
text_so.setProperty ("msg",chatName.text +": "+ textInput.text);
 
I am wondering how 'text_so' can be a null object reference. It was already instantantiated and setup earlier in the code. I hope someone can shed light on this. The relevant lines of code are below.

[Code].....

View 3 Replies

Media Server :: TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Mar 19, 2010

i use the code below to publish my cam, and i can play it in the same application. Then i copy and renamer it videoPlayer2.as then i use displayPlaybackVideo(); method but it says "TypeError: Error #1009: Cannot access a property or method of a null object reference.". How can i get the published live video from another app. 
 
videoPlayer.as // publish and play
package {      import flash.display.MovieClip; import flash.net.NetConnection;      import flash.net.NetStream;   import flash.media.Camera;  import flash.media.Microphone;     import flash.media.Video;      import flash.events.NetStatusEvent;   import

[code]...

View 4 Replies

Apache Server W/ XMLSocket?

Aug 17, 2011

I have a perl socket on my apache server that correctly takes input from sockets and sends it back out to every socket connected to the perl socket. I have tested the perl socket, and it works correctly.
When I launch the Flash in the IDE, as a flash program, it functions correctly with the perl socket.
However, when I try to launch the Flash in a Browser on my apache server, it tells me it is unable to connect to the server.However, I am seeing from feedback from my perl socket, the flash connects for about a half of a second, and thats it.

What could be the problem, do I have to include code in the flash to allow XMLSockets to connect in a browser as well? Is there certain things I need to do with my apache server to make it work?

Also if I 'Preview as HTML' from Adobe Flash CS4, it does not connect.

View 3 Replies

Flash :: Can't Connect To Server With AS3.0 XMLSocket

Feb 7, 2010

I have a server that I have written in Python and I'm trying to connect to it via Flash's XMLSocket. I know for sure that this server is working properly as I have used it successfully with multiple non-Flash client applications. For right now, I just want to connect to the remote server with an SWF residing on my local disk. From what I understand, this means that I do not need a security policy file since the SWF is not in another domain. I have also confirmed that the security sandbox property of the file is set to local-trusted, so the SWF should be able to connect to servers and retrieve data from them. Here's the important code from the AS file:

[Code]...

View 3 Replies

Flash :: Client XMLSocket Not Connecting To Server

Jul 30, 2009

I have a Flash client that I want to connect to a server. Both are using localhost and port 50000 so there shouldn't be any cross-domain problems. I also set Access Network Only in the publishing settings. When I call the XMLSocket connect, the server seems to get a new connection. But, the XMLSocket.onConnect callback is not called with success=true.[code]...

View 2 Replies

Flash - Have A XMLSocket On The Server Side For AIR ServerSocket?

Jun 28, 2011

I have two software to create with AIR: a server and a client. Both with AS3 and AIR.I want to avoid having a big architecture with Remote Shared Object, or using BlazeDS, or having to set a Java / Python / ... server in the middle.In order to avoid having to parse socket data in the server and in the client side, I thought about using XMLSocket on the client side: the data arrives in a way which is already parsed by the Flash framework.However, when I use this XMLSocket with the AIR ServerSocket, the "connect" event returns me a raw Socket on the server side. So I have to manually manage the XML data on the server side.

Is there a way to also use an XMLSocket on the server side to communicate with the client? A kind of trick to convert the returned Socket into an XMLSocket?If there is an AS3 library which manages that, I did not find it.

View 2 Replies

ActionScript 2.0 :: Establish A Xmlsocket Connection In Real Server?

Aug 31, 2011

I've designed a flash [as2 php xmlsocket] chatroom , it works fine in localhost but i don't know how to run on real website server.I've uploaded the files but when i run the flash it can't establish a connection.What server requirements i need for xmlsocket?

View 0 Replies

ActionScript 2.0 :: Make A Xmlsocket Chatroom In Computer With Wamp Server?

Sep 27, 2010

i want to make an xmlsocket chatroom in my computer with wamp server ,i use this port and ip:

HTML Code:
mySocket.connect("localhost", 1026);

and i have changed the port of wamp server to 1026 and i have puted the socket.php file in www directory of wamp.when i run the swf file in flash the connection establishing is succesfull but when i try to send data the connection will close.this is the actionscript code:

HTML Code:
mySocket = new XMLSocket();
mySocket.onConnect = function(success) {
if (success) {

[code]....

View 0 Replies

ActionScript 2.0 :: Use XMLSocket Class With Some Amount Of Server Code Included?

Nov 8, 2005

simple Tutorial showing the use of XMLSocket class with some amount of server code included?

View 1 Replies

Php :: Uploading Image To Server Using Byte Array To Upload In Flex 4.5 Air?

Jun 13, 2011

I'm using Flex 4.5 in a Mobile air for android application. So, Using the Camera/Camera roll [URL]I want to do a simple upload using amfphp Note: Since this is how you get pictures on devices, i cant use the filreference because it wants you to get the pictures using "browse" which cant be done on android or ios My plan is, after I select a picture or capture one with the camera, in the event I can get the local url to the picture that was taken like this:

[URL]

I'm putting this in the imageURL var (i'm assuming i should make it into a byte array to transfer it, im not exactly sure this is my first time making something like this)Here's how i'm taking that image, making it into a byte array, and using amfphp to send the upload to the server:

protected function upload_btn_clickHandler(event:MouseEvent):void
{
var request:URLRequest = new URLRequest(imageURL);
var urlLoader:URLLoader = new URLLoader(request);

[code]....

But i'm getting an error NetConnection.Call.BadVersion.This is the first time im trying something like this so im not even really sure if im going about it right. All the examples I find online go about using the fileReference class, but that seems to require me to use the "browse" method, and im on a mobile application that uses the camera and camera roll to grab pictures off the device, and im not sure how to incorporate that into the fileref class. I figured i could just get the byte array and send it to php myself and it should be just fine.

View 1 Replies

Flex4 - How To Send Byte Array To Server In Flash Builder (Flex 4)

Mar 24, 2011

I have a video file in my local system.I am using windows XP in my system. Now i want to send this video file byte array to server in Flash Builder (Flex 4). I am using PHP at server end.

View 5 Replies

Media Server :: Can Adobe Flash Media Streaming Server 3.5 Run On AMD Athlon Dual Sock Quad Core?

Nov 10, 2009

Can Adobe Flash Media Streaming Server 3.5 run on AMD Athlon Dual Sock Quad Core?I just requested a Dell server to be added to our farm to run as a Media Server and to my surprise, while reading the requirements for FMS it states the following: 3.2GHz Intel® Pentium® 4 processor (dual Intel Xeon® or faster recommended)

View 2 Replies

Flash :: Media Server - Automatically Configure Edge From The Admin Console Of Media Interactive Server?

Jan 17, 2010

How can we automatically configure edge from the admin console of flash media interactive server?

View 1 Replies

Media Server :: Number Of Connection Allowed In The Free Developer Ediiton Of Flash Media Server?

Mar 27, 2010

I would like to know the number of connection allowed in the free developer ediiton of Flash Media Server.

View 4 Replies

Flash :: Media Server - Send Video And Audio Data To A Media Server By Using RTMP Protocol

Jul 22, 2010

I'm trying to make a software which sends video and audio data to a flash media server by using RTMP protocol. Currently, my program can communicate with a flash media server correctly. RTMP specifications does not describe about the raw data in video/audio messages, so I muxed raw H.264 and AAC data into video/audio messages and sent to the server. The server seems to accept them, but a video player cannot playback the stream sending from the server. The player just says "Loading..." For a test purpose, I sniffed the network packets between Wirecast and the flash media server and ripped off only video and audio data. Then, I muxed those data into video/audio message and sent to the flash media server. In this case, the video player connected to the server can playback the stream correctly.

I checked the stream sent from Wirecast, the stream seems not to be H.264 raw data because those data are not started from 0x17 instead of H.264 start code. With those situation, I am wondering what kind of container format I should use for H.264/AAC data to the flash media server.

View 12 Replies

Media Server :: Not Save FLV In Sample Flash Media Interactive Server Feature Explorer?

Jul 1, 2010

I have to a problem using the Flash Media Interactive Server Feature Explorer. I want use the sample: RecordStream. I can see the instance "RecordStream" in console FMS 3.5. and show me the video in app AIR, but does not save the .FLV in my server.

View 6 Replies

Media Server :: Security Check Determined That I Need To Patch Our Adobe Flash Media Server?

Jul 6, 2010

Apply the security patch found here:http:[url]............For more information see the followingresource:CVE: 2009-1365

View 1 Replies

Media Server :: Secure Flash Media Streaming Server 3.5 (live Stream Connection)

Aug 23, 2010

I have Flash Media Streaming Server 3.5 (not Interactive) running on RHEL5.5 x86_64 Linux.All is working well, however how do I prevent unauthorized access to connecting to the live stream and streaming content?How can I setup the server to require a user and password to stream live media to the server?I am new to this product and I have been reading some documentation but I have not found a clear cut answer on how to force a username and password to connect to the server to stream live content only.I am using the Adobe FMS Apache install, what files need changing?[code]I want to lock down a person from connecting to the server on the public internet and starting a live stream?Can this be done with a user name and password?

View 13 Replies

Media Server :: Sophos Antivirus Can Stop Taking Connection By Flash Media Server?

Oct 13, 2010

Our flash media server  stops taking connection sometime. Any one have any idea about sophos antivirus?

View 8 Replies

Media Server :: Flash Media Server Taking Forever To Load Large Files

Jan 12, 2011

We purchased FMIS and we are encoding large 15+ hour MP4 recordings using flash media encoder. When opening these large files for playback, which have not been opened recently  the player displays the loading indicator for up to 4 minutes! Once it has apparently been cached on the server it opens immediately from any browser even after clearing local browser cache. So a few questions for the experts

1. Why is it taking so long to load the file. Is it because the MP4 metadata is in the wrong format and the file is so huge? I read somewhere that Media Encoder records with incorrect MP4 metadata is that still the case?
 
2. Once its cached on the server, exactly how much of it is cached. Some of these files are larger than 500mb.

3. What fms settings do you suggest I change. FMIS is running on windows server R2 64 bit, but FMIS itself is 32 bit. We have not upgraded to the 64 bit version. We have 8GB of ram. Is it OK to set FMS cache to 3GB. And would that only have enough room for 3-4 large files, because we have hundreds of them.

View 1 Replies

Media Server :: Posible Fast Forward / Rewind Video In Flash Media Server?

Sep 23, 2011

is it possible fast forward, rewind video in flash media server through flash action script ?

View 5 Replies

Media Server :: Flash Media Server 4.5 Log Files Filed X-sname And X-event Detials

Mar 23, 2012

I am using flash media server 4.5 for video streaming and genrate log files. In log file i have found the user publish point name in "x-sname" filed but this filed contains blank values in many events.This fileds contains value only in "PUBLISH,UN_PUBLISH,RECORD and PUBLISH_CONTONUE" event and other then these 4 events all events are not user related event.?I like to fetch the user bandwidth detials using these log files which user used how many bandwidth.I also like to know I can see serval files on flash log folder name "access.00.log,access001.log and admin.00.log,admin.001.log" Any one please explain what is the name convation for this filed how can i identifiy which files contains information for which date.?

View 1 Replies







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