Skip to main content
Participating Frequently
September 9, 2009
Question

FMS: User is not getting disconnected from FMS on using IE until IE is closed.

  • September 9, 2009
  • 3 replies
  • 2472 views

Hi,

FMS: 3.5

User is not getting disconnected from FMS on IE until IE is closed. While it works on Firefox and Chrome.

When a user logs out on Firefox and Chrome, the user connection of FMS is getting updated. But it doesn't work on IE until IE is closed.

Looking for the solution...

    This topic has been closed for replies.

    3 replies

    Participating Frequently
    September 10, 2009

    Yes, I know this is a FMS issue not an IE issue. More precisely, this is an issue related with Flash Player and ActivX for IE.

    It seems, setInterval() and clearInterval() have been used in the solution given by "calmchessplayer". I think, that would not be a genuine solution.

    Please write it in more details. Any other genuine solution...?

    Is there any fix for this from Adobe?

    "JayCharles", it has nothing to do with the PHP. I think so because it works fine with other browsers (Firefox and Chrome).

    Waiting for the more precise replies...

    September 10, 2009

    You can get around the activeX issue with javascript, which is why I'm asking about the method you're using to embed the flashplayer object. This has nothing to do with PHP, but it does have to do with the HTML markup generated by PHP in order to embed the activeX object on the client side.

    Participating Frequently
    September 10, 2009

    The chunk of PHP code that is calling the main "SWF" file is below:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="595"    height="770" align="middle">
      <param name="movie" value="flashUtils/flashRooms/Client/Main.swf" />

      <param name="FlashVars" value="userInfo=137,listen&roomInfo=4,Battle gg,Battle,4&roomControl=default,user" />
      <param name="quality" value="high" />
      <param name="salign" value="t" />
      <embed src="flashUtils/flashRooms/Client/Main.swf"
      quality="high"
      salign="t"
      pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
      type="application/x-shockwave-flash" width="595"
         height="770"                              align="middle"
      FlashVars="userInfo=137,listen&roomInfo=4,Battle gg,Battle,4&roomControl=default,user"
      >
      </embed>
    </object>

    Participating Frequently
    September 9, 2009

    Im calling the "SWF" file by PHP.

    I have tested it on IE 7 and IE 8 but the problem exists in both the cases.

    calmchessplayer
    Inspiring
    September 9, 2009

    This is not an IE issue but a media sever issue same thing happen if the user pulls the network cable out of their computer there ar numerous fixes for this issue i'm going to post one here if you can figure out how to use it it will solve your problem.

    main.asc

    load("Delegate.asc");

    application.onConnect = function(p_o)
    {
    this.acceptConnection(p_o);

    p_o.clientIsBad= function()
    {
      trace ("is bad")
      clearInterval(this.resultInt);
      clearInterval(this.checkInt);
      application.disconnect(this);
     
    };
    p_o.clientIsGood = function()
    {
      trace ("is good")
      clearInterval(this.resultInt);
    };

    p_o.checkValid = function()
    {
      trace("watcha!");
      clearInterval(this.resultInt)
      this.resultInt = setInterval( p_o, "clientIsBad", 2000 );
      this.call("imHere",{onResult:Delegate.create(p_o, this.clientIsGood),onStatus:Delegate.create()} );;

    };

    p_o.checkInt = setInterval( p_o, "checkValid", 120000 );
    };

    FLA

    var nc = new NetConnection()

    nc.onStatus = function (o)
    {
    trace(o.code);
    };

    nc.connect("rtmp://YourAccount.rtmphost.com/AppDirectory");

    nc.imHere = function(p_b)
    {
    trace("imHere");
    return (true)
    };

    September 9, 2009

    In this case, it is an IE specific issue. The problem is that in some cases, IE doesn't actually destroy the instance of the Flashplayer until the browser is closed. This is different than the issue Calmchessplayer describes.

    Please post the embed code  your PHP application generates.

    September 9, 2009

    What method are you using to embed the .swf in your page? I recall reading about this problem a while ago... I seem to remember it being an issue with certain Javascript methods for embedding the swf.

    Also, are you having the problem with all versions of IE, or just a particular version?