FMS in Serwer

HI
First - sorry of My English, I don't use this language
How implements this serwer im my serwer?
I have OS Windows XP sp2, instal FMS ( Interactive version )
write in web browser : http://localhost, show a startscreen, ok
write aplication in flex :
<?xml version="1.0" encoding="utf-8"?><mx:Application
xmlns:mx="
http://www.adobe.com/2006/mxml" layout="
vertical" creationComplete="onCreationComplete()"
>
<mx:Script>
<![CDATA[
import mx.controls.Spacer; 
import flash.net.*; 
import flash.events.*; 
import flash.utils.*; 
import flash.media.Camera; 
import mx.controls.*; 
import mx.core.UIComponent; 
private var nc:NetConnection; 
private var video:Video; 
private var inStream:NetStream; 
private var outStream:NetStream; 
private var camera:Camera; 
private function onCreationComplete ():void{nc =
new NetConnection();nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSeciurityError);
var videoHolder:UIComponent = new UIComponent();video =
new Video(); 
videoHolder.addChild(video);
addChild(videoHolder);
private function connect():void{ 
switch(cConnectionButton.label){ 
case "Connect":cConnectionButton.label =
"Wait";cConnectionButton.enabled =
false;nc.connect(
"rtmp:/live"); 
break; 
case "Disconnect":cConnectionButton.label =
"Connect";cConnectionButton.enabled =
true;nc.close();
break;}
private function onNetStatus (event:NetStatusEvent):void {cConnectionButton.label =
"Disconnect";cConnectionButton.enabled =
true; 
if (inStream) inStream.close(); 
if (outStream) outStream.close(); 
inStream =
new NetStream(nc); outStream =
new NetStream(nc); 
camera = Camera.getCamera();
outStream.attachCamera(camera);
outStream.publish(
"testVideo"); 
inStream.play(
"testVideo"); 
video.attachNetStream(inStream);
private function onSeciurityError (event:SecurityErrorEvent):void { 
// error}
]]>
</mx:Script>
<mx:Button label="Connect" id="cConnectionButton" click="connect();" width="100"/>
 </mx:Application>
run in flex is ok,  work
copy in my serwer, run is not work, why?

Nevermind. I thought the query was wrong. The query is correct. Posting here automatically removes the brackets for some reason.
Correct me if I'm wrong, but you want to put the default warehouse defined for current user and put it in an User Defined Field, is that correct?
I tested your query on my own machine and it works for both AR Invoice and AR Invoice + Payment.
Edited by: Jin Siang Lee on Nov 6, 2009 9:58 AM

Similar Messages

  • Flash acces with flash media serwer

    there is any sample/manual how to connect flash access with flash media serwer ?

    Currently, there is no document explaining Flash Access interaction with FMS. Also, FMS and FAXS do not communicate. The client communicates with both.
    For Video-On-Demand (VOD) assets, they are encrypted with a license and policy. The player connects to FMS to start streaming the file, once the player starts the playback, the policy kicks in, and then the player contacts FAXS using the licensing info in the file. So the player communicates with both FMS and FAXS – the servers don’t communicate with each other.
    So FAXS (and FMRMS, which is what version 1.x was called) only worked for the VOD case. Now with FAXS 2.0 for Protected Streaming you can use DRM for both Live and VOD HTTP streaming cases – but not for Live RTMP streaming. Here’s the link for the Protected Streaming docs: http://www.adobe.com/support/flashaccess/pdfs/FAXS_3_0_ProtectedStreaming.pdf
    Now with FMS 4.5, there is protected HTTP Streaming for Flash (PHDS) and iOS (PHLS). To configure PHDS/PHLS, you provide the DRM protection (w/SWF Verification support) without requiring the license server:
    Read this document.
    Let me know if you have any more questions.

  • Could I have CASE or IF statement in FMS queries?

    Is it possible to have case statements in FMS queries:
    For example:
    SELECT T0.[U_DepoistfeeON] case
          when T0.[U_DepoistfeeON] is NOT BLANK  then $[$38.111.160]='Deposit Fee'
          when T0.[U_DepoistfeeON] is BLANK  then  then $[$38.111.160]=BLANK
    end FROM OITM T0
    What is wrong with above query please? Thank you very much.
    I do not mind even if above query is doable with an IF statement in it.

    Hi Rahul, this is what I want -
    I have a user defined field attached to item master OITM. The field is called : U_DepoistfeeON
    The above field contains additional depositFee taxes for selling beer bottles.
    I have also created a new tax as part of Freight handling. While on Sales Order screen, the Freight (unhide first through forms field) drop down can have the new tax type selected automatically "Deposit Fee".
    Thus, if the line item is of beer type that has U_DepositfeeON, then Freight field should automaticlally pick the type "Deposit Fee".
    If U_DepositfeeON is zero then I would like the Freight field on Sales Order screen ($38.111.160) set to blank.
    I tried to achieve this through following using case statement.
    select T0.U_DepoistfeeON
    from oitm t0
    case
    when T0.U_DepoistfeeON 0
    then $http://$38.111.160='Deposit Fee'
    when T0.U_DepoistfeeON = 0
    then $http://$38.111.160=''
    else
    $http://$38.111.160=''
    end;
    Of course it doesn't work. Note: I know I typed in DepoistfeeON, the error is not due to that.
    Thanks.

  • Trying to create a FMS query that shows available stock quantity on each Sales Order line

    Using SAP B1 v 8.82
    I realize that I may be going about this in completely the wrong way.  Here's my code:
    SELECT (T0.OnHand - T0.IsCommited + (SELECT SUM(ISNULL(T3.U_BO, 0)) FROM RDR1 T3 INNER JOIN OITM T4 ON T4.ItemCode = T3.ItemCode WHERE T3.U_BO > 0 AND T3.ItemCode = $[RDR1.ItemCode])) [available]
    FROM OITW T0
    INNER JOIN RDR1 T1 ON T1.ItemCode = T0.ItemCode
    INNER JOIN ORDR T2 ON T2.DocEntry = T1.DocEntry
    WHERE T0.WhsCode = 'ATL' AND T1.WhsCode = 'ATL' AND T2.DocNum = $[ORDR.DocNum] AND T1.LineNum = $[RDR1.LineNum]
    GROUP BY T0.OnHand, T0.IsCommited
    There is a UDF that I call upon in the RDR1 table called BO.  I created this field so that if a person wants to wait for a new batch they can "backorder" it.  In another UDF called "Available" I set up a user-defined value based on the above query.  The end result should be that whenever someone enters an item, the query finds the level of stock in the warehouse, subtracts the amount already committed, and adds back in any backorder quantities on other orders for the same item.  For example, say there's 1000 units of ITEM1 in stock, 2000 are ordered on SO # 1 and 500 are ordered on SO # 2.  The salesperson who created SO # 1 wants to wait for a new batch and types "2000" in the BO field.  I try to enter a new SO # 3 for 300 pieces.  When I key in ITEM1 on the first line, the field "Available" should update to say "500" (1000 - 2500 + 2000 = 500).
    It seems to be working, but only after the document is added.  In the example above I enter SO # 3 with a qty of 300 and when I go back to that SO I see that "Available" shows 200.  Ideally I'd like to see it say 500 while I'm working in the SO before I add it. 

    Edit2: Okay it so it works fine for any items that have a history, but it seems that if the item hasn't ever been on a Sales Order (i.e. it's not found in the RDR1 table) I get "no data found".  How can I make it simply return OnHand - IsCommited if it doesn't exist in the RDR1 table, but do the below query if it does?
    Actually that's not true.  I've got it working now.  I changed the query a bit and the update trigger, and it feels like it's working exactly like I wanted.  Query below if you're interested.
    /*Available FMS Sales Orders*/
    SELECT (T0.OnHand-T0.IsCommited+(SELECT SUM(ISNULL(T3.U_BO, 0)) FROM RDR1 T3 WHERE T3.ItemCode = $[RDR1.ItemCode]))
    FROM OITW T0
    INNER JOIN RDR1 T1 ON T0.ItemCode = T1.ItemCode
    WHERE T1.ItemCode = $[RDR1.ItemCode] AND T1.WhsCode = 'ATL'  AND T0.WhsCode = 'ATL'
    I have it on Auto Refresh -  When Field Changes "Document Total" - Refresh Regularly.
    Edit1: fixed grammatical error.

  • Need a hand to configure FMS 4.5 to output HTTP stream...

    Hi folks!
    I'm trying to setup Flash Media Server (Streaming server) and I'm having issues with outputting HTTP stream.
    The system works very well with the Flash ooutput, but for some reason the livepkgr won't work. Tried several things over the past two weeks, I've went thru docs and I don't know anymopre what else I can try... The source of the video feed is upstreamed from my own home computer, via Flash Live Encoder.
    I operate a dedicated server, running Windows 2008 Server. The default web site is IIS. I configured the ports so that port 80 is the default IIS inetpub/webroot, and the FMS 4.5 install is accessed via port 8134. So the IP http://184.107.48.113 opens the default Windows IIS, and http://184.107.48.113:8134 takes the request to the FMS install.
    The video stream is live on the Flash server, I can see it in the console, the livepkgr appears to be working, and I do see the .STREAM file being generated in the _definst_/livebroadcast/livestream folder. So the server works, and process the HTTP output.
    I believe the URL I should use to access the output HLS stream is: http://184.107.48.113:8134/livepkgr/_definst_/livebroadcast/livestream.f4m.m3u8
    but it returns a file not found message. Is there something wrong with the URL syntax? Or there is something else in the .conf files I must tweak? Or is it an issue with Apache 2.2 configuration?
    You can see the live Flash stream from my web site http://www.blackflag.tv I want to change this Flash stream to HTTP stream.
    Thanks for your help folks!!!
    -sv bell

    Hey,
    I tried playing HDS now and its working fine. It wasn't playing earlier.
    You can try it out by playing the content through the player here: http://www.osmf.org/configurator/fmp/#
    Input: http://184.107.48.113:8134/hds-live/livepkgr/_definst_/livebroadcast/l ivestream.f4m
    (Don't forget to select the radio button for HTTP streaming)
    This means everything is working on the server side.
    Now, I don't have an iDevice on me to check out HLS playback.
    You are using an older version of QuickTime, which could be an issue. Please let me know what publish settings you are using (as in the codecs).
    Also can you try playing it back through HTML5. To do that, just create an HTML page with the below content.
    <!DOCTYPE html>
    <html>
    <head>
    <title>Title of the document</title>
    </head>
    <body>
    <video width="320" height="240" controls="controls" src="http://184.107.48.113:8134/hls-live/livepkgr/_definst_/livebroadcast/livestream.m3u8"  />
    </body>
    </html>

  • FMS 3.5 says 'Bad network data': error in handling RTMP extended timestamps / chunkSize?

    Hello all,
    For a client, I am working on a project where a live RTMP stream is published to an Adobe FMS 3.5.6 server from a java application, using Red5 0.9.1 RTMPClient code.
    This works fine, until the timestamp becomes higher than 0xFFFFFF after 4.6 hours, and the RTMP extended timestamp field starts being used. I have already found: when the extended timestamp was written after the header, the last 4 bytes of the data were being cut off. I have fixed this locally, and now the data being sent seems to me to be conformant to the spec. However, FMS still throws an error message in the core log and then kills the connection from the Red5 client. Here is the error message:
    This is the error message:
    2011-06-03     14:28:02     13060     (e)2611029     Bad network data; terminating connection : chunkstream error:message length 11893407 is longerthan max rtmp packet length     -
    2011-06-03     14:28:02     13060     (e)2631029     Bad network data; terminating connection : (Adaptor: _defaultRoot_, VHost: _defaultVHost_, IP: 127.0.0.1, App: live/_definst_, Protocol: rtmp, Client: 5290168480216205379, Handle: 2147942405) : 05 FF FF FF 00 13 = 09 01 00 00 00 01 00 01 01 ' 01 00 00 00 00 00 13 4 09 0 00 00 01 ! 9A & L 0F FA F6 12 , B4 A6 CE H 8A AB DC G BB d k 1B 9F ) 13 13 D2 9A E5 t 8 B8 8D 94 ! 8A AE F6 AF } " U 0 D3 Q EF FF ~ 8D 97 D9 FF BE A3 F3 C9 97 o 9D # F9 7F h A4 F7 } / FB & F1 DC 9C BF   BD D3 E7 CA 97 FE E2 B9 E4 F7 9E 1A F6 BA } C9 w FC _ / / w FE n EF D7 P 9C F4 BE 82 8E F7 | BE 97 B4 BB D7 FE ED I / FB D1 93 9A F9 X \ 85 BD DD I E3 4 E8 M 13 D3 " ) BE A9 92 E5 83 D4 B4 12 DE D5 A3 E6 F4 k DE BF Q 3 A0 g r A4 f D9 BD w * } F7 r 8A S 2 . AB BD EE ^ l f AF E1 0B $ AF 9D D7 - BF E8 ! D3 } D3 i E3 B8 F2 M A8 " B1 A5 EF s ] A5 BC 96 E5 u e X q D2 F1 r F9 i 92 b EE Z d F9 * A6 BB FD 17 w 4 DD 3 o u EB ] ] EF FE B5 B1 0A F2 A0 DD FD B2 98 DF E8 e F6 CB FD 96 V % A5 D5 k ] FD w EF AF k v AA E8 ! 9F / w BE FA 9A _ E F2 D3 , ? 17 } AD 7 EC B3   } 07 B5 | z { { A5 = 11 90 CF BF ; 4 FE EF 95 F7 E7 DF B9 , AF z 91 CF C9 BD DE CB { F5 17 } F2 E5 D7 DF z E6 [ 96 > Y m 9F EB AF DD D8 E8 v B9 A8 E9 % A7 | 1 CF 8B D Z k N DF F8 N FA S R FE . ~ CB A 9 E1 ) 8F 8E BB EC c 6 13 F1 AC FD FD FC 8A F7 F3 K B9 FA ^ / A4 FC B9 AA F6 DE C2 [ 1A E c r B3 BF E5 EC B5 x 94 FD . A9 t I Q % EA EC DE | K FE z A4 97 F9 " 1 0F CA FB F5 F5 p 9E 99 3 - ; B8 F4 F1 FF t A3 EC BC # DE AC 91 13 19 o < 06 F5 FD 7F 7 _ $ D B t B5 0D 8A C1 C1 BA 0B FE DB B7 83 _ } BD z F7 CB { FC M A9 8D = D5 B1 < 85 = EF E1 ; BA H y FC BC B4 C A2 D9 ` e E4 94 H 5 13 ' 93 93 8E E C2 1C R 97 9 X B7 FF 10 9F { ) F1 CF AB AC ] EE H A2 DE D3 C5 m F6 K A2 A7 A2 89 D2 z EB DF 97 ^ k 9E 99 BB E7 B6 97 w { ~ + C7 B2 } FE ' C4 | B6 o H DD r A8 9F DC FF F9 Q b l 93 T B6 EE FF 11 j CD s P C F1 3 R I F8 D8 R 9D 93 AA D5 + DE FC BE " B9 E1 ` CB BD 0F F5 C7 AA w CF 8D p 9A F7 g f N FF 84 B7 K Q 93 g E1 - D3 s } w v AE 96 98 ED CF BA E9 2 . f 99 95 97 o 13 CA F7 s e $ F4 B5 15 C4 A8 DE M F7 w \ 8D 00 C6 C2 b D3 / 7 w F2 ' BF CD 89 FF > D7 FB BC A2 S N FB A5 CD AF D3 F9 9D DF AE B5 17 CF 9D B7 , B9 9 ^ 7F [ 93 84 F7 } _ EA DF u \ 99 Z t E CA M EF 7 " AD FE 92 9E n 7F EB D8 C { 99 8B 9E w H BF B1 | g 9F F3 FA E1 - E5 CB BB x CF p 8B D2 w v EF w FA E2 F7 s C5 AC $ FC B4 DB BE G E4 DC F0 A0 96 F3 ! t DC FF % A5 CB A4 ^ AB D2 BD E7 9A E ' 08 + AF U 17 EB 8A w A7 N E4 A5 x 93 12 _ - ; 09 DD DF m 11 BE w \ } BA D3 t BC D9 97 9B C5 7F D8 H F1 D 7 8A ^ FA n F0 B8 W E6 84 5 - 8 B5 h o C4 F7 83 P 88 CB AE m t BB L 95 A9 s 90 A2 Y o DF K _ / l D2 D1 C9 91 ' E4 BD / / D 97 m BB E7 14 93 % C5 ; DD CF D8 : ~ B5 4 F FA U F0 8F w w DC FD 83 FC 13 EF w p DA A5 07 _ * - 1D 14 9D D5 84 F E6 F0 FF E4 15 w n A5 9F DE d AE F5 " - f D2 AE 96 1F # FA F1 x C1 L DF l M 06 8A E4 z DB 17 BA l DA e 15 CD 85 86 1F 09 82 h ] C6 { E7 C5 AF Z C5 B0 83 v D9 03 FC / ~      -
    The message for which the hex dump is displayed, is a video message of size 4925 bytes. Below is the basic logging in my application:
    *** Event sent to RTMP connector: Video - ts: 16777473 length: 4925. Waiting time: -57937, event timestamp: 16777473
    14:28:02.045 [RtmpPublisher-workerThread] DEBUG o.r.s.s.consumer.ConnectionConsumer - Message timestamp: 16777473
    14:28:02.045 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - Channel id: 5
    14:28:02.045 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - Last ping time for connection: -1
    14:28:02.045 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - Client buffer duration: 0
    14:28:02.046 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - Packet timestamp: 16777473; tardiness: -30892; now: 1307104082045; message clock time: 1307104051152, dropLiveFuturefalse
    14:28:02.046 [RtmpPublisher-workerThread] DEBUG o.r.s.n.r.codec.RTMPProtocolEncoder - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!12b Wrote expanded timestamp field
    14:28:02.046 [NioProcessor-22] DEBUG o.r.server.net.rtmp.BaseRTMPHandler - Message sent
    I have captured the entire frame containing this message with wireshark, and annotated it a bit. You can find it here:
    http://pastebin.com/iVtphPgU
    The video message of 4925 bytes (hex 00 13 3D) is cut up into chunks of 1024 bytes (chunkSize 1024 set by Red5 client and sent to FMS). Indeed, after the 12-byte header and the 4-byte extended timestamp, there are 1024 bytes before the 1-byte header for the next chunk (hex C5). The chunks after that also contain 1024 bytes after the chunk header. This appears correct to me (though please correct me if I'm wrong).
    When we look at the error message in the core log, the hex dump displayed also contains 1024 bytes, but it starts from the beginning of the message header. The last 16 bytes of the message chunk itself are not shown.
    My question is this: is the hex dump in the error message always capped to 1024 bytes, or did FMS really read too little data?
    Something that may be of help, is the reported 'too long' message length 11893407. This corresponds to hex B5 7A 9F, which can also be found in the packet, namely at row 0c60 (I've annotated it as [b5 7a 9f]. This location is exactly 16 bytes after the start of the 4th chunk data, not really a place to look for timestamps.
    My assumptions during this bug hunting session were the following (would be nice if someone could validate these for me):
    - message length, as specified in the RTMP 12 and 8-bit headers, defines the total number of data bytes for the message, NOT including the header of the first message chunk, its extended timestamp field, or the 1-byte headers for subsequent chunks. The behaviour is the same whether or not the message has an extended timestamp.
    - chunk size, as set by the chunkSize message, defines the total number of data bytes for the chunk, not incuding the header or extended timestamp field. The behaviour is the same whether or not the message has an extended timestamp.
    I believe I've chased this problem as far as I can without having access to the FMS 3.5 code, or at least being able to crank up the debug logging to the per-message level. I realize it's a pretty detailed issue and a long shot, but being able to publish a stream continuously 24/7 is critical for the project.
    I would be very grateful if someone could have a look at this hex dump to see if the message itself is correct, and if so, to have a look at how FMS3.5.6 handles this.
    Don't hesitate to ask me for more info if it can help.
    Thanks in advance
    Davy Herben
    Solidity

    Hello,
    It took a bit longer than expected, but I have managed to create a minimal test application that will reproduce the error condition on all machines I've tested on. The application will simply read an H264 file and publish it to an FMS as a live stream. To hit the error condition faster, without having to wait 4.6 hours, the application will add a fixed offset to all timestamps before sending it to the FMS.
    I have created two files:
    http://www.solidity.be/publishtest.jar : Runnable java archive with all libraries built in
    http://www.solidity.be/publishtest.zip : Zip file containing sources and libraries
    You can run the jar as follows:
    java -jar publishtest.jar <inputFile> <server> <port> <application> <stream> <timestampOffset>
    - inputFile: path to an H264 input video file
    - server: hostname or IP of FMS server to publish to
    - port: port number to publish to (1935)
    - application: application to publish to (live)
    - stream: stream to publish to (output)
    - timestampOffset: nr of milliseconds to add to the timestamp of each event, in hexadecimal format. Putting FFFFFF here will cause the server to reject the connection immediately, while FFFF00 or FFF000 will allow the publishing to run for awhile before the FMS kills it
    Example of a complete command line:
    java -jar publishtest.jar /home/myuser/Desktop/movie.mp4 localhost 1935 live output FFF000
    Good luck with the bug hunting. Let me know if there is anything I can help you with.
    Kind regards,
    Davy Herben

  • FMS won't run on RHEL 6.2 EC2 instance - _defaultRoot__edge1 experienced 1 failure

    I've got a fresh RHEL 6.2 64-bit instance on EC2. I've turned off the firewall and have  installed an FMS 4.5 dev server. In the logs directory I have admin and master logs (only). The admin logs look ok:
    #Fields: date
    time
    x-pid
    x-status
    x-ctx
    x-comment
    2012-02-29
    09:24:26
    1144
    (i)2581173
    FMS detected IPv6 protocol stack!
    2012-02-29
    09:24:26
    1144
    (i)2581173
    FMS config <NetworkingIPv6 enable=false>
    2012-02-29
    09:24:26
    1144
    (i)2581173
    FMS running in IPv4 protocol stack mode!
    2012-02-29
    09:24:26
    1144
    (i)2581173
    Host: ip-10-204-143-55 IPv4: 10.204.143.55
    2012-02-29
    09:24:26
    1144
    (i)2571011
    Server starting...
    2012-02-29
    09:24:26
    1144
    (i)2631174
    Listener started ( FCSAdminIpcProtocol ) : localhost:11110/v4
    2012-02-29
    09:24:27
    1144
    (i)2631174
    Listener started ( FCSAdminAdaptor ) : 1111/v4
    2012-02-29
    09:24:28
    1144
    (i)2571111
    Server started (./conf/Server.xml).
    The master logs contain these lines, repeating every 5 seconds:
    2012-02-29
    10:43:17
    1076
    (i)2581226
    Edge (2790) is no longer active.
    2012-02-29
    10:43:17
    1076
    (w)2581255
    Edge (2790) _defaultRoot__edge1 experienced 1 failure[s]!
    2012-02-29
    10:43:17
    1076
    (i)2581224
    Edge (2793) started, arguments : -edgeports ":1935,80" -coreports "localhost:19350" -conf "/opt/adobe/fms/conf/Server.xml" -adaptor "_defaultRoot_" -name "_defaultRoot__edge1" -edgename "edge1".
    The FMS install failed, complaining about a missing libcap.so until I installed the libcap.i686 package. The following libcap packages are now installed:
    libcap.i686               
    2.16-5.5.el6    
    @rhui-us-east-1-rhel-server-releases
    libcap.x86_64             
    2.16-5.5.el6    
    @koji-override-0/$releasever
    libcap-ng.x86_64          
    0.6.4-3.el6_0.1 
    @koji-override-0/$releasever
    libpcap.x86_64            
    14:1.0.0-6.20091201git117cb5.el6
    Any help would be most appreciated.
    /Ed.

    I had the same problem on CentOS 6.2 x86_64, albeit not on EC2. It seems that the installer creates a symlink to the i686 libpcap (libcap.so.1 -> /lib/libcap.so.2) and fmsedge won't run with it. Manually removing that symlink and instead linking to the libcap.so.2 in /lib64 solved the problem for me.
    cd /opt/adobe/fms
    rm libcap.so.1
    ln -s /lib64/libcap.so.2 libcap.so.1
    HTH, Jeremy

  • Newbie questions on fms and actionscript 3

    Ok, like I said I'm a newbie, but I do understand the differance between ssas and as3. Not all, but all most everything I see written in SSAS can be writen into a external AS3 file. This leads me to quite a few questions I'm hoping you kind people can shed some light on for me.
    1)  What is the advantage of writing a SSAS file over an external AS3 file?
    2) Can I write an .asc file in AS3 or do I have to use AS1? Please understand I'm using tuts from fmsguru.com and the books "Learning Flash Media Server" (pdf) and "Programming Flash Communication Server". I'm not a javascript programmer so nothing I do in AS1 seems to make any sence while everything I do in AS3 does. It may not seem like it to you people that are programmers, but to those of us that aren't, AS1 and AS3 are miles apart.
    3) kind of off topic, but a security question. I'm not a "hacker" and don't like the jerks that are. My question is on external AS / SSAS files and swf files. When my fla is compiled into a swf does my external AS files remain external? I assume they do, but then what is the threat of the swf being decompiled? In most projects I would do I could care less if somebody had access to my fla as long as they don't have my actionscript files.
    I don't know. Maybe on questions one and two I'm getting confused becasue I'm using out dated material. Again I assume that even though fms was built off of the javascript engine it should be able to read and execute my AS3 file. Other wise what was the point of the evolution of actionscript into a fully functional programming language?
    Thanks for any help you might have...

    1) I did not get this question correcly - for that matter SSAS can only be in AS1 - so i dont see reason comparing them
    2) It has to be AS1
    3) if you doing "include" stuff - i think code would go into compiled swf and proper decompiler would give you the code.
    Last para - Server-side engine understands only AS1 so it wont be able to read and understand your AS3 file.

  • FMS auto disconnects when using a class

    I am trying to implement a very simple class that will create
    an instance of the NetConnection object and connect to the FMS
    server. However, the client will connect then immediately
    disconnect when the swf is published. My code is as follows...
    FLA Code:
    import _includes.*;
    var obj_conn:Conn = new Conn();
    obj_conn.connect();
    Conn.as Code:
    class _includes.Conn
    public function Conn()
    public function connect()
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/classtest");
    Please note that the connection works fine if I just create a
    NetConnection variable on the FLA itself in the timeline. Any
    suggestions/help would be appriciated!

    it think this is happen because you use local variable : your
    variable is delete at the end of connect() so your NetConnection
    will be closed in the same time.
    try this:
    Conn.as Code:
    class _includes.Conn
    private var objNetCon:NetConnection;
    public function Conn()
    public function connect()
    this.objNetCon = new NetConnection();
    this.objNetCon.connect("rtmp://localhost/classtest");
    }

  • Fms onLoad fails in one environment, but not another

    Totally stumped!
    I have an application that was running at influxis, no problem. The server side script performs an XML sendAndLoad, and then calls the client based upon the xml response.
    But then i installed my main.asc file into a different dev environment and the xml.sendAndLoad request totally fails. Using onHTTPStatus, I discovered that the error type is <100, with an error code of 0. According to Adobe, a 0 indicates that things were fine.
    I then implemented the onData method as shown in the adobe docs, and 'src' is coming back as undefined.
    The network engineer has confirmed that there are no network/firewall issues that would impact FMS talking to our application server, so FMS and the app server are free and clear to communicate with each other.
    Is there some sort of other setting that needs to happen to allow FMS to send and receive data? Is there something else I'm missing here?
    m
    .onData = function(src) {
    trace(">> " + this.httpStatusType + ": " + this.httpStatus);
    if (src == undefined) {
    trace("src == undefined. call onLoad(false) now. src = "+src);
    this.onLoad(false);
    } else {
    trace("src != undefined. call onLoad(true) now. src = "+src);
    this.parseXML(src);
    this.loaded = true;
    this.onLoad(true);

    I guess it may be due parsing error of xml file which you are using. Can you try with sample.xml given below :
    //sample.xml
    <Root>
    <UserList>
    </UserList>
    </Root>
    And then let me know all details as you told for the previous one.
    Regards,
    Amit

  • How can you make FMS 4.5 stop limiting itself to 20-25 Mbps of bandwidth?

    I'm working on an upgrade to an ActionScript 3.0 website, and this upgrade multiplies the number of RTMP connections that are liable to be used at one time for streaming live video and audio (sometimes uploading, but more often downloading).  Well, we pretty quickly hit some sort of limit with the performance where, even with a modest number of such connections, latency becomes a very serious issue.
    The server's computer's CPU and memory usage isn't going off the deep end, and the FMS server's CPU and memory usage isn't going off the deep end.  They don't even seem to be affected that much by this.  However in the admin console for the FMS server, it quickly becomes evident it's a bandwidth problem of sorts.
    What's strange though is that for a little while, if I keep just adding new connections, the bandwidth usage goes up fairly linearly. Then it peaks.  Once it gets to about 20-25 Mbps, it won't go any further.
    I've looked around for a way to configure this limit to be a lot higher than it currently is.  I haven't been able to find anything.  The closest I've come is with the BandwidthCap tags in Application.xml, but those don't really apply; they're just capping the bandwidth for individual connections.
    Is there not some way for me to raise the bandwidth limit for the overall server so that we could have a halfway decent number of simultaneous video streaming connections?  We are running the FMS server on a computer that meets only about half of the minimum memory requirements, and I am aware that this may be the only real problem here.  However I need to know whether this is true before I tell my boss that we need more memory.  If there is a chance this is just configurable or something, I need to try that first.  If it's basically of a computer resources issue due to not meeting the minimum requirements, I need a way to explain that that's exactly what the problem is.  Thanks!
    By the way I didn't find a forum specifically for FMS or anything, so I'm not sure if this is the right place for this post.

    I'm working on an upgrade to an ActionScript 3.0 website, and this upgrade multiplies the number of RTMP connections that are liable to be used at one time for streaming live video and audio (sometimes uploading, but more often downloading).  Well, we pretty quickly hit some sort of limit with the performance where, even with a modest number of such connections, latency becomes a very serious issue.
    The server's computer's CPU and memory usage isn't going off the deep end, and the FMS server's CPU and memory usage isn't going off the deep end.  They don't even seem to be affected that much by this.  However in the admin console for the FMS server, it quickly becomes evident it's a bandwidth problem of sorts.
    What's strange though is that for a little while, if I keep just adding new connections, the bandwidth usage goes up fairly linearly. Then it peaks.  Once it gets to about 20-25 Mbps, it won't go any further.
    I've looked around for a way to configure this limit to be a lot higher than it currently is.  I haven't been able to find anything.  The closest I've come is with the BandwidthCap tags in Application.xml, but those don't really apply; they're just capping the bandwidth for individual connections.
    Is there not some way for me to raise the bandwidth limit for the overall server so that we could have a halfway decent number of simultaneous video streaming connections?  We are running the FMS server on a computer that meets only about half of the minimum memory requirements, and I am aware that this may be the only real problem here.  However I need to know whether this is true before I tell my boss that we need more memory.  If there is a chance this is just configurable or something, I need to try that first.  If it's basically of a computer resources issue due to not meeting the minimum requirements, I need a way to explain that that's exactly what the problem is.  Thanks!
    By the way I didn't find a forum specifically for FMS or anything, so I'm not sure if this is the right place for this post.

  • How can I improve my FMS performance?

    Hi...
    I have two FMS 3.5 streaming servers... Both have Windows Server 2003 x64 with 16 GB of RAM...
    I'm streaming from a common storage and my Application.xml file is like this:
    <Application>
      <StreamManager>
        <VirtualDirectory>
          <!-- Specifies application specific virtual directory mapping for recorded streams.   -->
          <Streams>/;L:\media</Streams>
        </VirtualDirectory>
      </StreamManager>
      <DisallowedProtocols>rtmp,rtmps,rtmpt</DisallowedProtocols>
      <!-- Settings specific to runtime script engine memory -->
      <JSEngine>
        <!-- This specifies the max size (Kb.) the runtime can grow to before -->
        <!-- garbage collection is performed.                                 -->
        <RuntimeSize>20480</RuntimeSize>
      </JSEngine>
      <Client>
        <Bandwidth>
          <!-- Specified in bytes/sec -->
          <ServerToClient>2500000</ServerToClient>
          <!-- Specified in bytes/sec -->
          <ClientToServer>2500000</ClientToServer>
        </Bandwidth>
        <MsgQueue>
          <Live>
            <!-- Drop live audio if audio q exceeds time specified. time in milliseconds -->
            <MaxAudioLatency>2000</MaxAudioLatency>
            <!-- Default buffer length in millisecond for live audio and video queue. -->
            <MinBufferTime>2000</MinBufferTime>
          </Live>
          <Recorded>
            <!-- Default buffer length in millisecond for live audio and video, value cannot be set below this by Flash player. -->
            <MinBufferTime>2000</MinBufferTime>
          </Recorded>
          <Server>
            <!-- Ratio of the buffer length used by server side stream -->
            <!-- to live buffer.  The value is between 0 and 1.  To    -->
            <!-- avoid break up of audio, the ratio should not be more -->
            <!-- than 0.5 of the live buffer.                          -->
            <BufferRatio>0.5</BufferRatio>
          </Server>
        </MsgQueue>
         <!--OVERRIDE APPLICATION LEVEL-->
         <!-- Specifies the RTMP chunk size to use in all streams for this     -->
         <!-- application.  Stream content breaks into chunks of this size     -->
         <!-- in bytes.  Larger values reduce CPU usage, but also commit to     -->
         <!-- larger writes that can delay other content on lower bandwidth     -->
         <!-- connections.  This can have a minimum value of 128 (bytes) and     -->
         <!-- a maximum value of 65536 (bytes) with a default of 4096 bytes     -->
         <!-- Note that older clients may not support chunk sizes largee than     -->
         <!-- 1024 bytes. If the chunk setting is larger than these clients can     -->
         <!-- support, the chunk setting will be capped at 1024 bytes.          -->
         <OutChunkSize>3072</OutChunkSize>
         <!--OVERRIDE APPLICATION LEVEL-->
         <!-- An application can be configured to deliver aggregate messages to       -->
         <!-- clients that support them by setting the "enabled" attribute to "true". -->
         <!-- The server will attempt to send aggregate messages to these supported   -->
         <!-- clients based whenever possible.                                        -->
         <!-- When this setting is disabled, aggregate messages will always be broken -->
         <!-- up into individual messages before being delivered to clients.          -->
         <!--  The default is "true".                                         -->
         <AggregateMessages enabled="false"></AggregateMessages>
         <!--OVERRIDE VHOST LEVEL-->
         <AutoCloseIdleClients enable="true">     
              <CheckInterval>60</CheckInterval>
              <MaxIdleTime>1200</MaxIdleTime>
         </AutoCloseIdleClients>
      </Client>
    </Application>
    The Server.xml and fms.ini have default settings.
    My RAM usage is always low... 1,1 GB... and also my CPU usage is low. The FMSCore.exe process reaches 630 MB usage and then stays at this level.
    How can I use my server's RAM or have you any tips or suggestions to improve FMS performance with some special settings?
    I tried to change this in fms.ini:
    SERVER.FLVCACHE_MAXSIZE=500
    to 1000 but the application crashes after it reaches 2GB of RAM.
    Thanks in advance
    best,
    Marco

    Hi,
    Thanks for trying the different settings...
    When we talk of tuning for the best performance, different settings are required for different scenarios, for example, a live broadcast would require aggregation of messages (if latency is OK) but a live conferencing solution might need to disable it. So unless the use case is little briefed it is tough to conclude on any generic settings to improve performance.
    I would also like to comment on the FLVCache size. I recommend it to be set to 1/4 the size of your RAM. And you can safely tweak only the SERVER.MAXFLVCACHESIZE variable without worrying on the other variable (which is in percentage). This is supposed to take priority over all other settings.
    If your use case is a vod, have 1/4 RAM as cache size, and also tweak the video buffer settings for mp4 (if you have mp4 content as well). OutchunkSize is another variable that you may want to tweak (at the cost of CPU and latency). You can aggregate the messages.
    Also, you need to make sure of the client side buffer settings to match your FMS settings as well as your use case requirements.
    Hope it all helps.
    Thank you !

  • FMS for syncing background video

    I have a question regarding which version of Flash Media Server will best serve the project I am currently working on and whether the approach I have in mind is possible with FMS.
    The project envolves Flash Media Server syncing a dynamic background across multiple Flash Players running on separate computers on the same local network. One approach is to have FMS handle the variables and calculation on its side and communicate this to the other Flash Players (this I understand can be done with the Streaming Server).
    The second approach is to have FMS execute ActionScript on its own side to create the dynamic background and then serve this out as a video stream to the other computers. (With this approach FMS can completely takeover the processing required to generate the background content and the other computers only need to play it back as video. Is this type of approach possible with FMS and, if yes, with which version.
    If I am unclear about any part of my question, please feel free to ask. Thank you.

    Scenario 1 is possible with any version of FMS. The caveat to that is, if using Streaming Server, you'll need a .swf client (or other client that can send AMF data over a netstream) to send the data across a netstream using netstream.send(). The reason for this is that Streaming Server cannot execute server side actionscript, so the data has to be published to the stream from the client side.
    Scenario 2 is not possible with any version of FMS. FMS can't composite video or draw video frames, it can only serve pre-recorded video content or live streams published from client side applications.

  • How to isolate media files in Applications from video uploaders within FMS

    Hello,
    We have linux-centos with FMS 3.5.2, apache is on another server.
    We host media files within applications folders.
    The media files are uploaded via ssh by different users, each one populating her own my_app/streams.
    the problem:
    We do not want the users to be able to see/download one another files while connected via ssh.
    This is difficult because of the user/group needed by FMS.
    We tried several hours changing groups/users without finding a solution.
    Either FMS cannot stream or a user can see/download elsewhere than in her my_app/stream
    (to explain a bit better, I hope, a view of a situation where it does stream, but also leave media files accessible to useradm2)
    FMS is run by fmsuser:fmsgrp
    user1 uid:gid is usr1adm:fmsgrp
    user2 usi:gig is usr2adm:fmsgrp
    [root@my_serv ~]# tree -gup /home/sanmultimedia/applications/testaccess/
    /home/sanmultimedia/applications/testaccess/
    |-- [-rw-r----- fmsuser  fmsgrp   ]  main.asc
    `-- [drwxr-sr-x usr1adm  fmsgrp   ]  streams
        `-- [drwxr-sr-x usr1adm  fmsgrp   ]  video
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  SomaFM--4.mp3
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1.flv
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_1000kbps.f4v
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_1500kbps.f4v
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_150kbps.f4v
            |-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_500kbps.f4v
            `-- [-rwxr-x--- usr1adm  fmsgrp   ]  testaccess1_700kbps.f4v
    Does anyone has a hint ?
    Fred

    VOD changes won't help him, he said outside the applications
    folder. According to adobe any new vod folders must be in the
    applications folder, hence virtually worthless for most purposes. A
    better question may be, how do you specify a folder on a different
    local hard drive. I wish adobe wouldn't make it so complicated, it
    should be a really simple matter.

  • How to access FMS from outside on a web server

    I have installed FMS developer version on a small web server
    that has several websites on it. How do I reference the FMS server
    from an application on the web server, or from the outside
    somewhere? My flash development is done on a workstation, and I'm
    having problems with knowing how to connect via rtmp:.
    -- Martin

    Can anyone please provide any suggestions. I trying to google around but still not able to find any solution.
    Thanks,
    Bhasker

Maybe you are looking for

  • Importing files of the same name in *different* folders?

    Yes, yes, we all know about the RAW+JPEG and whatever else argument. But why should I be prevented from importing identical files that are stored in different folders? Who cares if they are in the library twice? I haven't figured out if it's just a n

  • How do I get the end of all my layers to line up?

    I've created a 7 second project. Everything is great except that when I play the fully rendered project there is a flash at the very end where it seems like one or more of my layers are ending too soon. Though when I check it seems like they all end

  • Filters to a nested sequence ?

    well, i am fairly new to FCP, though i have been working on it since a year but never worked intensively so i dont know many of the options, one of them, which is very important as for my work n which is very irritating for me, is that i can not appl

  • No web printing on Photosmart Premium

    I have a new Photosmart Premium C309(g-m) installed wirelessly on my home network.  All test pages print fine as do any other document s(Word, Excel, etc) but web pages or emails from my desktop computer do not print.  However, webpages from my lapto

  • HFM Disaster Recovery

    We have realtime copying happening from the PROD server disk array to the PREPROD server disk array for the Database servers, the FDM server and the Essbase servers.  Now my question is, can the PREPROD server mentioned above which is getting the dat