MediaPlayer with OSMF and Flex

Hello,
Im trying to build an Media Player with Adobe Flex. Im using OSMF to realize it but I have a problem with Flex created SWF Files. Its not possible to lad it. When Im Loading a clean AS3 SWF File its not a problem only loading Flex created SWFs. Here is my sample code:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initApp();" width="1920" height="1080" layout="absolute">
     <mx:Script>
          <![CDATA[
               import mx.events.FlexEvent;
               import mx.core.Application;
               import org.osmf.containers.MediaContainer;
               import org.osmf.media.MediaPlayer;
            import org.osmf.utils.URL;
               import org.osmf.media.URLResource;
               import org.osmf.proxies.TemporalProxyElement;
               import org.osmf.composition.SerialElement;
               import org.osmf.media.*;
               import org.osmf.swf.*;
               import mx.core.UIComponent;
               private static const swfUrl:String = "cwcam.swf"
               private var mediaElement:MediaElement;
            private var mediaPlayer:MediaPlayer;
            private var container:MediaContainer
                  var serialElement:SerialElement;
               public function initApp():void {
                    var mySWFURL:URL = new URL(swfUrl);
                    serialElement = new SerialElement();
                    container = new MediaContainer();
                    serialElement.addChild(new TemporalProxyElement(4,new SWFElement(new SWFLoader(), new URLResource(mySWFURL))));
                    container.addMediaElement(serialElement);
                    videoParent.addChild(container);
                    mediaPlayer = new MediaPlayer( serialElement );
          ]]>
     </mx:Script>
      <mx:UIComponent id="videoParent" visible="true" width="1920" height="1080"/>     
     </mx:WindowedApplication>

Hi,
This error is thrown because MessageBrokerServlet doesn't accept GET method requests. Are you using RemotObject to invoke Remoting services? Please check the article in the URL below:
http://sujitreddyg.wordpress.com/2009/06/01/building-flex-application-for-blazeds-remoting -service-using-flash-builder-4/
Hope this helps.

Similar Messages

  • Searching a Mysql Database With PHP and FLEX 2.0

    Hi there
    I need help with an adobe Flex 2 PHP Mysql project.
    This project has a search feature where the user selects
    Criteria based on 3 dropdown components that are populated with
    dynamic data from PHP MYSQL.
    When the user selects these 3 criterias,we would like the
    results to be displayed on the flex application under the search
    bar,
    Please let me know If You would be interested.
    I have Adobe Connect,MSN,AIM,SKYPE,YAHOO,etc.
    We can offer more work after this job has been completed.
    I am an 8 year Internet veteran with a Mass amount of
    Work,and projects,for flex.
    Please at least email me with any questions,
    Thanks
    Brandon James Broga
    web technologies
    [email protected]
    aim = brandonjb2008
    msn= [email protected]
    yahoo = webtechhost

    ...Have you gotten any replies on this yet? If not...I've
    been putting small web apps, and web-enabled clients, together
    under pressure for nearly 10 years...Mostly
    VBscript/Javascript/SQLserver/Oracle, but I can do JSP and have
    also dabbled in PHP/MySQL (my
    Movies
    Database Page is in PHP/MySQL). I've been trying to get some
    time to setup a Flex 3 container on my home server, probly I'll use
    WebOrb...
    Lemme know,
    Pudnik

  • Problem with java and flex web service

    Hi,
    I have a basic web service written in java using jax ws 2.1
    ri. I need to call it from Flex using the WebService class
    Annotations for the java web method :
    @WebMethod
    public void Login(
    @WebParam(name="server") String serverURL,
    @WebParam(name=AUTHENTICATE_HEADER,header=true,mode=WebParam.Mode.INOUTHolder<Authenticate Header>
    authHeader)
    When I try and call the service from Flex , it can't find the
    login method and attempts to call it fail. If I set the web service
    to RPC based using @SOAPBinding , the method is found but then
    there are issues with the authentication header.
    What do I need to do to get flex web services communicating
    succesfully with java ?
    Are there are any known compatibility issues ? Or guidelines
    for going about this ?
    Any help would be appreciated

    well Shay,
    i've used JDev's tools to developer and to deploy the web service: the war and ear files are automatically generates you to the end of the process.
    I have included all the files java and the compiled classes, but I do not have files jar.
    But don't works: if i create only one java class with all code inside then it works fine!!
    Daniele

  • Help with PHP and FLEX integration

    Hello i was wondering how to use php sessions with flex, i
    need a way to have secure connections between flex and php.
    I am using a script i made to pass mysql commands/results
    between them, and i am currently passing the php session id with
    the transactions. But if anyone gets a hold of a valid php session
    id then they will be able to use it. Possibly using flex server to
    have secure transactions?
    If i host both the flex created swf and the php file on a
    https server will it "talk" securely?
    thanks lots

    You may get a quicker answer from Cartweaver's newsgroups.
    http://www.cartweaver.com/support/
    They're usually quite prompt and helpful.

  • FM BAPI_PO_GETDETAIL1 with table and Flex

    Since you didn't post the WSDL itself I am forced to ask the obvious, is the table you want "exposed" on the web service side?

    Sorry for that. I did realize that it was a mess after the post, but I had to leave.
    I am using FLEX Builder 3.
    I tried changing the parameter of the <mx:operation from e4x to XML and still the same issue occurs. How do I use the event.message.body in the code?
    Here is the required section of the WSDL.
    - <xsd:element name="BAPI_PO_GETDETAIL1.Response">
    - <xsd:complexType>
    - <xsd:all>
    - <xsd:element name="POITEM">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="s0:BAPIMEPOITEM" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
    The last part of the XSDL is below
    - <binding name="BAPI_PO_GETDETAIL1Binding" type="s0:BAPI_PO_GETDETAIL1PortType">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="BAPI_PO_GETDETAIL1">
      <soap:operation soapAction="http://www.sap.com/BAPI_PO_GETDETAIL1" />
    - <input>
      <soap:body use="literal" />
      </input>
    - <output>
      <soap:body use="literal" />
      </output>
      </operation>
      </binding>
    - <service name="BAPI_PO_GETDETAIL1Service">
      <documentation>SAP Service BAPI_PO_GETDETAIL1 via SOAP</documentation>
    - <port name="BAPI_PO_GETDETAIL1PortType" binding="s0:BAPI_PO_GETDETAIL1Binding">
      <soap:address location="http://xxxxxxx:1080/sap/bc/soap/rfc" />
      </port>
      </service>
      </definitions>
    I assumed that since the BAPIResponse has the POITEM table, i could refer to it in the data grid as lastResult.POITEM.item
    Thank you Daniel for your help.

  • Option to go with XCelcius and FLEX

    Dear all
    For creating reports in Dashboards ,  we are having 93 reports . When we  should go for XCelcius and When
    we  should go for Flex  ?
    Can anyone please expalin me in detail?
    Regards
    Dinesh

    Hi Dinesh
    I recommend to post your question [here|SAP BusinessObjects Dashboards;
    Best reagrds
    Falk

  • How can i make audio player with osmf??

    i want to know how can i make audio player with osmf and flex4.5 ?

    Thanks again...I suppose I'd just like it louder in case the radio is on when the directions are given. The difference between the iPhone & Nokia is like night & day!
    BTW, do you know if the Maps program is using data from my cell phone plan as we drive? Or are the corresponding maps downloaded into the phone once for the trip?
    Thanks again!!

  • [svn:osmf:] 15867: asdocs: Update to accomodate generating OSMF for Flex 4. 0 asdocs from OSMF 1.0 source with as few changes as possible.

    Revision: 15867
    Revision: 15867
    Author:   [email protected]
    Date:     2010-05-02 19:36:51 -0700 (Sun, 02 May 2010)
    Log Message:
    asdocs: Update to accomodate generating OSMF for Flex 4.0 asdocs from OSMF 1.0 source with as few changes as possible.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/display/ScaleMode.as

    bringrags wrote:
    We do indeed recommend replacing the osmf.swc from a Flex 4 project if you're going to use OSMF in Flex 4, but you may (will?) run into issues if you attempt to use Flex's VideoPlayer within that project.  Note also that you'll need to replace osmf.swc for each individual project (or edit your flex-config.xml file to point to the updated SWC).
    In terms of future plans, we are working closely with the Flex team to ensure that their next release ships with the latest OSMF version.  No ETA on that though.
    I have followed the recommendations and removed the old version of swc and replaced it with the release version. And so far the video and audio players work fine without errors.
    But looking at the flex-config.xml I see that it still points to the old version.
    <!-- OSMF SWC -->
        <runtime-shared-library-path>
    <path-element>libs/osmf.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.14159/osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url></policy-file-url>
    </runtime-shared-library-path>
    Could you elaborate a little bit more on editing this part of flex-config.xml?
    Thanks,
    FTQuest

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Problem with nokia n95 lcd. Black screen and flex ...

    Hi i have a nokia n95. I have it since its first year in the market. I am very pleased with the phone but the last month sudenly when i slide to open the phone's screen was not responding. The actual phone was working great. I could receive calls and make calls, listen to music and everything else. The screen was black though. As i am a technician with experience on iPhones mostly i thought that the lcd was damaged. So i ordered one from the internet and 2 days ago i received it. When i installed it i had the same problem. The phone works but the screen not. Then i completely dissaseblied the phone for one more time and i noticed something that i hadn't before at the flex cable. The flex cable consists of 2 flat cables. Well the one is completely broken. Take a look at the following pictures and please tell me you opinion. I am 99.9% sure that this is the cause of the lcd problem. I want to tell me if i should buy the flex cable. I can't go to a nokia center because the phone is out of the warranty over 2 years now. So the only option is to change it on my own.
    Attachments:
    IMG_0363[1].JPG ‏1631 KB
    IMG_0362[1].JPG ‏1616 KB

    The flex cable is damaged. Some years back when I had a Nokia N95 8GB the flex cable was damaged and for a few days the screen was showing strange colours at the display and eventually the screen became black. I went to a local repair shop and I replaced the flex cable and what I noticed was that the flex cable that it had no proximity sensor on it so I told the technician to remove the proximity sensor on the original one and replace it with the new flex cable. Another thing I discovered was that after fitting the flex cable and returning the cover the front camera was not in its usual position so the technician had to do some modifications to get it back to its normal position and after a few months it was damaged and this time I went to Nokia Care Centre and replaced the flex cable for a small fee and what I noticed was that the flex cable that I previously bought was a fake cable. The one bought from Nokia Care Centre had its proximity sensor and when the cover was returned the camera was in its exact position the same as it was with the original flex cable. What I wanted to say is that please beware of fake flex cables on the market and I suggest that you buy it from an authorised Nokia Dealer.
    Ngwangwa - Six Million Ways To Die Choose One

  • How to display rich content with URL in adobe flash builder and flex for mobile apps?

    Hi,
      In Apple IOS SDK, I used the WebView control to display the rich text with Bullets, different font style, images within the text and the URLs also within the text as HTML content.
    Clicking on the URLs automatically opens the respective webpage in Safari.
    In Adobe Flash Builder, I don't see any control straight away equivalent to Apple WebView control.
    How to implement the same using adobe and flex?

    Thanks for your reply, its nice to know its not just me.
    the error i got when submitting to the App store where due to native support for IPHONE 5 which is now mandatory (from May 1st), looking around the internet the common soloution seemed to be upgrading to Air 3.7.
    The strange erorrs on 3.7 revolve around compiling a standard / production build (fast build works fine)
    the error is always the same (snippet shown below):
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "__ZN7avmplus8Debugger9debugLineEi", referenced from:
          __ZN7avmplus9MethodEnv9debugExitEPNS_13CallStackNodeE in AOTBuildOutput-4.o
          __ZN7avmplus11BaseExecMgr22debugEnterExitWrapperNEPNS_9MethodEnvEiPj in AOTBuildOutput-4.o
    I have completly failed to work out why, but my gut feeling is its something to do with how the mac is compiling the code in standard build and unable to find a library it needs.
    cheers
    Toby

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • Flex Library Project(SWC) with css and image assets

    HI,
    I want to create a flex library project with images and css. I shall use that swc with other flex applications. I wand to use those css and images from the swc. Is it possible? Can you please explain in detail.
    Thanks
    Nirmal

    Right... but how do I reference that CSS outside of the
    Libray Project?
    All I want my library project to be is a CSS and images
    Then I want to include that library project in my main
    project, and have the main project call the CSS file inside the
    library project

  • Detect and respond to DRM problems with OSMF

    Hi,
    I am having some sporadic issues with OSMF implementation of DRM using Access server. Under some (as yet murky, but semi-replicable...) circumstances, it is possible to get the licence download to stall in a way that crashes the licence process and so blocks play of _all_ protected content. This block remains in place after browser restart etc. and can occasionally require manual "Deauthorize this computer" and browser cache clearance etc. to resume. The closest I have come to a reliable way to replicate the issue is to place a manual block on the licence request to delay it by a second or two which can reliably crash playback of protected content... but it only works on selected PCs.
    As we haven't yet managed to isolate the cause enough to get Adobe's assistance, I am asking for any potential avenues for detecting / debugging / diagnosing the issue?
    I have tried adding listeners to all available events on the OSMF DRMTrait but all this will tell me is either uninitialized, authenticationError or authenticationComplete. (Seemingly, the other DRMState values are either unused or unreported.) Equally, the changes for these seem to happen too quickly to display them on screen.
    G

    Click here and request assistance.
    (51280)

  • Flex AdvancedDataGrid - ColumnOrder With Formatter and ItemRenderer Question For Experts

    I have a advanceddatagrid that has around 15 columns. Some are string,
    some are numbers. I have shown 4 columns below.
    The number columns have formatting done for zero precision and 2
    digits precision.  The itemRenderer is just to show Blue Color if the
    number is +ve and Red Color if the number is -ve.
    It looks something like below
    <mx:columns>
    <mx:AdvancedDataGridColumn dataField="Name" textAlign"left"/>
    <mx:AdvancedDataGridColumn dataField="Time" textAlign="right"/>
    <mx:AdvancedDataGridColumn dataField="Score" textAlign="right"  formatter="{zeroPrecisionFormatter}" sortable="true"   itemRenderer="ColorRenderer" />
    <mx:AdvancedDataGridColumn dataField="Average" textAlign="right" headerWordWrap="true" formatter="{twoPrecisionFormatter}" itemRenderer="ColorRenderer" />
    I am trying to save the users setting of column order  when he closes
    the application and reload with the same order when the user opens the
    applications. I am using SharedObjects and below is the code.
    for(var i:int=0; i< adgrid.columns.length;i++){
         var columnObject:Object = new Object();
         columnObject.columnDataField = adgrid.columns[i].dataField as String;
         columnObject.columnHeader =adgrid.columns[i].headerText as String;
         columnObject.width = adgrid.columns[i].width;
         columnArray.push(columnObject);
    and then I save the columnArray to SharedObject.
    I retrive them using the below code
    for(var i:int=0;i<columnArray.length;i++){ 
        adgrid.columns[i].dataField =columnArray[i].columnDataField;
        adgrid.columns[i].headerText =columnArray[i].columnHeader;
        adgrid.columns[i].width = columnArray[i].width;
    How can I save and reload the Formatter and ItemRenderer data .
    I am having trouble saving the formatter and itemrenderer and
    reloading it again.
    I would really appreciate if you can shown the code.
    How can I reshuffle the columns but can preserve all the properties of it to though  sharedobject and recover it again

    I would bypass the DataGrid all together.  Using the DataGrid , you have to mess with itemrenderers and indexes ... not
    very fun when one can avoid it.  Instead , I would do my calculations off of the dataprovider.  Then it becomes an elementary exercise of a for-loop and [Bindable] values.

Maybe you are looking for

  • Whats the difference between these two queries ? - for tuning purpose

    Whats the difference between these two queries ? I have huge amount of data for each table. its takeing such a long time (>5-6hrs). here whice one is fast / do we have any other option there apart from listed here.... QUERY 1:    SELECT  --<< USING I

  • Unable to see Deployed EJB's in console

    I'm having problems seeing my deployed EJB's and servlets on the console. I'm running WL6.1 SP1. My ejbs and servlets are in one jar file. This jar file is in d:/javelin/deployment directory and not in the bea/wlserver6.0/config/investia/applications

  • ITunes freezes when I connect my iPad2

    I recently bought an iPad2 but have not been able to sync it with iTunes yet, because every time I connect the iPad, iTunes freezes and becomes unresponsive. I use a Sony Vaio laptop with Windows 7 64-bit Professional, and the latest version of iTune

  • Cinnamon remove fullscreen titlebar

    With various addons, settings and themes I cannot get rid of the damn titlebar in fullscreen applications like wine and some games (enemy territory). Along with VLC fullscreen, Firefox YouTube fullscreen etc. are working fine. On linuxmint etc. eithe

  • Creative Suite 4 content?

    i got the package suite from my school and im having trouble installing the content disk with the extras.  everytime i insert it into my computer it just asks me to import photos.  how do i install it as it should be? any help is appreciated, thank y