How can I restrict one stream per user?

Hello!
I have made a mp3-streamer in flash. Users must log on to a
web page in order to access my player. If one user logs in once
it's all OK. The problem occurs if a user "share" his account with
multiple others and log in twice (or n-times). Now I have no
control on how many users that can log onto the system.
I'm looking for a solution where for instance the first one
who logs in gets to play the stream, and all others that log into
the same account are refused access to streaming. I'm not a
back-end programmer, so I hope this is something that can be solved
using FMS. Is there a known working solution to this problem or
some features on FMS that can lock streaming to the first user.
I've tried sending in the username, however if user#1 stops
the stream user #2 is able to take over the stream, so now user # 1
is refused the stream.
Trond

FMS does support connections to web services, and can make
http requests in a number of ways. I like to use remoting, but you
can also use loadVars, XML or an XML Socket connection. The best
approach will be dictated by the services you need to connect to.
For remoting, you want to look into netservices.asc , and you can
find some examples/tutorials at flash-db.com
About your scenario
1) Player sends a ticket (SHA or something)
The client (.swf would pass this data to FMS in the
netconnection.connect() argument.
2)FMS runs a remote call and verifies the ticket <-This is
the problem
No problem here. All you need to do is have your FMS app make
the request of the authentication server (based on the token value
provided in the client's connect request) before accepting the
connection. See the docs for application.onConnect()
3a) User already online? (Hmm forgot to turn off your player?)
..disconnect connection and give new connection to same user
Here's the part you'll need some new structure for. You're
going to need to be able to reference other clients that are logged
in under the username of the new client. When a client connects, a
corresponding client is stored in the application's clients[]
array, but it's up to you to add your own variables to each client
object so you have something to reference them by in your
functions. The really cool thing is, once you have a means of
picking the client out of the list, FMS auto-resolves to the client
itself, and you can target the client with other functions.
Take this server side code for example
application.onConnect = function (clientObj, userName){ //
Username was passed in the client connect() argument
clientObj.userName = userName
Now the username is a variable in the client object. To find
a client with a specific user name, you just need to loop through
the application.clients array and look for a match:
function checkForUsername(name){
for (x = 0; x < application.clients.length; x++){
if (application.clients[x] .userName== name){
// match found, do something about it. If we want to dump the
old user, we might do this
application.disconnect(application.clients[x]);
Of course, this is only one approach, but it's about the most
straighforward method I can think of.
In the case of your app, I suggest you send two values to the
FMS app in the client connect() argument... an SHA token, and the
username. You'll use the username for checking user conflicts, and
the SHA to verify the session (this should be a one time thing...
the token expires after a single use)
Hope it helps.

Similar Messages

  • If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

  • How can I restrict Adobe Creative Cloud to run for just one mac user?

    Can anyone help with this please ...
    (This is about how the Adobe Creative Cloud app works with OS X User accounts.  I have posted it on Adobe's Support forums, but nobody there had the solution.  Perhaps someone from the Apple/OSX end can help?)
    I'm running Adobe CC on a 2010 iMac (OS X Yosemite).  I'm delighted with it, however ...
    Several family members share the same iMac using separate user accounts.  Adobe CC seems to run on startup for all of them which is annoying for them as they get messages about updates etc, plus it takes up unnecessary system resources (particularly as we tend to use 'switch user' and Activity Monitor shows an instance of Adobe CC running for each user).
    It's not listed in the Login Items list under System Preferences->Users & Groups, so I can't disable it there for other users, However it appears as an icon in the menu bar for any/all users a few moments after logging in - so something is triggering it to run, but I can't see what. 
    How can I restrict Adobe CC to run just for my user account please?
    Thanks
    Richard

    The startup item is likely inside the /Library/LaunchAgents folder.
    It will be something named like com.adobe.creativecloud.plist.
    Move it out of the /Library/LaunchAgents folder into the User/Library/LaunchAgents folder for all the users that need it.
    I don't know if it will work, but as long as Adobe wrote the launch agent correctly, it will work. Given that it is Adobe we're talking about, my bet is no.

  • How can i restrict user to access database object (procedure) or JSP

    Hi
    I have 9ias infrastructure 902, on win2k box with 9i DB.
    and I have one PL/SQL web application and another J2EE application both are hosted by 9ias 902.
    Now we are looking forward to couple both with SSO.
    I have deloyed samples of both and works fine.
    Each application have different set of users, i mean there is no common user.
    How can i restrict user not to view the web page which is not authorised to them.
    as far as i understand from the Grocery demo is pick the role (which is a string only) from OID and programaticall apply security via if else endif construct.
    can any one through light upto my concern.
    regards
    [email protected]

    Hey Mary
    No i haven't try to do that via pl/sql....
    as the our application is j2ee app... deployed in oc4j.. with sso and ldap....
    still finding to do so....
    what i have realized that LDAP is just to store user information in inverted tree... and one have to build separated access security mechnisum that will be applicable to j2ee system....
    thanx...
    samir....

  • How can i restrict user through material group

    Dear Guru's
    We have two business process CDMA and GSM
    Two purchase organisations, different document types and  different material groups
    our user  is procuring a materials for CDMA using GSM materials codes.
    How can i restrict him.if he selects GSM purchase organisation he should procure only for GSM using GSM materials codes.
    IS it possible to restrict  through material groups
    Regards
    subhash

    Hi Ha Tran,
    Thanks for your suggestion.
    But the problem is that we have two business CDMA and GSM business.
    The enitity and reporting will be in the same company code.
    So we came up with two purchasing organisation because the first purchase organisation was already assigned to company code.
    and the business want different material groups for difeerent business.
    Ex: one material   100000000  DESC : Switching  with material group  NWTR
    the same material  with different number 1000000001 Desc: Switching  material group : GNWTR
    Now the user while  creating purchase order for GSM ,he is using CDMA material.
    I want to restict the users that if he selects document type and purchasing organisation of GSM. System should allow only GSM materials.
    Regards
    Subhash

  • How can I restrict access to cloud storage from Creative Cloud? We don't want our users putting files outside the organization.

    We need to restrict our users from storing files outside the organization. How can we restrict this capability?

    They have Cs6, however I need to have my own copy, and the highest I can go with my system is CS5, maybe even 5.5. I've a small budget, and most copies are being sold for massive amounts because they're like collector items. I've seen the ones actually affordable within my range from sellers that arent trustworthy, or they're updates which I can't use. I had Cs2, but with updates to operating systems they stopped working. Thank you for your kind assistance.

  • CRM PCUI how can I restrict Users

    hi all,
    We are having 5 Portal Users for each User I assigned role in Portal called sales representative which is a part of standard CRM 5.0 Business package.
    Each user use to create Account, lead and opportunity.
    My requirement is, whenever User created account, lead and opportunity, the other Users should not see those details.
    So how can I restrict them?
    In CRM GUI we have created new role and changed,its working fine, But in CRM-Portal (PCUI)  its showing all other users details.
    There is any other way without using Access Control Engine (CRM-ACE), I can restrict the User.
    regards,
    Naresh

    Hi Naresh,
    While working on one project we had faced same problem for this we had used diffrent approch.
    for achiving this u can do below things:
    1) Create diffrent iview for each user. (Assign it for each user for PCUI Portal)
    2) In each iview in Show Advance Search window u have to make "Belonging To " field Freeeze with Value "Me"
    3) Using MAC(CRMC_BLUEPRINT_C) u can achive above steps.
    After doing above step u'll come to know that the respective user can only search and access only their Transaction and not others.
    Hope it'll help u, let me know if u want further help.
    Thanks,
    Dipesh.
    Edited by: Dipesh Date on Oct 8, 2008 1:21 PM

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • How can I restrict options result to only one cost center?

    In transaction KS03 (Display cost Center), when I search for a cost center (hit F4), I have an option to drill down by Company code, controlling area, Cost Center Category, Person Responsible etc.
    My question is, how can I restrict users to select only controlling area they are authorized for ? Is there any authorization object I can use to restrict user's access to particular value in the table CSKS ?
    Thanks,
    Karan.

    Hi Karan,
    If you want to restrict on the values users can return when using F4 lookup then there may be some useful info in the following link:
    Authorization object for capacity planning CM03

  • How can I restrict the total no. of recs. per physical page

    Hi !
    I have created a report and I am saving that in a text file. The
    problem is that when I try to take the output on the printer
    then the total no of records overflows to the next pages and the
    next page heading comes much below to it's designated place.
    Max.no of records property in the repaeting frame is for the
    logical page.
    How can I restrict the max. number of records per physical page ?
    Any pointer will be welcome,
    Thanks in advance,
    Shobhit
    null

    Just for fun (and in case this wasn't done to death in the other thread), the rule posted here states:
    Most years have 365 days, but a leap year has 366 days. That adds up to 52 weeks (where each week is exactly 7 days) PLUS 1 or 2 additional days. The year 2012 has exactly 366 days.Now if the year starts on a Sunday in a non-leap year, you end up with 53 Sundays. Or if either of the first two days lands on a Sunday during a leap year, then you can also get 53 Sundays.>
    which allows a calculation like this:
    with test_data as
         ( select rownum + 1999 as test_year from dual
           connect by rownum <= 15 )
    select test_year
         , case
              when first_day = 'SUN'
              or ( first_day = 'SAT' and leap_year = 'Y' )
                 then 53
              else 52
           end as sundays
    from   ( select test_year
                  , to_char(to_date(d.test_year||'-01-01','YYYY-MM-DD'),'DY', 'NLS_DATE_LANGUAGE=ENGLISH') first_day
                  , case extract(day from last_day(to_date(d.test_year||'-02','YYYY-MM'))) when 29 then 'Y' else 'N' end as leap_year
             from   test_data d );
    TEST_YEAR    SUNDAYS
          2000         53
          2001         52
          2002         52
          2003         52
          2004         52
          2005         52
          2006         53
          2007         52
          2008         52
          2009         52
          2010         52
          2011         52
          2012         53
          2013         52
          2014         52
    15 rows selected.

  • How can i restrict a user not open more than 3 sessions in database

    how can i restrict a user not open more than 3 sessions in database.For this i have already create a profile and set CONCURRENT_SESSIONS=3 and assing that profile to user but the problem is there.

    You will simply need to use the following parameter in your CREATE PROFILE syntax.
    CREATE PROFILE normal_user
    LIMIT SESSIONS_PER_USER 2;
    but the resource limits set for a profile are enforced only when you enable resource limitation for the associated database.
    you could do this either by having an initialization paramater which will invoke as soon as the database starts or try using ALTER SYSTEM command

  • How can we restrict the other user to add their user id's to the user group created in SQ03?

    Hello All,
    How can we restrict the other user to add their user id's to the user group created in SQ03?
    When we enter the user group name and click on "Assign users and Infosets" button in the attached pic "User Group" .
    I was able to enter my user id in other user groups. How to Grey out the other rows in the attached pic "User Group 1".

    How strange I answered (or at least helped) this very same question earlier today. Here the link to my previous answer then:
    http://scn.sap.com/thread/3536135

  • How can we restrict the users/planners for a planning book?

    Hi experts,
    How can we restrict the users/planners for a planning book?
    Thanks,
    Naga.

    Hi Naga,
    we describe this in our SAP Demand and Supply Network Planning rapid-deployment solution.
    Access this area directly via
    http://service.sap.com
    /rds-dpa
    In the configuration guide Demand Planning Settings, Macros and Chart
    Engine (DP3) read Appendix: Setting up Roles and
    Authorizations.
    BR Frank

  • How can I restrict certain apps to cellular data only?

    Product Name: iPhone 6
    Product iOS: 8.3
    Background: I listen to Pandora at work through my iPhone 6. My work has pandora traffic blocked through their WiFi network. I want to keep my iPhone connected to the work WiFi because 1) I don't want to turn on and off my WiFi on my phone 2) I want to my email and other apps to use WiFi since they are not blocked.
    Current Workarounds (not a solutions):
    1) Turn off and on WiFi on iPhone 6- This is a pain/hassle and I forget to turn the WiFi back on.
    2) Switching to a different streaming music providers that aren't blocked by work WiFi- I pay for Pandora One and I like this service the best. I really don't want to switch.
    3) Download music to iPhone memory- I pay for Pandora One and I'd like to use it.
    4) Jailbreak- Not sure if this a solution but I'd rather not jailbreak my device.
    Question: How can I restrict certain apps (Pandora) to use cellular data only?
    Best Regards,
    Chasen

    The network settings in iOS are global and do not support assigning specific networks to specific apps. You cannot do what you describe.

Maybe you are looking for

  • Faulty MS Word file crashes entire system

    So I do not expect a fix, I even doubt that anyone here knows how this is possibel, but I'd like to put it out there. How is it possible for a faulty MS Word file (which works fine on my Win7 system) can bring down my entire OSX system? Symptoms are

  • Shadow/Dust on imac 27" lcd??

    It's hasn't been a year since i bought my 27" imac, now i have shadow/dust on my lcd (not behid glass, tech guy confirm). Luckly im still under 1 year waranty n have apple care for another 2 years, i bring it to ibox (indonesia apple premium reseller

  • Bex Query's(Composite Provider) Navigational Attribute Error

    Hi All, We have created a BEx query on top of a Composite Provider. In the Composite Provider, we have a few common Navigation Attributes in all Info Providers. Whenever we tried to show a particular Navigational Attribute (G_TIC9030) in BEx query (R

  • BAPI to read cube data

    Hi friends ! Could you please give me the std BAPI names to read data from an infocube (that returns a list of all records, or as a DB aggregation in some way, contained in a cube) ? Bye, Roberto

  • Camera Raw stopped opening Canon 5d Mark II files

    After working for a few weeks, Camera Raw has stopped opening Canon 5D Mark II files. Says it is not a readable file format but I know the files are not corrupt because they will open in the Canon utility. Help appreciated. I have already reloaded th