Skip to main content
November 1, 2010
Question

flash media server 4 loadvars encoding issue.

  • November 1, 2010
  • 1 reply
  • 883 views

LoadVars in flash media server 4 gives me HttpStatus 0. The same call in flash media server 3.5.1 works. Not sure what has changed in FSM 4 javascript engine related to encoding.

SessionID=9f2bc0eb%2d7d5d%2d42cf%2d9425%2db8211ee2b57e&filename=testfile%2eflv&contenttype=video%2fx%2dflv

Any pointers would be helpful.

    This topic has been closed for replies.

    1 reply

    November 1, 2010

    I am putting the step in detail so that some can answer what has changed in FMS 4 for below call to fail.Below code works in 3.5.1.

    var entry = new LoadVars();

    entry.SessionID="fffd9f3d-4712-4fd4-b6bb-c56ea9a30fba";

    entry.filename="test.flv";

    entry.type="video/x-flv";

    var resp = new LoadVars();

    // resp had onData handle to process the resp.

    entry.sendAndLoad("http://xyz:123456",resp,"POST");

    November 13, 2010

    Hi kanr ,

    I tried this code on my FMS 4.0 server.

    application.onAppStart = function() {

    var entry = new LoadVars();

    entry.SessionID="fffd9f3d-4712-4fd4-b6bb-c56ea9a30fba";

    entry.filename="test.flv";

    entry.type="video/x-flv";

    var resp = new LoadVars();


    resp.onData = function(data) {
      trace("onData" );
    }

    resp.onHTTPStatus = function(status) {
      trace("status: "+status);
    }

    entry.sendAndLoad("http://localhost:8134/cgi-bin/test.pl",resp,"POST");
    }

    I do get the HTTP Status as expected i.e 200 in onHTTPStatus. Are you trying something different from this that is not working. If required, you can provide me more details on abh@adobe.com

    Thanks,

    Abhishek

    November 13, 2010

    Thanks for the reply.

    If the HTTP response contains below header it is causing the problem. My

    weblogic server was returning below header was causing issue in FMS 4. FMS

    3.5.1 is able to handle the chunked responses.

    Transfer-Encoding: chunked