How to display a message to the customer that connects?

Hello

I am fairly new FMS and really trying to learn about it. My question is simple, as I hope;

I want a message to appear to a client when they connect that the maximum number of users has been reached. I have it set for 5 users and so I would like that when the 6th user tries to sign in to see the video, a small box will be pop up and say "sorry, Max users has been reached. Please try again in a few minutes. »

I could develop something and get it through orders of the trace output by following a tutorial online, I saw, but I never got any sort of message box, that I built to jump to the top.

Please help someone?

Your code was not OK try this one.

var ns:NetStream;

var nc:NetConnection = new NetConnection();

nc.addEventListener (NetStatusEvent.NET_STATUS, onNetStatus);

NC. Connect ("rtmp://fms");

function onNetStatus(event:NetStatusEvent):void {}

trace (Event.info.code);

Switch (event.info.code)

{

case "NetConnection.Connect.Success":

NS = new NetStream (nc);
ns.setBufferTime (2);

myVideo.attachVideo (ns);

NS. Play("MP4:BYN_e06_1.F4V");

status_txt. Text = "you're: connected."

where_txt. Text = "from:"+ Num; '.

break;

by default:

status_txt. Text = "sorry, maximum users has been reached. Please try again. « ;

break;

}

I suggest you to go through the documentation that comes with the FMS, there are many examples on how to create netconnection and netstream and then stream video. It will really help you.

Kind regards

Amit

Tags: Adobe Media Server

Similar Questions

  • How to display a message on the second tab when an option is selected in a drop-down

    Hello

    I use a combo of my title bar, to within my application to display a list of options that will trigger different URL webViews.

    On my first tab I have a Web of a page view and when the option is selected the webView will change and the second tab will load the same webView but with /deals at the end of the url.

    The problem I have is that one of the options does not have a page of /deals on their site so I was wondering if it would be possible to hide the second tab or display a message on the second tab, when this specific option is selected?

    Thanks in advance

    If your problem is what method to use to hide the tabs or what...

    You can use these functions... It will remove the tab but will not destroy the content, it's like hiding and showing a tab

    REMOVE / HIDE

    tabbedPane.remove (theTab);

    ADD / VIEW

    var index = 2; the tab index

    tabbedPane.insert (index, theTab);

  • How to display warning messages in the OPS

    Hi all
    I have a page where in I have a poplist. When the user changes the value of that poplist I want to display a message window that the "the user must either save the modifications or changes will be ignored. And I want to have two buttons to save or cancel the changes.
    How to achieve this in the OPS as I read that popups are not supported in the OPS.
    And the Confirmation message boxes at the top of a page does not stop the users to perform further processing.

    Can someone please shed some light on it.
    Thanks in advance.

    Ginette

    You can join firePartialAction with poplist and make use of the dialog page. For an example of a page of dialog with two buttons you can see the example of Toolbox page remove tutorial.

    Thank you
    AJ

  • How to display a message when the validation of several required fileds fails

    Hello.

    I use ColdFusion 9 and I have a question.

    When we have a form with required fields coded like this:

    < cfinput... required = "Yes" message = "Enter a value of 1" / >

    < cfinput... required = "Yes" message = "Enter a value 2" / >

    < cfinput... required = "Yes" message = "Enter a value of 3" / >

    When the user sumbits the form Needless to say a warning window:

    Enter a value of 1

    Enter a value 2

    Enter a value of 3

    How do I do it so then only one message is issued as:

    "Enter values for all required fields.

    Not a single message for each required field.

    Sorry for my imperfect English. Thank you.

    I don't think that automatic, integrated to cfinput validation will allow you to do. You must create your own validation. Here's an example to help you get started:

    a:

    b:

    c:

    It's just a basic validation script to illustrate the principle. You can of course do as sophisticated as you want, or even import specialized libraries of Javascript to do the posting for you.

  • How to display certain messages when the report refers to "no data".

    Hello guys

    I have a report that related data when the user select filter conditions specifically, when they are not while the report returns no data. There are columns of the city, and B that users will still have to filter so that the report at least some data.

    I would like to change the "no data" message "Please select A and B" report when the results in "no data". Is it possible to do?

    Your thoughts?

    Thank you

    Go to another and pass the lay composed of the report on the view (s) and then go to "view results" and there, you can view what you ever need it in the text

    It may be useful
    Thank you
    Prash

  • displaying a message on the screen 'Welcome' to ESX 4.1

    Hello everyone

    you know a way to pop up / display a message on the Welcome screen of the classic ESX 4.1 Script perl, call API, or other cli

    running on the ESX host?

    We need feedback from ESX custom script that runs in the background on the ESX console.

    Lamw for ESXi method does not unfortunately for ESX 4.1 Classic.

    (see, lamw http://www.virtuallyghetto.com/2010/09/how-to-add-splash-of-color-to-esxi-dcui.html( )

    the-m option of esxcfg-advcfg change the/etc/vmware/welcome, but I think that it is not used by the screen "Welcome" here.

    so far, I've seen only kernel warning appear on the Welcome screen.

    Best regards

    rub1

    No, this feature is not exposed in any API/CLI and I don't think it will be never exposed... especially knowing that ESXi will be in the future.

    Take a look at this post where you change what are virtual consoles, read in the files, perhaps something that you use, but yet once, it is probably not supported by VMware - Re: change the text console esx

    =========================================================================

    William Lam

    VMware vExpert 2009,2010

    VMware VCP3, 4

    VMware VCAP4-DCA

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Display a message to the user w / result of data

    Howdy,

    First off it is a mission of the College work and it's especially complete; seeking advice and the experience here.  The mission is to create a calculator with many functions for each method of arithmetic.  It was easy enough, but the next step is to display a message to the user after each calculation.  For example, if the problem was 4 + 2, the message must be "the result of the addition is: 6. the creation of the part of the message by using the Msg to display the user-defined function is simple, but it is not exactly struck home.  I want to create a message that contains the result of the problem (for example 6).  As it is now I can't do that with the function of Msg, or if it is possible I can not quite understand.  I want to have a separate message for each function, but I don't know if I can incorporate the response into the message.  It's the underlying objective; How to integrate the response in a message dialog box to the user? If it is possible what should I watch?

    The VI himself is quite simple; case of structure for each arithmetic function and a certain time for execution loop.  X and there are entries and a drop-down list to select a structure if necessary. I've attached a screen below.

    Thank you

    THA

    You can use the Message to display to the user to view any string to the user. If the key is to use the palette of the chain to manipulate strings to get the error message.

    A subpalette of the palette of the chain is the range of number/String Conversion. This can help you get your (6) value into a string format and then you can concatenate that string however wished with the message.

    With the pop-up windows, you must make sure that you're not trigger this popup with every single loop, so make sure you put a case around the pop-up structure and place the logic in there to make it work only the case of popup when the value changes.

  • Display a message in the main method.

    Someone knows how to display a message in a dialog of the main method (before the creation of the Application object)? It is a background application is not possible to put the message on a screen.

    You can use Ui.getUiEngine () .pushGlobalScreen () to display a screen for a user interface application.

  • displaying a message in the status bar

    Hello
    If I have the code as
    if not l_success
      then
        message('Error!');
      end if;
    How can I display this message in the status bar of the form, not in a message box with an OK button?

    Thank you

    Integrated MESSAGE

    Display specific text on the message line.

    Have a look here

    http://www.Oracle.com/webapps/online-help/forms/10G/State?navSetId=_&Navid=3&vtTopicFile=f1_help/builth_m/message.html&vtTopicId=

  • How to transfer your messages to the iPhone 6 for macbook

    GGetting a new iPhone would like to keep the messages from the old iPhone 6 on my MacBook. How do you download messages from the iPhone to MacBook.

    You do not have.

    The messages are only "moved" via a backup and restore. You cannot back up a phone and restore it on a Macbook.

    The 'sync' messages in the future, is to connect to Messages on the macbook with the same Apple ID on your phone. Now all messages will be received by the phone and Macbook.

    For your old messages, you will need to copy and paste into emails or Notes and sync them to your Macbook.

  • How to display date / time in the browser console?

    How to display date / time in the browser console?

    You can set through the Options (gear icon) page in the Web Console (Firefox/tools > Web Developer).
    This applies to the browser console and the Web console.

  • Display a message to the main user of sub vi VI

    Hello

    I have a question which I'm sure he has met before, but I couldn't find it via the function or search with Google.

    On my main vi, I have a link to a sub vi, this subroutine vi check something and then displays a message to the user. The next step in the sub VI depends on what users on the input message is. But when I run my main vi, that the display (of course) is not, because I do not have a link between the two.

    Is it possible to send the message to the main vi and return the action the slot vi?

    Thank you

    Given that everything that happens in the sub vi, why would you go back to the main vi?

    Do you use the express vi "Prompt the user for entry" to get an input from the user?

    Can you post your code or make some dummy vi to visualize your problem?

  • I play an online game called Last Chaos, and whenever I try to run the launcher I get a message on the screen that shows the error code 626. How can I fix this so I can play my game?

    I play an online game called Last Chaos, and whenever I try to run the launcher I get a message on the screen that shows the error code 626. How can I fix this so I can play my game?

    Hi Kerrkid90,

    Welcome to the Microsoft Answers Community Forum site!

    To launch the browser, I want to suggest you to log on as an administrator in 1. Download the game

    2. run the setup.exe file

    3. right-click on it and run as administrator.

    If it fails, suggest to run the Windows Installer Cleanup utility by visiting the following link:

    http://support.Microsoft.com/kb/290301

    In the case if the above methods fail, you can also contact last chaos community to help you fix this problem:

    http://forums.aeriagames.com/?f=6

    I hope this helps!

    Thank you best regards &,.

    Calogero - Microsoft technical support.
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and tell us what you think

  • How can I disable protection of the customer

    How can I disable protection of the customer

    Hi pitellu,

    ·        What antivirus do?

    ·        Is it avant-garde or Microsoft Security Essentials?

    You could disable by using the parameter unless there is that a policy applies by administrator preventing turn he took.

    You can turn on or turn on the firewall in Windows XP, please see the link below:

    http://support.Microsoft.com/kb/283673

    Thank you and best regards,

    Imran M - Microsoft Support

  • Display a message on the device

    Hello

    I use "System.out.println ()" in my code to display a message on the screen of the actual device, but I get the message in the window to debug during the simulation output. Please notice that if I push the application on the device using BES, I get the message on the screen of the device. If not, then what is the code to use to display a simple message on the device itself?

    BlackBerry JDE 4.5.07 with Smartphone BlackBerry 2.9.0.60 Simulator

    Thanks a lot for your help

    Give a glance to the Dialog class.

Maybe you are looking for