How to Restrict Subscriber from displaying his own Stream?

How to pass opponent UserID to Subscriber ???
private function displayExistingStreams():void   
{     var publishers:Object = _streamManager.getStreamsOfType(StreamManager.CAMERA_STREAM);
    //status_txt.text += "displayExistingStreams";
    for (var publisherID:String in publishers) {
        if (publisherID !=_userManager.myUserID) {   
            setUpSubscriber(publisherID);       
protected function setUpSubscriber(p_publisherID:String):void {
    currentSubscriber = new WebcamSubscriber();
    currentSubscriber.displayUserBars=true;
    currentSubscriber.connectSession = cSession ;
    currentSubscriber.subscribe();
     // publisherIDs  used for restricting the list of publishers     that this subscriber should display videos for.
    currentSubscriber.publisherIDs = [p_publisherID];

Hi ,
You need to loop over userIDs from userManager.userCollection and get all userIDs and set webcamSubscriber.publisherIDs to all IDs except your own. And you  need to update this everytime an user enters or leaves the room ( by listening to UserEvent.USER_CREATE and UserEvent.USER_REMOVE from UserManager, if you want to dynamically maintain this publisherIDs list)
I have replied this in other forum messages earlier.
Hope this helps
Thanks
Hironmay Basu

Similar Messages

  • Prevent iViews from displaying their own scrollbars

    Hi,
    does anybody know how to allow vertical scrolling in pages exclusively by using the browser's vertical scrollbar (e.g. as it is realized in the SDN portal) respectively how to prevent iViews from displaying their own scrollbars?
    Regards,
    Christoph

    Hi Christoph,
    to turn off scrolling has certainly something to do with setting the height and height-type of an iView. But as discussed in this thread Automatic Height of iView/Page & Footer in Framework page
    there is probably a bug in the EP. I have tried some combinations and had no luck either. In the forum thread is some javascript proposed. I haven't had time to check it out. But maybe it is some help to your problem.
    regards,
    Ulli

  • To prevent user from droping his own object .

    Dear User
    I have a database user like "aaa" in oracle 7.3.4.0.1 database.i do not want user "aaa" to drop his own schema objects like table and any other objects that he is owner.Do i have any system privilege to stop this user from doing so.User should be able to create objects and modify object but not to drop his own objects.For this purpose i have created a database trigger at database level to stop user "aaa" for doing above action.this trigger is giving me error on creation in oracle 7.3.4.0.1 .But when i tried same trigger in oracle 8i and 9i it work well.In oracle 8i and 9i it is preventing user from droping his own objects but i get other errors also along with raised error in trigger which i want to stop .The error which i am raising in trigger is
    ORA-20001 INVALID COMMAND BUT OTHER TWO ERRORS THAT R RAISED AUTOMATICALLY ARE
    ORA-00604 ERROR OCCURED AT RECURSIVE SQL LEVEL 1
    AND
    ORA-06512 AT LINE 8
    I WANT TO STOP THESE TWO ERRORS .
    PLZ HELP ME IN THIS REGARD AS SOON AS POSSBILE .
    plz tell me is there any system privilege to stop user from droping his own object or any other way along with trigger at database level.
    Thank u.

    Hi
    DBAs can use PRODUCT_USER_PROFILE (in system schema) to disable certain SQL and SQL*Plus commands in the SQL*Plus environment on a per-user basis. SQL*Plus, not Oracle, enforces this security. DBAs can even restrict access to the GRANT, REVOKE, and SET ROLE commands in order to control users' ability to change their database privileges.
    The PRODUCT_USER_PROFILE table enables you to list roles which you do not want users to activate with an application. You can also explicitly disable use of various commands, such as SET ROLE. For example, you could create an entry in the PRODUCT_USER_PROFILE table to:
    read more about this at
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch10.htm#1005648

  • How to restrict users from printing documents and exporting to local file

    Hi SAP gurus,
    I have two questions.
    1. How can I restrict users from printing a document? i.e. billdoc? I would like to know if I could block it though authorization. If yes, what auth obj to use?
    2. How to restrict certain users from exporting to local file? the System> List>Save-->Local File. I have tried restricting it using auth object S_GUI but it seems it is only applicable to older versions of SAP. im on ecc6.
    Thank you in advance.

    Hi,
    Check this:
    Create your own gui status and attach it to the list in the event START-OF-SELECTION.
    In the menu painter extra -> adjust template.
    Make it a list status and you will see all the standard list options appear including list->download
    Deactivate the ones you don't want. 
    If you just want to prevent users from downloading the list you can achieve this with authorization object S_GUI, activity 61. Menu option will still be there though.
    Please note that if you remove authorisation for S_GUI activity 61 then all downloads will not be possible. 
    If you just want to disable downloads only for a particular report, you can try this test program:
    Code:
    REPORT ztest. 
      DATA: PROGNAME LIKE SY-CPROG value 'Z_CHECK_AUTH', 
            FORMNAME LIKE SY-XFORM value 'F_CHECK_AUTH'.
    START-OF-SELECTION. 
        CALL FUNCTION 'SET_DOWNLOAD_AUTHORITY' 
             EXPORTING 
                  FORM    = FORMNAME 
                  PROG    = PROGNAME 
             EXCEPTIONS 
                  OTHERS  = 1.
      WRITE: / 'TEST'.
    You also need this:
    Code:
    PROGRAM z_check_auth.
    FORM f_check_auth USING pe_result TYPE i. 
      pe_result = 5. 
    ENDFORM.
    Also have a look at the exit SGRPDL00.
    Hope this helps you.
    Rgds,
    Raghu

  • How do i give my husband his own Apple ID.

    My husband had an iphone 2 years ago but didn't have a private email address...so we used mine. I therefore got and Apple ID. I have no got an iphone and as soon as I put my email and password in everything downloaded from his phone onto mine.His phone went mad with emails saying another device had been registered ..ws this correct etc.. We need to seperate his account from mine. How do we give him his own Apple ID without losing anything on his phone??

    1. Create a new user account on your computer unless he has his own computer: iTunes- How to set up an Apple ID within iTunes.
    2. Have him open iTunes in his separate user account. Click on the Login link.
    3. Click on the Create New button to start the process.
    He will need to set up a separate email account for his use. That email address will be the one to use for his Apple ID.
    Changing your Apple ID password
    Changing the email address you use for your Apple ID
    Apple IDs and iCloud

  • In multiple web cam publisher environment for a room how to restrict subscriber to see only admin

    I am creating a video chat application, where admin can publish his video and all the subscribers to this admin room can see admin video feed. In this application Member list sections will display list of all user s including admin connected to this room. This member list panel is displaying images of respective user against each user’s name.
    Till now this application is working fine but I am trying to add following functionality in this application
    In member list section, in place of connected user‘s image I want to display each user‘s video feed. To achieve this functionality I am giving start video functionally [via a button click] for each subscriber which in return calling a web cam publisher component to publish the subscriber video feed. This is also working fine, but now problem is all the subscriber can see others subscriber video feed along with admin video feed. I want to restrict subscriber to see only admin video feed..
    Please provide me some suggestion / solution to resolve this issue.
    Note : I have created two video chat applications one for admin another for subscribers both are connecting to same room[admin room]
    Thanks ,
    Ritesh

    Hi Ritesh,
    Use two different WebcamSubscribers. One Subscriber would just subscribe to the Admin's Video feed, while the other subscriber would subscribe to all the user's: video feeds.
    Try exploring the publisherIDs API in WebcamSubscriber.
    Thanks
    Arun

  • I have an i phone and an i tunes account.  My partner has just got an i phone.  How do we set him up his own itunes account.  I have just plugged it into the computer and it opened my itunes account?

    I have an I phone and my partner has just got one.  How do we set up his own itunes account as it showed mine when we connected his phone to the computer for the first time.  Thanks

    How to use multiple iDevices with one computer

  • How to restrict login from client?

    Hi all,
    11gR2
    How do I restrict login from client users, because I want to backup our database using expdp, and I do not want anybody updating the database.
    I can not use the startup restrict becuase some client have dba privs.
    I am thinking of shutting down the listener, but there are other database using this listener.
    Is there option in the listener so that I can disconnect only the servicename PROD1 database? or do I need to stop the listener and edit it and remove PROD1 then start it again?
    Any more briliant ideas?
    Thanks a lot,

    KinsaKaUy? wrote:
    Hi Pavel,
    I not trying to make a backup of my db. But I do not want to use rman as this is complicated to restore. What's complicated about
    oracle: rman target /
    rman:  restore database
    rman:  recover databaseIf you are dpending on export as your backup ...
    1) you will lose all transactions since the export was taken
    2) you will need to rebuild a database from scratch in order to have something in which to import.
    The most flexible,easy, and space friendly backup is export. and I beg to disagree to anyone saying that export dump is not a backup.
    In fact this is the best backup utility Oracle has ;)
    Thanksssss"In fact this is the best backup utility Oracle has "
    That falls under the heading of "if the only tool you have is a hammer, every problem looks like a nail."

  • How to allow user to modify his own data with a Portal Form

    Hi,
    I have a form (Master-Detail) to update a user-profile (Master) and the user's skills (Detail).
    How can I make sure, that a user can only modify his own profile - assuming the master table has an attribute containing the users loginname for Portal?
    thanks!
    bye Stephan...

    Yes, along with the default value of wwctx_api.get_user, you also need to specify the default value type. In this case it should be Expression returning Varchar2.

  • MSS - How to remove retirees from displaying in MSS

    Hello,
    Does anyone know the best approach to exclude retirees (PA000.STAT2 = 2) from displaying in MSS?  We currently keep retirees in the org unit they retired from using creating a clone of their current position number to a new position number that starts with 991 or 993.  Terminated employees are put in position 99999999 and since there is OM relationships, those do not show up.
    Thank you,
    Keith Pieritz

    ya you can   make the settings in view T77S0 for only active employees keep as 3 u can achive it
    go to sm30 v_t77s0 create new entries enter values as :-
    a) Access the V_T77S0 view.
    b) Choose New Entries.
    c) In the Group field (group name), enter ESS.
    d) In the Sem. Abbr. field (semantic abbreviation) enter STAT2 .
    e) In the Value Abbr. field (value of semantic abbreviation), restrict the number of employees covered by the search by entering the relevant employment status for the search.
    save it  ....and once chk in portal after reloggin in

  • How to hide elements from displaying

    Hi
    I have a code
    <td><b><jbo:RenderValue datasource="dsProducts" dataitem="ProductName"/><sup><%=symbol%></sup></b><br/.
    But I want to supress it from displaying.How can I do that?
    Thanks in advance.

    Hi
    I have a code
    <td><b><jbo:RenderValue datasource="dsProducts" dataitem="ProductName"/><sup><%=symbol%></sup></b><br/.
    But I want to supress it from displaying.How can I do that?
    Thanks in advance.

  • Netbeans game sample - how to restrict sprite from walking over a water

    Hello,
    I am new with Java game and Netbeans.
    I have tried creating the 2nd level - Dessert and have added the sprites and the water pool. The water pool is added as a tiled layer. However, when running the program the Karel sprite walks over the water pool. How do I restrict it from doing this much like the Forest level?
    Thanks in advance.

    Thanks morgalr for the information.
    I've found the matrices in the sample as you mentioned.
    However, Netbeans has created a new feature that allows drag and drop creation of tiled layers, scenes and sprites. Matrices for the tiled layers will be generated by Netbeans and the codes are not editable.
    The same tiled layers were used in both Forest and Desert scenes. However in the default Forest scene it worked but with the new Desert scene it doesn't.
    If anybody have tried this would appreciate some oppinions.
    Thanks.

  • How to restrict employees from accessing managers data using custom security profile

    Hi,
    I am using custom security profile for restricting the employees from accessing supervisors details(PG.SEGMENT2=4). I have written the custom code as below :
    Responsibility :US Super HRMS Manager
    ASSIGNMENT.PERSON_ID
    IN
    (SELECT PAF.PERSON_ID FROM PER_ALL_PEOPLE_F PAF,
    PER_ALL_ASSIGNMENTS_F PF,
    PAY_PEOPLE_GROUPS PG,
    PER_PERSON_TYPE_USAGES_F PPU,
    FND_USER FNU
    WHERE PAF.PERSON_ID=PF.PERSON_ID
    AND :EFFECTIVE_DATE BETWEEN PAF.EFFECTIVE_START_DATE
    AND PAF.EFFECTIVE_END_DATE
    AND PF.PEOPLE_GROUP_ID=PG.PEOPLE_GROUP_ID
    AND :EFFECTIVE_DATE BETWEEN PF.EFFECTIVE_START_DATE AND PF.EFFECTIVE_END_DATE
    AND PPU.PERSON_ID=PAF.PERSON_ID
    AND PPU.PERSON_ID=PF.PERSON_ID
    AND :EFFECTIVE_DATE BETWEEN PPU.EFFECTIVE_START_daTE AND PPU.EFFECTIVE_END_DATE
    AND PAF.PERSON_ID=FNU.EMPLOYEE_ID
    AND PAF.PERSON_TYPE_ID =2
    AND PPU.PERSON_TYPE_ID
    IN(2,62)
    and PAF.person_id = FND_PROFILE.value('user_id')
    AND PG.SEGMENT2=8)
    and using "restrict the people visible to each other using this profile".
    I have assigned the security profile to HR user responsibility
    But when I query the supervisor name in HR User responsibility , it is not restricting me from viewing supervisor details.
    When I query for first time, its restricting me to view others details, but when I close that click on torch button and try searching, its allowing me to access manages details.
    Can any one please let me know what setups need to be done for restricting employees from viewing supervisors data.
    I have gone through the document "Understanding and Using HRMS Security in Oracle HRMS" but didn't got any idea.
    Please suggest.
    Thanks & Regards,
    Anusha.

    Hi All ,
    i solved the problem by using event 01 of header view and using the table "Extract" .
    Regards,
    Neha

  • How to restrict admins to modify their own attribute in OAM

    Is it possible to restrict admins to modify their own attribute in OAM. For example, a admin who has modify right for attribute X but should not be able to modify X for himself.
    Thanks.

    If your self-service application binds to the directory using some special account, like 'superuser_directory' (just an example), then you could allow superuser_directory to modify entries but deny aministrators the ability to modify entries. This means that they connect with their own login to the directory when they modify entries. If you want them to stop modifying their own entries in the application, that's a matter of making the application be aware of that..

  • How to prevent LOV from displaying duplicates

    Hi all. I'm using JDev 10.1.3. I have a af:selectOneChoice component which is used to set search criteria. There are a few records with duplicate values. Is there a way for me to prevent the LOV from displaying duplicate values? thanks in advance.
    <af:selectOneChoice
         value="#{bindings.UserAckAnnualBalancesView1EdcDescription.inputValue}"
            label="EDC Description"
            valueChangeListener="#{backingExecuteBtn.alterEdcDescSearchVal}">
            <f:selectItems value="#{bindings.UserAckAnnualBalancesView1EdcDescription.items}"/>
    </af:selectOneChoice>

    John. I assume that you are suggesting that I do a SELECT DISTINCT. If so, then no I cannot change the underlying query. I want all the records, what I am actually looking for is a way to filter the items in the LOV.

Maybe you are looking for