Begin broadcasting only when people are watching?

I got a fitted page that houses a live webstream nightly music in a place. Every evening (except Sunday) the data flow active from 20:00 - 02:00 standard time. Some nights, I noticed there is no flow, but the stream plays every day no matter what. To save bandwidth per month, I try to understand how single stream if Somebody's watching.

So basically the camera would record locally, and when someone connects to the site said something that the server starts broadcasting. If the person leaves, the server stops broadcasting. Has anyone tried this before? I use Influxis to my media streaming, and they assured me that I can run scripts on the server side.

Right now I use 3 on CAMERA doing the streaming to the server.

I would appreciate any help or a point in the right direction

-Matt

Hey Matt,

After some tinkering aside server, we were able to create some sort of solution. You see OUT features reduency, allowing it to automatically reconnect to Flash Media Server, defined in the FMS URL field, if disconnected. So we came up with is, on the onDisconnect for any client event, we check the number of clients connected. If the number of connected clients is equal to one, check us if the customer stays a customer OUT. If it's a client OUT sign us the user OUT.

When OUT trying to reconnect it can't unless there is a present spectator. Once a viewer is present the OUT could connect and spread.

application.onConnect = function (p_client)
{
If ((p_client.agent) .indexOf ("OUT") == 0 & application.clients.length)< 1="" ) ="">
trace("***onReject***")
application.rejectConnection (p_client);
} else {}
trace("***onConnect***")
application.acceptConnection (p_client);
}
}
application.onDisconnect = function (p_client)
{
if(application.clients.Length == 1) {}
for (i = 0; i< application.clients.length;="">
If ((application.clients.agent.agent) .indexOf ("OUT") == 0) {}
trace("***onDisconnect***")
application. Disconnect (application.clients.Agent);
}
}
}
}

I hope this helps.

Thank you

Influxis Support

Tags: Adobe Media Server

Similar Questions

  • My watch can only be turned on only when you are connected to a charger

    I really do not understand. Is this software or hardware?
    It's an old problem I had, so I don't know what he has started. But the problem is that I can only turn on my watch, if it is connected to the charger. If it's not and I'm even starting to 100% it will charge and turn the logo of loading Android. Also sometimes my watch turns off spontaneously when I use it for a 5 shortly. I tried to format the device and it did not help. Help, please. Thank you

    Mine who did two or three times during the week before we got the update M... Coincidentally, perhaps, but it is to stable now that the update is installed. Download the update in the watch, took a VERY long time, so I wrote it off as being related to the update. Maybe not...

  • button is active, but only when it is visible?

    Hello

    I try to get a few buttons to work I have in a timeline. These buttons are on each other and are called to be visible only when a certain image.

    My problem is the button in the foreground is the only asset, because all the buttons are "on", even if you do not see them.

    currently buttons are on alpha.0 at the beginning. I know there's a way for them to is active only when they are visible, but I can't find the documentation.

    Does anyone know this code and how?

    I have my code began as such:

    import flash.events.MouseEvent;

    import flash.ui.Mouse;

    bfButton.buttonMode = true;

    bfButton.useHandCursor = true;

    and I also have this:

    bfButton.alpha = 0

    While the buttons go up I bring alpha 1 over a period of time, but there is a trick for visibility and I can't understand it.

    any help would be GREATLY appreciated.

    Thank you!

    You can use combinations of things.  You can use the visible property as well as the alpha property.  You can also try using the property mouseEnabled with the alpha property.  In both cases, you must put true and false if necessary while still making your alpha interpolation.

  • Why my actions keep deleted? When I open Photoshop save the only actions that are there are my first I watched with little action and duplicates of them each time.

    I have adobe Photoshop CS6 and whenever it stops when I go to open the program again my actions aren't there. The only ones they are on my original actions that I started with. These actions are also doubled. I have three of them, and I have to go and delete them every time. But I have many more shares that I used to have in Photoshop and they are is no longer there. I have to keep their reopening every time. Someone know why she would do that because it's very frustrating when I go to edit photos and I need to get my actions again, and then open them upward.

    Maybe a permissions issue, see this link for general troubleshooting techniques for Photoshop:

    t http://blogs.Adobe.com/Crawlspace/2012/07/Photoshop-basic-troubleshooting-steps-to-fix-MOS - issues.html

  • When you perform an adjustment in RAW, when I brush to select the area I want to solve, she brushes only above certain areas look blurred/pixely mask

    When you perform an adjustment in RAW, when I brush to select the area I want to solve, she brushes only above certain areas look blurred/pixely mask

    Have you checked auto mask?

  • There seems to be a problem with the soft ware.  We use the CS6 for Records services and when we try to save the record, part of the record is stored. The record to be saved as an mp3 file is 70 to 100 KB but recently only 3 KB are generally

    There seems to be a problem with the software.  We use the CS6 for Records services and when we try to save the record, part of the record is stored.  Usually the recording to be saved as an mp3 file is 70 to 100 KB but recently only 3 KB are recorded.  What should I do to fix this?

    You may need to reset your preferences of hearing files stored in C:\Users\"username"\AppData\Roaming\Adobe\Audition\5.0. If you rename this folder in 5.0.bak that hearing won't find it when you open the next time if it will recreate a new settings with the default settings folder. See if hearing then works as expected.

  • Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Can I create an action to move the last page to the first?  I can only find how to manually drag the pages, and I need to make it simpler when there are a lot of pages.

    Yes, you can do it using a script. This code should do the trick:

    this.movePage (this.numPages - 1, -1);

  • If I put a restriction of password which only allow customers who purchase print it (no copy or modification of the document) have an impact on the quality of the file when people open and read the file on mobile devices like phones and tablets?

    If I put a restriction of password that only allow users who buy to print it (no copies or the modification of the document allowed)-it will have no effect on the quality of the file when people open and read the file on mobile devices like phones and tablets?

    Some mobile devices won't be able to open it at all, but if it is open, the quality is not affected.  Please note and understand the warning you get when you set security: indeed, it is largely ignored by many apps.

  • How to hide a column in the report when there are only zeros.

    Hi Experts.,.

    Is it possible to hide a column in the report when there are only zeros.

    Thanks in advance
    Vincent

    Vincent Krishna wrote:
    Hi Experts.,.

    Is it possible to hide a column in the report when there are only zeros.

    Thanks in advance
    Vincent

    No out-of-the-box, but there are several workaround solutions if you want to continue an any of them:

    (1) use a view selector. A single report will be a pivot table with the column, the other will have the same report less column. Users can switch reports.

    (2) use a column selector. The two choices would be this column or an empty space. If white is chosen (because the user has no values), the column "will disappear" according to the report.

    (3) guided use NAV. This method involves the intervention of the user. Build a small report using the single column and put a filter "is not equal to" 0. Because there is only a single column, so all lines are 0, the report returns no rows.

    Use this report in the properties of guided navigation from one section of the dashboard. Assign to this "If the report returns lines" and put the report that contains the column in this section. Now add another article on your table edge and in the properties of guided navigation of this section, set on "If the report will return no rows" and it points to the small report as well. In this section, put a second version of your report without the column in it.

    When the column contains all zeros, the second section with column will not display in it; the first section is not displayed. When at least a line contains a value not zero, the first section is displayed with the column, and the second part will not be.

  • loop running only when the mouse or keyboard are active

    Hello

    I started a few weeks ago a pretty big VI. Most of the program is included in a large loop. But I feel it's to slow down unnecessarily. So to optimize it, I would like that the VI only works when the mouse or keyboard is acting on it. It would free up the CPU when I do not use it without having to shut it down. I found on the internet how to use the "wait for" to slow down the loop, but in doing so, some parts of the VI that must run in real time also slow down. I think that my idea should be more effective as well for applications in real-time and to free the memory.

    Accordingly, how can I ask the while loop to skip to the next iteration only when you press the mouse button or when a field is filled by the keyboard? Or is there an alternative for the while loop?

    Thank you

    Isaac

    Hello

    You can check this by using the structure of the event and monitor the activities of the mouse and the keyboard.

    I have change a simple VI to show this, please see the attachment.

    In the meantime, you can consult this example available on ni.com

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/3924

    Kind regards

    Lou KwokHow

    AE OR Singapore

  • the 500 limit applies to all the forms, or only when extended rights are applied?

    I am trying to determine if the '500' on the responses by pdf limit to any PDF, or only those whose extende rights apply?

    The limit applies only when you use Acrobat 11 or before applying usage rights and distribute it to the more than 500 active users. Acrobat DC has no license restrictions.

  • Void Display Menu GUI only on the selection of the checkbox, hide when they are disabled.

    Hi all

    Can someone help me with the GUI stuff in the code below.

    I have this code to display the two menus,

    Coordinates (CheckBox) with three Radio button elements.

    and similarly textboxes (checkbox) with two radio button elements.

    So I want here to do, it's to highlight radio buttons only when you click on checkbox.

    Otherwise just hide them

    To_forum_menu.jpg

    Currently, the code displays each time the box @.

    // Config values
    
    
    
    
    
    
    var dlg = new Window('dialog', 'Title');
    dlg.frameLocation = [100,100];
    dlg.size = [300,350];
    
    
    dlg.intro = dlg.add('statictext', [20,10,220,30] );
    dlg.intro.text = '"Select 1 (or) more items"';
    
    
    
    
    
    
    var CoordinatesCheckBox = dlg.add ("checkbox", [20,90,150,110], "Coordinates"); 
    
    
    var centerCoordinateRB = dlg.add ("radiobutton",[40,110,200,130] , " Top "); 
    var midCenterCoordinateRB = dlg.add ("radiobutton",[40,130,200,150] , " Middle "); 
    var leftCoordinateRB = dlg.add ("radiobutton", [40,150,200,170], " Bottom "); 
    
    
    
    
    var textAreasCheckBox = dlg.add ("checkbox", [20,170,150,190], " Text"); 
    var horizontalSwipeRB = dlg.add ("radiobutton", [40,190,150,210], " Horizontal "); 
    var verticalSwipeRB = dlg.add ("radiobutton", [40,210,150,230], " Vertical "); 
    
    
    dlg.GenerateButton = dlg.add('button', [20,270,150,300], 'Generate', 'CenterCoord');
    
    
    
    
    // Button Event Handler
    function clickHandler(e)
    {
        generateDimensions();
    }
    dlg.GenerateButton.onClick = clickHandler;                                             
    dlg.GenerateButton.addEventListener('mousedown', clickHandler); 
    
    
    
    
    
    
    dlg.show();
    
    
    
    
    
    
    var bCoordinatesCheckBox = false;
    CoordinatesCheckBox.onClick = function () 
    {
        if (CoordinatesCheckBox.value == true)
        {
              bCoordinatesCheckBox = true;
              clearCheckBoxes(eAssetCoordinatesChecked);
         }
         else 
             bCoordinatesCheckBox = false;
    }
    
    
    var btextAreasCheckBox = false;
    textAreasCheckBox.onClick = function () 
    {
        if (textAreasCheckBox.value == true)
        {
              btextAreasCheckBox = true;
              clearCheckBoxes(eSwipeAreasChecked);
         }
        else 
              btextAreasCheckBox = false;
    
    
    }
    
    
    var bHorizontalSwipe = false;
    horizontalSwipeRB.onClick = function () 
    {
        if (horizontalSwipeRB.value == true)
             bHorizontalSwipe = true;
    }
    
    
    var bVerticalSwipe = false;
    verticalSwipeRB.onClick = function () 
    {
        if (verticalSwipeRB.value == true)
             bVerticalSwipe = true;
    }
    
    
    
    
    var bleftCoordinateRB = false;
    leftCoordinateRB.onClick = function () 
    {
        if (leftCoordinateRB.value == true)
             bleftCoordinateRB = true;
    }
    
    
    var bmidCenterCoordinateRB= false;
    midCenterCoordinateRB.onClick = function () 
    {
        if (midCenterCoordinateRB.value == true)
             bmidCenterCoordinateRB = true;
    }
    
    
    
    
    var bcenterCoordinateRB = false;
    centerCoordinateRB.onClick = function () 
    {
        if (centerCoordinateRB.value == true)
             bcenterCoordinateRB = true;
    }
    
    
    
    
      
    

    for option buttons put a MyRB.enabled = false;

    then set it to true in the service, onclick for the related checkbox control

  • How can I link to R3D files when they are multiple (long resumes 4Gbs).

    Hello guys,.

    I'm transcoding (SOUL) my red images to the H.264 format for easy/fast mounting in another machine slow (the film's Director). But he comes to files with multiple R3D files, long takes over from 4Gbs, it creates several mp4 files, and they are all exactly the same.

    -Can I actually use an mp4 for my editing file and replace with originals later?

    -I should only transcode the first R3D file?

    -How can I connect back once the editing is done? Ive tried but do not know what R3D file should link to and does not after trying it. The mp4 file is take it all, but the R3D are not taking it together since they are separated in different R3D files.

    I work with first CC 2015.

    Thank you so much, I have spent days watching the tutorials but can't find my answer, I would greatly appreciate your help.

    I'd probably transcode to prores proxy, or something that does not have the long form, GOP, as Mp4.   Then, a test and make sure your guard to transcode the original code term when you bind again, there is no problem.

    do a test run w / a clip as not to lose time and when you do a couple of edits in a timeline w / as a clip, click with the right button on the clip in the project bin and select 'replace the clip', point to the original file then who must fill out your edited clip w / new source footage.

    you will then need to change the codec of your timeline should match that of your source.    hope that helps.    Certainly test first to make sure that you have the workflow down before you begin your session.

    This also works when there are tons of clips in your tray of sequences that need to be replace.

    When we work w / R3D files, usually created proxies on the fly for this reason (I think).   I'm sure that simply point to the first R3D file in this order if you make your own proxies, although I have not tested.   the first R3D file will usually connect automatic for the rest.

    This isn't the way we usually work but seems it should work.      Good luck.

  • Calling a function only when the State is active

    I turn to find the event just to call a function only when the status is active. In fact, I created a State to display the 'product details' click and once the system changes to this State - I have to perform a function.

    Here's the context:

    Let's say that you are on the home page where you will need to click on a product to see details. By clicking on the product, the State to view the details of the product will be activated and a variable inside the new state you will receive all the data (from the class of product). But I discovered Flex run all States at the beginning and we need to watch how declare our function to make sure that we do not have a null to a variable/object reference. Given that value is moving to the State only when the click event to occur, the process of globalization, execution of all States at the beginning will not have any value yet (for the specific product to deal with in the State of the productDetails). So I can't use creationComplete to perform a simple function like setSpecs(), where all the values (for example, width, height, circumference, diameter, price, etc.) will be instiate specific labels.

    What event to use to call a function internal once we are in the State? Just using the creationComplet and stated if he check the currentState = that I have to work on is not enough. I tried 'activate', 'show', 'enterStage' and many others, but without success. I tried to search the Internet, but it seems that this problem is not popular enough to generate sufficient results.

    But I know that it is possible in the case otherwise it will be is not logical and since Flex work very well with the event, I found the right event. It's something basic I know, but when you do not know, it seems difficult to find! ;-))

    Thanks Greg!

    I agree, this is a better method. So I'll change my SENSITIVITY to use viewStack instead of the State. But the problem persists what that, if we use the viewStack State to launch an event only when the State/viewStack is displayed on the screen.

    I found something that works very well for me: updateComplete.

    First of all, I found this before reading your information about viewStack so it worked very well for the method of the State. That I decided to do a test to viewStack and made the necessary changes to the code to reflect a viewStack navigation and make sure the updateComplete was not within my component (stateProduct.mxml). The system was not able to view the specification as the setSpecs() function was not instantiate when displayed. I added the updateComplete = "{setSpecs ()} ' and everything worked great!" So I conclude that no matter if you are using a viewStack State, the updateComplete event can be used to run or functions only when the component is displayed on the screen.

    Now, I have to make my transition between the State working with viewStack effect! ;-))

    Thanks to Greg for this useful tip!

  • I have a Flash Player plugin 'on demand' that supposedly save memory by launching flashplayer only when a video is launched. It gives me an "f" in the Middle

    I have a Flash Player plugin 'on demand' that supposedly save memory by launching flashplayer only when a video is launched. It gives me a 'f' icon in the middle of the video window, which I have to type. I had no problem with it, but now it won't allow me to play the video on Vimeo, however it works very well with Youtube. I can't find how to uninstall this page in firefox. Please tell me how to correct, update or reinstall so I can watch the videos on Vimeo. I need it for professional reasons, (teaching) tomorrow!
    THX. SP
    Retina, 10.8.5, Firefox 24.0 OSX MacBook.
    Recently updated Flash and Java.
    Flip4mac and Silverlight are the current versions

    Hi sgcpenny, Flash is by far the most common plugin. I think it is unlikely that the others work on the sites where you don't want to run. It does not hurt to try the setting and see if it works for you.

Maybe you are looking for

  • Beta by OOKLA speed test

    Since the update to the latest version of Safari, I was not able to access beta.speedtest.net by OOKLA (the no flash version).  I can access it using my Macintosh plus former 10.5.8 running, but does not on my iMac running 10.11.6 with Safari 10. All

  • Satellite Pro A120 is now completely dead

    I have a Pro A120, which has not been used for a few months, but is now completely dead.There are no lights on it at all. I bought a new power adapter, but still nothing.Can anyone suggest anything to check/replace or did it. It worked fine the last

  • Tecra Z50-to-17 t constantly freezes during shutdown

    My new Toshiba Tecra Z50-to-17 t constantly crashes on shutdown. At first I thought that it could connect to the Cisco all lie, as it appeared in the event viewer several times.After I deleted it went well for a while, but now the problem occurred ag

  • Too bad, I guess that the help is not really available.

    Too bad, I guess that the help is not really available.

  • Satellite C50 - Has important questions for keyboard

    I have a C50 - A Satellite with some of the key works and others aren't important issues for keyboard. For example, none of the keys work, S, and D do not work and when I press the space bar I can sometimes get the letter S to work. I tried two new k