Customizing your main.asc for FME

You can customize your server-side script to take advantage
of additional functionality exposed by FME.
FME makes the following calls to server-side actionscript :
FCPublish :
FME calls FCPublish with the name of the stream whenever a
new stream is published. This notification can be used by
server-side action script to maintain list of all streams or also
to force FME to stop publishing. To stop publishing, call
“onFCPublish” with an info object with status code set
to “NetStream.Publish.BadName”. See sample enclosed.
FCUnpublish :
FME notifies server script when a stream is unpublished. See
sample enclosed.
releaseStream :
When FME connection to FMS drops during a publishing session
it will try and republish the stream when connection is restored.
On certain occasions FMS will reject the new stream because server
is still unaware of the connection drop, sometimes this can take a
few minutes. FME calls “releaseStream” method with the
stream name and this can be used to forcibly clear the stream. Here
is a sample which shows how this can be done. See sample enclosed.
Configuring server to automatically override stream :
Default behavior of FMS is once a client publishes a stream,
no client can publish till the stream name is released by calling
unpublish or client disconnects. This behavior can be changed with
FMS 2.0.4 by adding a new config. Use this config with caution.
Make sure you put in some authentication mechanism to prevent rogue
clients from connecting to your server and taking over the stream.
<OverridePublisher>true</OverridePublisher> to
the <StreamManager> section in Application.xml

Could this be used to force the server to keep a copy of the
stream, in other words reproduce the "append" publish
option?

Similar Messages

  • Mysteriously Missing Main.asc

    Have any of you ever heard of a main.asc file being
    "mysteriously" deleted from an application's directory?
    I'm working on a client project that was being developed on
    an in-house Fedora Core 5 server where I'd installed FMS. I
    uploaded the client's video streams and coded main.asc's for two
    separate applications. One of them, the larger of the two, had some
    very important code in there that took me several all nighter's to
    get right.
    Long story short, the project got put on hold for a while and
    now I'm taking another look at it, and moving it to a server live
    on the internet. In doing so, I'm seeing that the main.asc file I
    wrote for one of the projects is just plain GONE, like it never
    existed. The other application is fine, untouched, but the more
    important of the two has another strange twist: a directory called
    "http" that I never created. Inside it are some streams (placed in
    their own subdirectories) from the application's "streams"
    directory that I never moved in there. And of course like I said,
    the main.asc file is just plain gone.
    Looking at /var/log/messages doesn't give me any information
    (looks like the logs just rotated a day or two ago). Does anyone
    have any ideas how I can find out:
    a) how the hell this was deleted,
    b) if there's a backup somewhere on the system (already tried
    updatedb/locate main.asc, no help)
    c) how to prevent it from happening again
    Thanks in advance for any assistance you can provide.

    I'm wondering if you've got some security holes there. Did
    you look at any of the streams? Are they something that would have
    been published by an authorized user, or does it appear that
    someone has been adding their own streams and leeching your
    bandwidth/connections?
    The missing main.asc is what makes me suspicious. FMS
    wouldn't remove its own files like that, and since other files are
    where they should be, it sort of rules out the file missing as a
    result of a system restore. Removing the main.asc would make the
    application wide open to abuse, so if someone wanted to leech
    effectively, removing the main.asc would be helpful to them.
    What do your server logs (not the FMS logs, the network level
    logs) tell you? Do you see anything odd? If someone broke into the
    server and deleted your main.asc, it wouldn't show up in the FMS
    logs.

  • FMS -  Main.asc

    Hello,
    I have an application I created, it`s a video recording applications and one audio recording application.
    like this:
    rtmp://localhost/recorder
    What main.asc file I need to put in this folder? do I need to do modifications to the file to work with my application?
    On the samples folder I know there are one main.asc for eache application. is it OK to use one of that?
    Thanks

    Hey Jeff,
    You can make changes to the sample main.asc files provided to suit your requirments or you can create your own. And place it in the folder that you created.

  • Has anyone seen the following on their WP? Message from webpage WARNING: Time Warner Cable Customer – Your Internet Explorer browser and  computer may be compromised by security threats. Call 844-600-6224 now for IMMEDIATE assistance.  OK

    Has anyone seen the following on their WP?
    Message from webpage
    WARNING: Time Warner Cable Customer –
    Your Internet Explorer browser and
    computer may be compromised by
    security threats. Call 844-600-6224 now for
    IMMEDIATE assistance.
    OK

    This sounds like a virus or malware program that has made its way onto your computer.  I would ensure you have the latest virus definitions on your computer and run a thorough (complete) scan of your system.  If this doesn't work, I would suggest  you use Microsoft's Malware Removal Tool.  You can download it at the link below.   Hope this helps.
    http://www.microsoft.com/security/pc-security/malware-removal.aspx

  • Secure Flash Remoting from main.asc not returning a result

    Hi, Iv got a problem here that could be Flash Remoting or
    Flash Media Server related
    I have created an application that uses flash media server
    and flash remoting.
    For authentication in my app I used Kevin Towes suggested
    method "Secure Authentication with Flash Communication Server:
    Using Tickets and Flash Remoting MX." His article is here
    Download
    PDF Here
    Now to the problem...
    My application has no problem connecting to coldfusion using
    flash remoting with the defaultGateway url set to
    "https://www.mysite.com" (ie over SSL)
    However In main.asc, on the Flash Media Server
    When Flash Media server attempts to validate the login by
    connecting to CFMX using flash remoting it gets no response when
    using a secure gateway url. If I set the default gateway url to
    just
    http://www.mysite.com it works
    great.
    Why do I not get any response when using https as my gateway
    url from Flash Media Server?
    thanks

    Sounds like you need to enable mappings for your remoting
    gateway. I'm not sure if it's the same as Flex, but here's what you
    might need to do, or something similar...
    In c:\cfusion8\wwwroot\WEB-INF\flex\remoting-config.xml (or
    wherever CF is installed) look for the <use-mappings> node
    and set the value to true. You will need to restart CF

  • Invoking external AS from Main.asc?

    Hi all,
    I'm hoping anyone can point me in some intelligent direction.
    I have a main.asc in my FMS3.5 application. I'd like to be able to import things like AS3Crypto, com.adobe.serialization, etc, to be used in main.asc.
    However, there seems to be no clear way to do so.
    2 possibilities come to mind:
    1) I'm not seeing something in the docs that is super obvious.
    2) I'm attempting to use server-side AS for something that it is not intended for..
    All I'm trying to do is verify url signature in my onConnect, however, I can't even get access to simple things like byteArrays, let alone invoke AS3Crypto. I can load other ASC files via global load() method, but this seems to bleed to death if I attempt to convert complex AS3 classes to ASC.
    Is it intended that this sort of functionality be soley offloaded to another application via webservice/whatever? Or am I simply looking at this all wrong?
    Any leads or advice would be tremendously appreciated.
    Thanks all.
    j

    Pardon me if I am trivial here but server-side AS is plain simple AS-1 code to me so loads of things integrated with AS-2 & 3 versions are not avaible.
    Using services like AS3-Crypto will need loads of rewriting to make them compliant with AS-1 capabilities.
    Sorry if I misunderstood your need, hope I get useful here for you.
    Regards,
    IFZen

  • FMS don't read main.asc. I'm going to crazy. Somebody help me.

    Hi. All.
    I've search enough. and I've did my best for 3 days. 
    Unfortunately, I could not solve this problem.
    If you help me, you can be my sunshine.
    I'm developing Text Chat App using Flex4.6 & FMS 4.5.
    I wanna count how many on-line users in.   I found some infomation by googling.
    As a result of googling, I figured out I need SSAS(Server Side Action Script)
    http://www.fmsguru.com/showtutorial.cfm?tutorialID=48
    I followed what he did pecfectly. This source code is what I made.
    UserCount.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009http://ns.adobe.com/http://ns.adobe.com/mxml/2009mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          minWidth="955" minHeight="600" currentState="LogIn">
    <s:states>
      <s:State name="LogIn"/>
      <s:State name="LoggedIn"/>
    </s:states>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       private var nc:NetConnection;
       protected function button1_clickHandler(event:MouseEvent):void{
        nc = new NetConnection();
        nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
        nc.client = this;
        nc.connect("rtmp://192.168.0.5:80/livepkgr/");
       public function setUserCount(userCount:Number):void{
        userCountText.text =  userCount.toString();
       private function onNetStatus(e:NetStatusEvent):void{
        if(e.info.code.indexOf("Success") != -1){
         currentState = "LoggedIn";
      ]]>
    </fx:Script>
    <s:Panel includeIn="LogIn" x="10" y="10" width="250" height="200" title="Log in to my app">
      <s:Button x="89" y="64" label="Login Now!" click="button1_clickHandler(event)"/>
    </s:Panel>
    <s:Label includeIn="LoggedIn" x="150" y="136" color="#0E55F6" fontSize="20" text="You are now logged in!"/>
    <s:Label includeIn="LoggedIn" x="151" y="94" width="214" color="#8C2222"  id="userCountText" text=""/>
    </s:Application>
    main.asc
    application.onConnect = function(client)
      application.acceptConnection(client);
      userCount = application.clients.length;
      client.call("setUserCount", null, userCount);
    1.  I released this project.
    2. I got released files.
    3. I copied these files to FMS's webroot and main.asc file also.
    4. I connected this server by remoted PC. I could connect. And I clicked the button.
    http://xxx.xxx.x.x:8134/UserCount/UserCount.html
                         NO REACTION
    5. So, I checked break-point setUserCount. This method is called by SSAS.  I wanna know  this method is called or not. But There's no break. That means main.asc is not working.
    Pls let me know what is my mistake.
    Thanks in advanced
    Kevin.

    Thank you for reply. Nitin.
    I followed your explain.
    But I can't connect to server.
    When remote users connect to server, they connect http://<server-ip>/<app-name>/<app-main.html>/
    This path is /fms/webroot/<app-name>/
    NOT /fms/application/<app-name>/
    I'm very confusing.  Please give me a favor.
    Thanks.
    Kevin.

  • Main partner for appointments

    Hi everyone,
    In appointments you have different parties involved. "Activity Partner", "Contact Person", "Attendee", "Owner" etc. You can select one from each partner function to be the main partner. We have an appointment report and in this report we get matches for each appointment that has been created and can see which account and contact person that has participated. The problem we have are when several contact persons have participated due to only one of them can be the main partner. Our report is based and get matches based on the main partner.
    My question, is it possible to have several contact persons as main partners? At the moment I can only tick the box under "Main Partner" for one of the contact persons. If I try to tick the box for several contact persons the system allows me to save but will automatically update so only one contact person has been selected as main partner.
    Really appreciate any help I can get!
    Thank you in advance.
    Best regards,
    Hannes de Richelieu

    Hi Hannes
    I don't beleive this would be standard behaviour.
    The primary purpose of having a Partner marked as "Main" would be to identify them as the "Main Partner".
    You could check in the screen config to see if there are any fields would could be reused for this purpose. Otherwise you could use AET to add in a custom field to meet your requirements.
    You'd probably then need some additional custom enhancements to provide the additional "Main" partner processing you desire.
    Hope this helps.
    Regards
    Arden

  • Main.asc server side script not working

    Here the simple script i put at server seem like is not working also enclosed screenshot for the adminconsole
    my server side file main.asc save at /opt/adobe/fms/application/playtechmnflive/
    my doing FMS edge server.
    application.allowDebug= true;
    application.onAppStart = function(){
            this.eventTime = (new Date().valueOf() + 10000);
            this.timer_int = setInterval(checkForEvent, 1000, this);
    function checkForEvent(app){
            var now = new Date().valueOf();
            if(now > app.eventTime) {
                    trace("something");
            }else{
                    trace("damn");

    The script is fine (at least i assume u want the timer working with no errors). The thing is that u can't put any code nor apps on the edge node. Put it on the origin and hook up your edge to that origin.

  • Getting error while opening a saved for later notification: The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action.

    Hi All,
    While opening a saved for later notification, we are getting "The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action". error.
    This is a custom notification.
    Please help.
    Thanks
    Raghava

    HI All,
    Please help on this issue.
    Thanks
    Raghava

  • Custom Extractor using FM for Delta Upload

    Hi,
    I created a Custom Extractor using FM for Full Upload. The requirement now is that it should be able to handle Delta also.
    I used the standard FM RSAX_BIW_GET_DATA_SIMPLE to create my Z FM.
    Please suggest me the changes I have to make in this to be able to upload Delta also.
    Thanks
    Nageswara

    Hi Mahesh,
    You can selectively load from BI side (through Infopackage) and for that you should have those selection field defined as ranges in your FM.
    As per my genius friend Sidharth Gupta:
    FM RSAX_BIW_GET_DATA_SIMPLE is a funct. Mod having a simple interface in which I_UPDMODE is not used. Actually FM RSAX_BIW_GET_DATA_SIMPLE is used for a full update and uses an F2 extraction method. However through ABAP we can try to make it delta capable like below.
    *Declare
    DATA  I_UPDMODE.
    Now to capture delta on AUDAT
           I_UPDMODE = u2018 u2018.
    LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'AUDAT'.
                MOVE-CORRESPONDING L_S_SELECT TO L_R_AUDAT.
                 I_UPDMODE = u2018 D u2019.
                APPEND L_R_AUDAT.
              ENDLOOP.
    This code works however is not flexible as you do not use a CASE stmt on I_UPDMODE.
    CASE stmt gives more flexibility which is used in FM RSAX_BIW_GET_DATA.
    FM RSAX_BIW_GET_DATA is a funct. Mod having a complete interface in which I_UPDMODE is passed to funct mod during its call.FM RSAX_BIW_GET_DATA can be  used for all update types and uses an F1 extraction method. However after writing the funct mod the default extraction method is F2 in table ROOSOURCE which needs to b changed to F1 for ur mod to work.  This change from F2 to F1 can be done via test abap code.
    Part two of that Article is yet to be published so wait for sometime or follow above mentioned approach.
    Hope it helps.
    Regards,
    Ashish

  • From: Apple-ID [mailto:Apple.International@Apple.id]  Sent: Wednesday, December 11, 2013 7:36 PM To: Deborah McKay Subject: Final step To verify your Apple      Dear Apple Customer,  Your Apple ID has been used to open a session iCloud from an unauthori

    From: Apple-ID [mailto:[email protected]]
    Sent: Wednesday, December 11, 2013 7:36 PM
    To: Deborah McKay
    Subject: Final step To verify your Apple
    Dear Apple Customer,
    Your Apple ID has been used to open a session iCloud from an unauthorized device..
    It's easy: Click the link Your iTunes account is now locked, please enter your account to verify your information. .
    Update Now >
    After you finished your account is confirmed, let us know immediately. Report, it is important because it helps us prevent fraudsters from stealing your information. Sincerely, apple.
    copyright 2013 Apple Inc. Please do not reply to this email because we are not monitoring this inbox. To get in touch with us, log in to your account and click "Contact Us" at the bottom of any page. Copyright © 2013 apple. All rights reserved. apple (Europe) S.à r.l. et Cie, S.C.A. Société en Commandite par Actions Registered office: 22-24 Boulev ard Royal, L-2449 Luxemburg RCS Luxemburg B 118 349 apple Email ID PP315.
    I just got this message and sent it to [email protected] per instructions on another post. the link leads to a page asking for Apple id and credit card information.

    I got a similar email. It's obviously Spam. The double period afetr the first sentence and the otherwise poor grammar are dead giveaways even before I checked out the link embedded. -- I didn't click on it, just hovered over it to get the url. And the return address was [email protected] Very bogus.

  • Action reference in the MAIN view for other Views

    Hi Experts,
    I have created a view(MAIN) that contains SUBMIT button and also included four other views(Using ViewContainerUIElement) in the MAIN view itslef. So am calling the respective view based on some certain condition from MAIN view.
    Now my problem is, am using  check_mandatory_attr_on_view() method which is being called on SUBMIT action from MAIN view of WDDOBEFOREACTION. But it is not checking Required Fields from other views. It checks the Required Fields only in the MAIN view.
    I know that I want to call the reference of other views in MAIN view, but how can I do it?
    Please help me, as how I can check the Required fields on action of SUBMIT button in MAIN view for other views.
    BR,
    RAM.

    Hi,
    Though am in MAIN view, If i clicks the submit button it checks the Required fields on both MAIN and Sub views, where still I have not called the Sub view.
    If you didn't call the sub view, the WDDOINIT method of your sub view wouldn't have been triggered and so the sub view reference is not set in the component controller, isn't it.?
    OR you are calling sub view separately in the initial state and get the reference and then in your MAIN view calling the sub view based on condition in the View Container UI..?
    If so, create an attribute in your Main view (say sub_view_name of type string) and then use the below code to get the current sub view name and then pass the corresponding sub view reference:
    DATA:lr_view_controller    type ref to        IF_WD_VIEW_CONTROLLER,
           lr_main_view_usage  type ref to        IF_WD_RR_VIEW_USAGE.
           lr_vc_assignment      type ref to        IF_WD_RR_VIEW_CNT_ASSIGNMENT.
           lr_view_usage           type ref to        IF_WD_RR_VIEW_USAGE.
           lr_t_views                 type                WDRR_VCA_OBJECTS.
           lr_s_view                  like line of        lr_t_views.
           lr_view                     type ref to        if_wd_rr_view.    
          lr_view_controller = wd_this->wd_get_api( ).
        lr_main_view_usage = lr_view_controller->GET_VIEW_USAGE( ).
       lr_t_views  = lr_main_view_usage->GET_VIEW_CNT_ASSIGNMENTS( ). "This will return all the View Container assignments.
    * Now loop over all the View containers and get the reference of embedding view.
       loop at lr_t_views  into lr_s_view .
          lr_vc_assignment = lr_s_view-VIEW_CNT_ASSIGNMENT.
          lr_view_usage  = lr_vc_assignment->GET_DEFAULT_VIEW_USAGE( ). " This will return view usage reference
          lr_view = lr_view_usage->get_view( ). " This will have the meta info of view
          wd_this->sub_view_name = lr_view->get_name( ).   
       endloop.
    Now in onAction submit,
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller =  lr_view_controller " MAin view reference
    case wd_this->sub_view_name.
    when 'SUB_VIEW1'.
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller = wd_comp_controller->gr_emb_view1.
    when 'SUB_VIEW2'.
    CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW(
                                  EXPORTING
                                   view_controller = wd_comp_controller->gr_emb_view2.
    Or, alternatively; create all the nodes(of sub views) in component controller, then map all those to MAIN view, then read the required node attributes and validate manually.
    hope this helps u,
    Regards,
    Kiran

  • Error in saving customer information. Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.

    I was trying to create a text alert. I was calling following in jsp
    email.setContactPointPurpose(myLookUpCode); //say XXMY_SMS_SHIP
            PartyManager.createEmail(email, ApiConstant.CONTACT_POINT);
    Getting following exception:
    Error in saving customer information.
    Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.
    Error trace:
    oracle.apps.ibe.customer.CustomerException: Error in saving customer information. at oracle.apps.ibe.tcav2.Email.create(Email.java:187) at oracle.apps.ibe.tcav2.PartyManager.createEmail(PartyManager.java:116) at _oa__html._myfile__ibeMyFile._jspService(_myfile__ ibeMyFile.java:908) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:662) Caused by: oracle.apps.jtf.base.resources.FrameworkException: Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE. at oracle.apps.jtf.util.ErrorStackUtil.getFrameworkException(ErrorStackUtil.java:104) at oracle.apps.jtf.util.ErrorStackUtil.getDBFrameworkException(ErrorStackUtil.java:141) at oracle.apps.ibe.tcav2.Email.create(Email.java:185) ... 11 more Error in saving customer information. oracle.apps.jtf.base.resources.FrameworkException: Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE. at oracle.apps.jtf.util.ErrorStackUtil.getFrameworkException(ErrorStackUtil.java:104) at oracle.apps.jtf.util.ErrorStackUtil.getDBFrameworkException(ErrorStackUtil.java:141) at oracle.apps.ibe.tcav2.Email.create(Email.java:185) at oracle.apps.ibe.tcav2.PartyManager.createEmail(PartyManager.java:116) at _oa__html._myfile__ibeMyFile._jspService(_myfile__ ibeMyFile.java:908) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:662) Value for contact_point_purpose must be a value defined in lookup type CONTACT_POINT_PURPOSE.

    Tried this but it is giving the below error
    APP-FND-01242: Cannot read value from field PER_ASSIGNMENT_ID
    Cause: The field PER_ASSIGNMENT_ID could not be located or read.
    Action: This error is normally the result of an incorrectly-entered field name string in a trigger, or a field name string that does not uniquely specify a field in your form. Correct your trigger logic to precisely specify a valid field.

  • The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assi

    Hi ,
    We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and  as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
    We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
    "The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
    this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
    Please let us know reason behind this error message.
    Thanks,
    Mruduala

    You are kidding?  It took me about 3 minutes to scroll down on my tab to get to the triplex button!
    Habe you read the error message? 
    Quote:
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    Check the trigger and it should work again.
    Timo

Maybe you are looking for