Skip to main content
Participant
Sep 9, 2010 4:22 PM UTC
Question

Live Streaming w/ RTMPE Only?

I'm hoping there's a simple answer to this. I'm attempting to stream a live event using FMLE and FMS. The first thing that throws me off is that I cannot push the stream to the server using RTMPE, only RTMP. I assume this is because the the encryption is handled by the server and not the encoder. However, for the sake of security I would like to disable RTMP connections from the flash player to the server. Yet it would seem that if I incorporate the server side scripting described here http://kb2.adobe.com/cps/405/kb405456.html (namely the changes to my main.asc file), that my server would reject an RTMP connection from FMLE? Is that correct? If so, where do I go from here? Can I broadcast a live stream using RTMPE only? Do I need a different encoder or something, or am I just missing a very simple point?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Sep 9, 2010 5:06 PM UTC

    You're correct that FMLE can't publish RTMPE.

    What you can do is, in your logic for inspecting the client protocol for the connection, make an exception for FMLE user-agents. Based on the example code in the doc you linked to, you could do something like:

     application.onConnect = function(clientObj) {
       if(clientObj.protocol == "rtmpe" || clientObj.protocol == "rtmpte" || client.agent.indexOf("FMLE") > -1 || client.agent.indexOf("FME") > -1){
         return true;
       }
      return false
    }
    Translate