Skip to main content
Participating Frequently
July 21, 2010
Answered

SWFVerification for FMSS

  • July 21, 2010
  • 1 reply
  • 1811 views

Hi, I have a Flash Media Streaming Server and I want to use SWFVerification. But I have a questions...

1. We use for example rtmp://domain/live/recordings, I need to edit Application.xml in the folder "application/live"?

2. I can to use URL Absolut in Application.xml?

<SWFVerification enabled="true">
        <SWFFolder>http://www.domain.com/folderA/folderClients/</SWFFolder>
        <MinGoodVersion></MinGoodVersion>
        <UserAgentExceptions>
            <Exception to="" from=""/>
        </UserAgentExceptions>
        <Cache>
            <TTL></TTL>
            <UpdateInterval></UpdateInterval>
        </Cache>
    </SWFVerification>

3. How I can add more folders? for example: other clients

or How I can use SWFVerification in FMSS?

Thanks in advanced

    This topic has been closed for replies.
    Correct answer SE_0208

    SWFVerification configuration is same for FMIS and FMSS - there is no difference for in them. Coming to your questions: you need to do below things which i am pointing to.

    1. If you want to apply SWFVerification for only those clients connecting to "live" application - then you can modify Application.xml under "live" - but if you want to apply SWFVerification for all connection to any applications on the server - please edit root Application.xml (meaning one which you will find under _defaultRoot_/_defaultVHost_). Edit it and do not forget to restart the server.

    2. It needs to be like below

    SWFVerification enabled="true">
            <SWFFolder>C:\MySWFs</SWFFolder>
            <MinGoodVersion></MinGoodVersion>
            <UserAgentExceptions>
                <Exception to="" from=""/>
            </UserAgentExceptions>
            <Cache>
                <TTL></TTL>
                <UpdateInterval></UpdateInterval>
            </Cache>
        </SWFVerification>

    where "C:\MySWFs" contains the swfs which will be used to connect to applications. You can also chose to keep <SWFFolder> blank - in this case please create "SWFs" folder under each application and put relevant swf files under it

    example: Say i use "test.swf" to connect "live" application. Then i can do two things:

    a. Place "test.swf" under C:\MySWFs OR

    b. Create "SWFs" folder under "live" application and place "test.swf" there.

    3. - I think 3rd question is already answered by 1 and 2

    1 reply

    SE_0208Correct answer
    Participating Frequently
    July 21, 2010

    SWFVerification configuration is same for FMIS and FMSS - there is no difference for in them. Coming to your questions: you need to do below things which i am pointing to.

    1. If you want to apply SWFVerification for only those clients connecting to "live" application - then you can modify Application.xml under "live" - but if you want to apply SWFVerification for all connection to any applications on the server - please edit root Application.xml (meaning one which you will find under _defaultRoot_/_defaultVHost_). Edit it and do not forget to restart the server.

    2. It needs to be like below

    SWFVerification enabled="true">
            <SWFFolder>C:\MySWFs</SWFFolder>
            <MinGoodVersion></MinGoodVersion>
            <UserAgentExceptions>
                <Exception to="" from=""/>
            </UserAgentExceptions>
            <Cache>
                <TTL></TTL>
                <UpdateInterval></UpdateInterval>
            </Cache>
        </SWFVerification>

    where "C:\MySWFs" contains the swfs which will be used to connect to applications. You can also chose to keep <SWFFolder> blank - in this case please create "SWFs" folder under each application and put relevant swf files under it

    example: Say i use "test.swf" to connect "live" application. Then i can do two things:

    a. Place "test.swf" under C:\MySWFs OR

    b. Create "SWFs" folder under "live" application and place "test.swf" there.

    3. - I think 3rd question is already answered by 1 and 2

    Participating Frequently
    July 21, 2010

    ohh wowwww SE_0208!!! thanks you!!!! this is great information!!!

    but, I have a one question... Can I use a absolute URL for mi SWFFolder, for example:

     <SWFFolder>http://www.domain.com/testFMS</SWFFolder>

    Because I only use FMSS in my server and I use my SWF in different server.

    thanks again!!

    Participating Frequently
    July 21, 2010

    I do think that's possible - but don't get confused here. You can still serve the swf from anywhere even from another server, what you need to do is just copy that swf from where you serve it to where your FMSS is so that FMS can verify that client trying to connect is authentic or valid swf.

    In simple terms , lets say you have "test.swf" which is your client swf. Now you have place it on ServerB which is nothing but your webserver (which is accessed by using www.domain.com). So user will hit browser using http://www.domain.com/test.swf. Now test.swf tries to connect to FMS which is say on machine called ServerA. Now for FMS to verify that "test.swf" is valid client, you need to have "test.swf" in configured SWFFolder or SWFs folder of application. I hope you get this is more simplified now