Connecting to FMS from Flex?

I posted this over in the Flex forums and haven't gotten a peep in two days...  I'm trying to connect to an FMS server with a Flex application.  I can throw the rtmp URL straight in as the source for a VideoPlayer and it will work, but can't figure out how to get it to work with a NetStream.  The pure Flash Video element works as in the FMS Flash demos, but is extremely laggy and lacks all the nice functionality of the built VideoPlayer.
Is there any documentation on working with FMS with Flex?  We're at a point where we need to decide quickly if FMS will do what we need to do or if we should purse other technologies.
Thanks

You can try OSMF instead of using Video Component , below links might help you understand OSMF
http://www.adobe.com/devnet/video/articles/osmf_overview.html
http://www.adobe.com/devnet/flash/articles/video_osmf_streaming.html

Similar Messages

  • Can't connect to MySQL from Flex

    Hi,
    I just started learning Flex a week ago and I'm still a noob
    in this area.
    I recently discovered about Cairngorm and tried to understand
    it.
    I managed to understand the Cairngorm diagram and applied
    that in my "Login" function.
    My problem is when I define a database connection to MySQL, I
    would get error in my Flex application, but when i define static
    variable the whole application would work just fine.
    The error is "NetConnection.call.failed: HTTP:failed"
    I'm using Zend Amf as the server.
    Please tell me what is the problem. Thanks!
    Regards,
    Joni
    ============ Edit ================
    I'm sorry,
    I just did some fix and this is the more specific details.
    If I use this code in my PHP
    mysql_connect(DBHOST, DBUSER, DBPASS);
    mysql_select_db(DBNAME);
    $query = "SELECT * FROM school";
    $result = mysql_query($query);
    return "test";
    Flex would be able to "get" the return value.
    But if I used this code
    mysql_connect(DBHOST, DBUSER, DBPASS);
    mysql_select_db(DBNAME);
    $query = "SELECT * FROM school";
    $result = mysql_query($query);
    return $result;
    Flex would get an error.
    Please help.
    Thanks.
    Regards
    Joni

    I am not a php guy really so here is what I would do in this
    situation. Using the Flex Builder data wizard, I would generat a
    crud appliation against the mySQL table and see how the resulting
    php code returns data back to flex.
    HTH
    STeveR

  • Can't connect to FMS from local network machine

    Hi,
    I have done the FMS developer setup on one machine say 100.188.34.28 and accessing the media from third server, modified the VOD_DIR . I was able to stream the flv video till yesterday using the rtmp i.e rtmp://100.188.34.28:1935/vod/sample.
    But today I am not able to do the rtmp streaming on the same and other machine on the same network.
    I am able to ping the machine(100.188.34.28) and telnet(telnet 100.188.34.28 1935) the machine also. But not able to stream the video using rtmp.
    Please let me know if I am missing anything?
    Thanks & Regards,
    Anjali Rawat

    Hi,
    This post is similar to the post http://forums.adobe.com/message/137559.
    If we uninstall the FMS server and install it again then it resolves the issue, we will be able to stream using rtmp. This is not feasible to uninstall the FMS everytime and setup the files again to point to the third server to access the media.
    Anyone please suggest to resolve this issue?
    Thanks & Regards,
    Anjali Rawat

  • Connect oracle data in flex 4

    Thanks for your reply ...since I am new to flex....kindly tell me step by step process....and which code should be write on the state.....to connect  oracle data in flex 4

    hi
             you can not connect to oracle database from flex4 directly.. But there may be some thing in adobe air to connect to the local sql database like sql lite.. i dont think exactly there may be or may not be connect to database from flex.. we are using  blazeds to connect to the database server... this will make easier

  • How to stream video from FCS/FMS on Flex 2.0?

    Has anyone figured out how to stream video from FCS/FMS on
    FLEX 2.0?
    I've been working with all the sample code I can find,
    especially the
    FLEX 2.0 samples found in the Adobe documentation, but I'm
    having a heck of a time getting any of them to work.
    If any one has any working code that streams video from
    FCS/FMS using
    FLEX 2.0 that I can work with I would greatly appreciate it.
    Thanks
    Chris S.

    Some thinks that where helpful for me:
    http://coenraets.com/viewarticle.jsp?articleId=98
    http://flash-communications.net/technotes/fms2/flex2FMS/index.html
    NOTE: Only try and attach the Video and start the publishing
    of the video after you have a successful NetConnection.

  • Creating an xdp file from flex/java application

    Hi,
    I have an application in Flex 4  and As 3.When I click a button in flex application I have to generate a file in java with
    extension xdp.When I try this locally(Run as java application) the file is generating  correctly.When i compile the applic
    ation and try it, the file is not writing correctly.Do someone have any idea about creating an xdp file from flex application?
    i am using blazeds to connect java and flex4.When i opens the file in notepad the file is writing correctly.There is only problem in openig an xdp file...
    please help me.

    specifically:
    Runtime.getRuntime().exec("filename.exe")

  • How to send the image bytes(which is taken from webcam) from flex(4.6 version) to dotnet

    In my project we are using adobe flash builder 4.6 as a client-side scripting,visual studio as a mediator(for connecting the oracle database).In this, in flex 4.6 we are capturing images from webcam that's working fine, after capturing the image we need to save this captured image in oracle database so in order to save we need to pass this image from flex to dot-net(visual studio) so i need a help on how to approach to done this(passing the image from flex to dot-net) if any one knows please help me i will be very thankful to them

    finally i got the solution fot this,i tried using yhis link it work's for me
    http://stackoverflow.com/questions/5702239/how-to-pass-image-from-a-flex-application-to-a- asp-net-c-sharp-web-service

  • Cannot connect to FMS 4 using rtmfp

    Hi people,
    I was try to connect my FMS 4 development server (Redhat linux OS) in live which was not connected, but the same setup in local windows is connected.
    I do know whats the exact problem. Also i will stop the iptables in linux but no use. Please any idea, its worthful.
    thanx and regards
    Suresh

    Hi Nikhil,
    Appreciate your reply.
    Both Firewall and the SELinux are disabled. But still cannot access the FMS
    Server using http://ip-address. Windows installation works perfectly. But
    still I can Telnet to port 80,1935 and 111 in the Linux installation. This
    is weird. I don't know why the only the Linux setup is not working. Any
    idea that I need to change any configuration in the Linux setup? Here is
    the Linux version I've installed,
    Re: Cannot connect to FMS 4 using rtmfp# uname -a
    Linux GSMedia 2.6.18-274.12.1.el5 #1 SMP Tue Nov 8 21:37:35 EST 2011 x86_64
    x86_64 x86_64 GNU/Linux
    Re: Cannot connect to FMS 4 using rtmfp# cat /proc/version
    Linux version 2.6.18-274.12.1.el5 ([email protected])
    (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Tue Nov 8 21:37:35
    EST 2011
    Re: Cannot connect to FMS 4 using rtmfp# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.7 (Tikanga)
    Thank you.
    Viraj
    From:     Nikhil Pavan Kalyan <[email protected]>
    To:     Kularatnav2012 <[email protected]>
    Date:     01/05/2012 03:57 AM
    Subject:     Re: Cannot connect to FMS 4 using rtmfp Cannot connect to FMS 4 using rtmfp

  • Error Connecting to FMS

    Hi all,
    I'm new to streaming and I was asked to setup a live webcasting that will go 'inside' the company.
    We do have a FMS running (not sure which version honestly) and I was given the information for the primary and backup entry points alongside the login and password to connect to them. I downloaded the Encoder (version 3.0) and used the information that I was given.
    When I start the streaming I'm getting the error messages that are in the images below. I suspect it's a problem with the firewall or proxy we are using (as the FMS machines are not inside our LAN), if so do I need to open port 554 or port 7070?
    Is there something else I need to check to make sure this is just an issues with firewall permissions?
    Thank you
    David
    PS

    As you could connect to FMS, firewall is not an issue. As soon as you start publish you got disconnected. Did this happen every time or just once or twice? FMLE throws this message because of following reasons:
    1. Incorrect URL ( server doesn't exist) - but you could connect, so rule out this case.
    2. Connection time out - while making connection if FME doesn't get a response in ~ 30 sec - but u could connect, so rule out this case.
    3. Stream is busy - the stream name on which you are trying to publish is already in use (some one else is also publishing to the same location) - you can also rule out this case, because you didn't receive a "Netstream.publish.badname" error in the logs.
    4. Internet connection problem - this could be a possible reason for the case.
    FMLE will automatically reconnect and republish when the connection comes back.
    You can also enquire whether any script at FMS is restricting you from publishing.
    Let me know if you are able to solve the problem.

  • Slow non-local connection to fms

    Hi,
    I have the following problem:
    when connecting to my FMS application from the web - it takes
    about 2 minutes to make the connection (I see it in the fms2
    management console, for example).
    when connecting locally - it's pretty fast (1 second).
    I am Connecting via a router, and I opened ports 1935 and 80,
    in the router, and in the adaptor.xml. No firewall.
    Any ideas?
    Thanks Joe

    server start screen http://80.252.155.202/
    admin page http://80.252.155.202/fms_adminConsole.htm (login versoul pass 123456789)
    my test flash app http://80.252.155.202/tst/test_sloy.html you can look in firebug in console connecting status
    screens from server pc
    http://my.jetscreenshot.com/demo/20111018-jntc-111kb
    http://my.jetscreenshot.com/demo/20111018-yi5d-114kb
    http://my.jetscreenshot.com/demo/20111018-vkqq-28kb

  • StageVideo usage from Flex Application?

    Hello everyone!
    I'm trying out new StageVideo class and if I add it pure AS3 project everything works perfect.
    But if I try to use the same code in Flex project I get no video output, but looks like the video itself is playing ('cos I can hear the sound track).
    I've tried to remove everything from mxml file to make sure nothing covers video, tried to remove all background changes and etc. (put here any other stuff that might overlay stage), but nothing helped.
    Is it possible to use StageVideo from Flex app at all? May be there's some trick to it?
    Can someone help? Thanks in advance!

    Hello,
    I guess there is no way to attach files to this post. I made the main app an Application instead of a ViewNavigatorApplication for simplicity sake. It's a basic mobile application project for an ipad, so in Flash Builder just create a basic project using that profile and drop these in. I appreciate you taking a look at it.
    thx
    Main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                                          xmlns:s="library://ns.adobe.com/flex/spark"
                                                                          creationComplete="init()">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
                        <![CDATA[
                                  private var mediaPlayer:CatVideoPlayer;
                                  private function init():void
                                            var videoFile:File = File.applicationDirectory.resolvePath("preview.mp4");
                                            var videoPath:String = new File(new File(videoFile.url).nativePath).url;
                                            mediaPlayer = new CatVideoPlayer();
                                            mediaPlayer.width = 640;
                                            mediaPlayer.height = 360;
                                            addElement(mediaPlayer);
                                            mediaPlayer.source = videoPath;
                        ]]>
    </fx:Script>
    </s:Application>
    Custom UI Component:
    package
              import flash.display.Bitmap;
              import flash.display.BitmapData;
              import flash.display.Sprite;
              import flash.display.StageAlign;
              import flash.display.StageScaleMode;
              import flash.events.Event;
              import flash.events.StageVideoAvailabilityEvent;
              import flash.events.StageVideoEvent;
              import flash.geom.Rectangle;
              import flash.media.StageVideo;
              import flash.media.StageVideoAvailability;
              import flash.media.Video;
              import flash.net.NetConnection;
              import flash.net.NetStream;
              import mx.core.FlexGlobals;
              import mx.core.UIComponent;
              public class CatVideoPlayer extends UIComponent
                        private var _defaultHeight:Number = 360;
                        private var _defaultWidth:Number = 640;
                        private var _ns:NetStream;
                        private var _obj:Object;
                        private var _source:String;
                        private var _sourceChanged:Boolean;
                        private var _stageBitmap:Bitmap;
                        private var _stageVideoAv:Boolean = false;
                        private var _sv:StageVideo;
                        private var _vd:Video;
                        private var _vidMask:Sprite;
      //private var _videoStage:Sprite;
                        public function CatVideoPlayer()
                                  super();
                                  mouseEnabled = false;
                                  addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
                        public function onCuePoint(info:Object):void
      trace("CatVideoPlayer.onCuePoint: time=" + info.time + " name=" + info.name + " type=" + info.type);
                        public function onMetaData(info:Object):void
      //trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate);
      //this.width = info.width;
      //this.height = info.height;
                        public function onPlayStatus(info:Object):void
      trace("CatVideoPlayer.onPlayStatus: " + info.data);
                        public function onXMPData(info:Object):void
      trace("CatVideoPlayer.onXMPData: " + info.data);
                        public function set source(value:String):void
                                  _source = value;
                                  _sourceChanged = true;
                                  invalidateProperties();
                        override protected function commitProperties():void
                                  super.commitProperties();
                                  if (_sourceChanged)
                                            setState("showVideoPlayer");
                                            _sourceChanged = false;
                        override protected function createChildren():void
                                  super.createChildren();
      trace("createChildren fired in CatVideoPlayer");
      //_videoStage = new Sprite();
      //addChild(_videoStage);
                        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                                  super.updateDisplayList(unscaledWidth, unscaledHeight);
                         * Convert the current screen to a bitmap and mask it to show stageVideo.
                        private function convertStageToBitmap():void
                                  var bitmapData:BitmapData = new BitmapData(FlexGlobals.topLevelApplication.width, FlexGlobals.topLevelApplication.height);
                                  _stageBitmap = new Bitmap();
                                  _vidMask = new Sprite();
                                  _vidMask.graphics.beginFill(0x000000);
                                  _vidMask.graphics.moveTo(0, 0);
                                  _vidMask.graphics.drawRect(0, 0, _defaultWidth, _defaultHeight);
                                  _vidMask.graphics.endFill();
      //bitmapData.draw(this);
                                  bitmapData.draw(FlexGlobals.topLevelApplication.document);
                                  _stageBitmap.bitmapData = bitmapData;
                                  _stageBitmap.cacheAsBitmap = true;
                                  _vidMask.cacheAsBitmap = true;
      //addChild(_vidMask);
                                  _stageBitmap.mask = _vidMask;
      //addChild(_stageBitmap);
      //backgroundImg_mc.visible = false;
      //playerWindow_mc.visible = false;
      //initVideo();
                         * Handles the mouse clicks that occur on UI components.
                         * @param e
                        private function handleInterfaceClick(e:Event):void
                                  e.preventDefault();
                                  switch (e.target.name)
      case "playBtn_mc":
                                                      setState("showVideoPlayer");
                                                      break;
      case "closeVideo_mc":
                                                      setState("closePlayer");
                                                      break;
      default:
      //do default
                         * Plays the video using StageVideo if supported.
                        private function initVideo():void
                                  var nc:NetConnection = new NetConnection();
                                  nc.connect(null);
                                  _ns = new NetStream(nc);
                                  _obj = new Object();
                                  _ns.client = _obj;
                                  _ns.bufferTime = 2;
                                  _ns.client = _obj;
      //_obj.onMetaData = MetaData;
      //_obj.onCuePoint = CuePoint;
                                  if (_stageVideoAv)
      //use stageVideo
      trace("using stage video in CatVideoPlayer.initVideo()");
                                            _sv = stage.stageVideos[0];
                                            _sv.addEventListener(StageVideoEvent.RENDER_STATE, onRender);
                                            _sv.attachNetStream(_ns);
      else
      //fallback to video class
      trace("using normal video in CatVideoPlayer.initVideo()");
                                            _vd = new Video(_defaultWidth, _defaultHeight);
      //_vd.x = 152;
      //_vd.y = 143;
                                            addChild(_vd);
                                            _vd.attachNetStream(_ns);
      //addChild(videoUI_mc);
                                  _ns.play(_source);
                        private function onAddedToStage(event:Event):void
      trace("onAddedToStage fired in CatVideoPlayer");
                                  stage.scaleMode = StageScaleMode.NO_SCALE;
                                  stage.align = StageAlign.TOP_LEFT;
                                  stage.addEventListener(StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY, onStageVideoAvailability);
                        private function onRender(e:StageVideoEvent):void
    //                              if (!videoUI_mc.fsMode)
    //                                        _sv.viewPort = new Rectangle(152, 143, 720, 480);
    //                              else
                                            _sv.viewPort = new Rectangle(0, 0, 640, 360);
                        private function onStageVideoAvailability(e:StageVideoAvailabilityEvent):void
                                  _stageVideoAv = (e.availability == StageVideoAvailability.AVAILABLE);
                                  initVideo();
                         * Animate the video player's UI states.
                         * @param currentState The different states the player is in.
                        private function setState(currentState:String):void
      trace("setState fired in CatVideoPlayer");
                                  switch (currentState)
      case "showVideoPlayer":
      //playBtn_mc.visible = false;
      //addChild(playerWindow_mc);
      //addChild(closeVideo_mc);
      //playerWindow_mc.visible = true;
      //closeVideo_mc.visible = true;
      //TweenLite.from(playerWindow_mc, 1, { alpha:0, onComplete:function(){ convertStageToBitmap(); } });
      //TweenLite.from(closeVideo_mc, 1, { alpha:0 });
                                                      convertStageToBitmap();
                                                      break;
      case "closePlayer":
      //removeVideoPlayer();
      //playerWindow_mc.visible = false;
      //playBtn_mc.visible = true;
                                                      break;
      default:
      //do default

  • Passing null/empty values from Flex to a Coldfusion ORM object

    This is the situation.
    If you have an actionscript VO that binds to a Coldfusion ORM object via the RemoteClass metadata and some of the values are not set, null, or empty strings and you pass it from Flex to Coldfusion then the Coldfusion deserialization barfs saying the values are not acceptable date values (for type="date") or valid emails (for validation="email") or other such validations, even if required="false" on the property.
    For instance, if you have the following actionscript VO:
    package vo
        [RemoteClass(alias="com.companyname.Person")]
        [Bindable]
        public class Person
            public var person_id:Number;
            public var last_name:String;
            public var first_name:String;
            public var email:String;
            public var created_date:date;
         public function Person() {}
    And you have the corresponding Coldfusion component:
    <cfcomponent displayname="person" output="false"
        alias="com.companyname.Person"
        schema="dbo" persistent="true"
        table="PERSON">
        <cfproperty name="person_id" type="numeric" fieldtype="id" validate="integer" required="true" column="PERSON_ID"/>
        <cfproperty name="last_name" type="string" column="LAST_NAME" required="true"/>
        <cfproperty name="first_name" type="string" required="true" column="FIRST_NAME"/>
        <cfproperty name="email" type="string" validate="email" required="false" column="EMAIL"/>
        <cfproperty name="date_created" type="date" required="false" column="DATE_CREATED"/>
    </cfcomponent>
    Then if you pass the actionscript VO as is to Coldfusion, the deserialization complains that you do not have a valid email or a valid date for date_created.  This is bad, bad, bad.  Essentially if you have a validation of certain types (email being one) or a date property, or probably some other cases, then you essentially can not make it not required, it automatically makes it required because the Coldfusion serializer considers null/empty values as invalid dates or emails.  But the serializer should not care for values that are not required, there has to be a way to pass null/empty values to these data types, but apparently there's not.  If you pass an empty string ("") you still have the same problem.  I know Coldfusion does not have null values, but there has to be a way to do this, otherwise it defeats the purpose of having required="false" and some kind of validation on the property.
    There seems to be two ways around it.  One is to override the implicit setters for the properties on the Coldfusion side and check for 0 length values yourself, then set the property if it is not, or create your own validation routine.  I ended up creating my own validation function since I didn't want to have to write a setter function for everyone of these cases and I can pass back user friendly validation messages.
    Have other people encountered this problem?  How have you gotten around it?  Thanks.

    Looks like a known workaround to this issue is to wrap the Flex object in an array.
    The ColdFusion CFC will accept that as an array, with the first an only element being a struct, which is the object you built in Flex.

  • How to get Checkbox Value from Flex in PHP.

    Hi,
    I need to know how to get a checkbox value from flex in PHP-POST/GET because I don't know what is the value property of a checkbox in flex.
    Please Help.

    Hi,
    It is very simple. Follow the steps below to achieve the solution,
    1. Write a check-box change event to capture the value of the check box. Store this value in a variable(say bolChkSelected:Boolean).
    2. In step 1 you got the value of the check box. Now your aim is to send the value to php. Declare a httpService in your flex application(i think you are aware of using it).Ok..im writing it
    <mx:HTTPService id="sampleService" resultFormat='e4x' url='http://yourdomain/file.php' result='handleResult()' fault='handleFault()'>
    </mx:HTTPService>
    3. Now the actual solution... u need to send the shcStatus in to php..
    Declare an object to hold the data
    var objparameters:Object={};
    objparameters['CheckBoxdata'] = bolChkSelected;
    --in the above line... 'CheckBoxdata' is used as a parameter to php..you shud have the same variable name while accessing in php file also..
    in php file..
    checkboxstatus = $_POST[''CheckBoxdata''];
    echo checkboxstatus
    thats it..

  • Remote access VPN clients connected to Internet from VPN

    Greetings,
    I need to let remote VPN clients to connect to Internet from the same ASA VPN server
    " client connects to ASA through VPN tunnel from outside interface then access Internet from the same ASA from outside interface again
    thanks

    you'll need to configure 'same-security-traffic permit intra-interface' on the ASA .
    Also, need to setup the corresponding nat statements for your clients pool range.
    i.e.
    global (outside) 1 interface
    nat (outside) 1 access-list anyconnectacl
    where anyconnectacl is the pool for your clients:
    access-list anyconnectacl permit ip 172.16.1.0 255.255.255.0 any

  • My Samsung TV has a USB port. I connect the cable from the iPad to the TV to view a video on the TV. The video shows on the iPad but on the TV I can only get the pictures and music available on the iPad. Why is this and can I show videos from the IPad on

    My Samsung TV has a USB port. When I connect the cable from the iPad to the TV I can only show Pictures and Music. Why does the videos not appear and how can I show videos on the TV.

    This article should help you with that:
         http://www.ehow.com/how_7211806_display-iphone-tv.html
    Take care

Maybe you are looking for

  • WMS :  How to Process Sales Order Released before Turning on WMS

    Hello Gurus, How to process sales orders released before WMS enable flag is turned on in the  new WMS enviournment in Oracle 11.5.10 ?

  • Update bios via boot usb

    HP mini 5101 product FM978UT#ABA Current bios F.02 According this manual http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=32... I'm finish 3 steps, and I have a USB stick with 68DGI.BIN config.sys gpl2

  • Export sharepoint files to shared drive

    Hi , I need to schedule transferring some files in SharePoint 2010 library to shared drive is there any way to do this automatically??

  • JMS Compatibility with Windows Server 2008

    Our product uses the JBoss 4.0.4 as an application server. Currently we are supporting Windows Server 2003 and planning to support Windows Server 2008. We want to know that is JMS fully compatible with Windows Server 2008 (64 bit)? Please respond if

  • Don´t allow drag&drop

    In my app you can drag&drop images from the file system into air. but now I want to forbid to drag and drop the image inside the application. now I get this error message when dragging images inside my app: "TypeError: Can't get property length from