8 Replies Latest reply: Jun 10, 2013 11:26 AM by phpized RSS

    Live video stream play permission on server-side

    phpized
      I have a live video stream application one-to-many for example, and i want to send video only to few clients, not to all. Like:

      quote:

      application.onConnect = function(client, canSeeVideo) {
      // canSeeVideo = boolean
      this.acceptConnection(client);
      if (!canSeeVideo) client.receiveVideo(false);
      };

      // and after this, can be swich to TRUE or FALSE ?
      client.receiveVideo(true);


      I only want to do restriction for Video, from server-side with FMS, or if can't be possible.. how can i put for example a black screen on video ? :) and after can be removed, etc...
        • 1. Re: Live video stream play permission on server-side
          fmslove Community Member
          use Client.readAccess property in Server-side scripts.
          • 2. Re: Live video stream play permission on server-side
            phpized Community Member
            I have try Client.readAccess before but i want this for LIVE video and not recorded, because Client.readAccess is refering to recorded video file or directory.
            • 3. Re: Live video stream play permission on server-side
              fmslove Community Member
              readAccess refers to virtual directory maping which works for all streams also.
              for example:
              if there is a live stream named: abc/mystream

              then only those clients which have
              clients.readAccess = "/" (default settings for all clients)
              OR
              client.readAccess = "abc" (your custom setting)
              will be able to subscribe to that stream.. and any client with say

              client.readAccess = "foo;xyz" can access streamName prefixed with foo/ & xyz/ only...
              • 4. Live video stream play permission on server-side
                phpized Community Member
                1. necesary client.receiveVideo() and client.receiveAudio() server-side functions
                Thank you fmslove for you trying to help me but client.readAccess property can NOT be set after client connection was accepted, and for me is useless. Any other solution(s) ? i strong recomend to Adobe FMS dev staff to implement this feature because is refering to security client-side solution from server-side. I have bad experience with users trying to modify the Flash Player (plug-in) run memory and set values for my swf without my accept, and is nothing that i can do from client-side like NetSream.receiveVideo(false) on many-to-many or one-to-many live A/V stream.

                2. a necesary server-side video encoder solution better than Sorenson Spark
                If in future FMS staff from Adobe will implement this necesary security feature on server-side like a copy of NetSream.receiveVideo() function from client-side, i will be happy if i see a solution to encode LIVE video stream on server-side because Sorenson Spark video encoder built-in Flash Player (plug-in) is very old and unuseful.
                If this can't be possible i hope the future Flash Player version (10) will have a better video encoder built-in than Sorenson Spark !!!
                • 5. Re: Live video stream play permission on server-side
                  Jota_ka
                  I would like to know what is going wrong with my tries. I’ve been trying to do live stream with Flash Media Encoder 2.5, but i cant conect to the server with it. It ask’s about my Username end my Password, i put them right but doesn’t not work. Comes, there is no such user. But i’ve been putting the username from login of server and password fron the server… …Thank’s for now.
                  • 6. Live video stream play permission on server-side
                    phpized Community Member
                    Flash Media Encoder have a plugin for download that works with FMS in authentication mode (server-side actionscript code). You can download it from Flash Media Encoder download page.
                    • 7. Re: Live video stream play permission on server-side
                      phpized Community Member
                      Anyone know if is a "small" chance for FMS3 to have NetSream.receiveVideo() feature on server-side ?????
                      • 8. Re: Live video stream play permission on server-side
                        phpized Community Member

                        Is there any option to set read/write stream permissions   after accept connection?

                        The following code will not work!

                         

                        application.onConnect = function(client) {

                             client.readAccess = "free-content";

                             int = setInterval(setPermission, 100000, client); // overwrite client read access after 100 seconds

                             return true;

                        };

                         

                        function setPermission(client) {

                             client.readAccess = "private-content"; // this will not affect (overwrite) client permission!

                             clearInterval(int);

                        }

                         

                        Is any option in SSACS to overwrite (reset) client read/write stream permissions after accept connection??