Skip to main content
Participating Frequently
Jul 17, 2008 11:07 PM UTC
Question

Live video stream play permission on server-side

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...
    This topic is closed to new replies. Start a new post to keep the conversation going.

    8 replies

    phpizedAuthor
    Participating Frequently
    Oct 31, 2008 11:08 AM UTC
    Anyone know if is a "small" chance for FMS3 to have NetSream.receiveVideo() feature on server-side ?????
    Translate
    phpizedAuthor
    Participating Frequently
    Jun 10, 2013 6:17 PM UTC

    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??

    Translate
    Participant
    Jul 23, 2008 3:32 PM UTC
    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.
    Translate
    phpizedAuthor
    Participating Frequently
    Jul 24, 2008 10:33 AM UTC
    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.
    Translate
    phpizedAuthor
    Participating Frequently
    Jul 22, 2008 9:01 AM UTC
    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 !!!
    Translate
    Jul 21, 2008 5:08 AM UTC
    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...
    Translate
    Jul 20, 2008 10:01 AM UTC
    use Client.readAccess property in Server-side scripts.
    Translate
    phpizedAuthor
    Participating Frequently
    Jul 20, 2008 6:53 PM UTC
    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.
    Translate