Skip to main content
April 3, 2012
Question

Disable RTMPT\RTMPTE

  • April 3, 2012
  • 1 reply
  • 741 views

Hi,

I have FMIS server.

1) I want my server to accept RTMPT\RTMPTE when streams are published on to it and

want to reject RTMPT|RTMPTE when some client tries to connect using these protocols.

I think i should write server side actionscript to reject connection on RTMPT protocols, this should server the purpose as above.

application.onConnect = function(clientObj) {

//reject rtmpte or rtmpt

   if(clientObj.protocol == "rtmpt" || clientObj.protocol == "rtmpte"){

     return false;

   }

  return true;

}

If i set <DisallowedProtocols>rtmpt,rtmpte</DisallowedProtocols>, this will disable both publishing and connecting using these protocols?

2) If i do not want to use port 80, i need to

Remove 80 from the ADAPTOR.HOSTPORT  parameter so the parameter looks like the following:

ADAPTOR.HOSTPORT = :1935

Pls confirm above 2 queries.

thanks,

Pooja

    This topic has been closed for replies.

    1 reply

    April 3, 2012

    1) This will reject the connection from a client irrespective of whether the client is trying to publish a stream or playback a stream.

    2) That is correct.

    April 3, 2012

    Thanks.

    so if i write this code in main.asc file:

    application.onConnect = function(clientObj) {

    //reject rtmpte or rtmpt

       if(clientObj.protocol == "rtmpt" || clientObj.protocol == "rtmpte"){

         return false;

       }

      return true;

    This will DISABLE both publish and playback from CLIENT?.

    My system consists of a publisher\feeder which pushes files in vod folder?. Is this publisher\feeder considered as a CLIENT here?

    Pls suggest configuration where i can allow to PUBLISH on RTMPT and DISABLE playback on RTMPT

    Many Thanks,

    Pooja