Bitmapdata + Flash Media Server 3

I could not make streaming bitmapdata using Flash Media
Server 3.
I am using the default connection, and continues giving the
same issue of conversion.
This code:
private function init():void
if(nc){
nc.close()
nc = new NetConnection();
NetConnection.defaultObjectEncoding =
flash.net.ObjectEncoding.AMF3;
nc.addEventListener( NetStatusEvent.NET_STATUS, netStatus );
nc.connect("rtmp://localhost/fmsdemo/demo", "demo");
private function netStatus( event:NetStatusEvent ):void
switch( event.info.code ) {
case "NetConnection.Connect.Success":
_labelStatus.text = "Status: Conexão realizada com
sucesso!";
nc.client = this;
users_so = SharedObject.getRemote("users_so", nc.uri, true);
users_so.addEventListener( SyncEvent.SYNC, usersSyncHandler
users_so.connect( nc );
users_so.client = this;
break;

Hello :)
You must try to transform your BitmapData in ByteArray ...
you dispatch
your ByteArray to the server... and when you receive the
ByteArray to
the server you transform your ByteArray in BitmapData ;)
See the code source in my French article about AMF3 and
classmapping
with FMS3 :
http://www.ekameleon.net/blog/index.php?2008/01/27/92--fmis3-flash-media-interactive-serve r-3-amf3-and-classmapping
To transform un objet in ByteArray i use the code :
var buffer:ByteArray = new ByteArray();
buffer.writeObject( myObject );
And to transform the ByteArray in a new object :
var o:* = buffer.readObject();
For me this solution is a good solution to send objects with
AMF3. AMF3
support ByteArray, XML(E4X), Number, Boolean, String, Object,
Array and
class mapping (use registerClass). I don't think AMF3 support
the
BitmapData type ?
EKA+ :)
egenial a écrit :
> Sorry, tightness enter unintentionally.
>
> Continue...
>
> var bd:BitmapData = new
BitmapData(_videoDisp.width,_videoDisp.height);
> bd.draw(_videoDisp);
> users_so.send("recebe", bd)
>
>
> Receive...
>
> public function recebe(bd:BitmapData):void
> {
> var out:Bitmap = new Bitmap();
> out.bitmapData = bd;
> _myVideoComponent.addChild(out);
> }
>
> Error....
>
> Error #2044: Unhandled AsyncErrorEvent:. text=Error
#2095:
> flash.net.SharedObject was unable to invoke callback
recebe. error=TypeError:
> Error #1034: Type Coercion failed: cannot convert
Object@ebd6719 to
> flash.display.BitmapData.
>
> Anyone know any solution? I want to make streaming
bitmapdata.
>
> I use AMF3
> __Info___________________________
> level -> status
> objectEncoding -> 3
> code -> NetConnection.Connect.Success
> description -> Connection succeeded.
>
> Thanks!
>
>

Similar Messages

  • Problem with NetConnection in Adobe AIR(Flex) using Flash Media Server.

    Hi
    I am creating a small chat application using Flash Media server. I have already created all my user interface components in Flex(Adobe AIR).In this application rather than sending text messages user can also  send  file to another user in his friend list.
    problem what i am facing is, when i am sending file through FMS most of time it send successfully but for some files while sending  application loss netconnection.
    so i would like to know, rather than closing application what are other condition when FMS loses network connection?
    Any help would be appreciated .
    Thanks.

    Hi. It looks like your code is not finding the mp3. At least,
    I can reproduce your error code by removing the mp3 from the
    directory, or renaming it.
    Btw, if you test with FF instead of IE, you'd see the error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
    Stream Error.
    at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
    Hope that helps.

  • How to get list of logged-in users from Flash Media Server in a Flash programm? (Or login/logout notifications)

    Hi there,
    I'm Very sorry for asking this. I guess it's a very basic problem, but I'm very new to Flash and Flash media Server and I need a very fast answer...
    Currently I'm working on a Director project using a flash program which connects to Flash Media Server (I guess version 3, it's quite old). Unfortunately they forgot to make a flash method to send the actual userlist (or a notification when someone logged in or out) to Director. AND, unfortunately, they lost the source code of that flash programm, so I cannot look into it or alter it *sigh*.
    Now I want to do a new flash programm which covers the old one, letting all known methods "pass trough" and building an additional method to gain the user list (or login/out notification).
    How do I get the login information from Flash Media Server? (Would be good if you could provide an idea already for flash code... as I said I'm a tard at flash till now)
    Thank you so much. And I hope you understand my situation asking here...
    Jana

    hparmar : yes, that's what I feared... I hoped it would be possible to tell the server from which application I do need the login information. What a mess.
    Dimo Hristov: thanks for your offer! I already tried decompiling the flash program with the shareware version of Trillix Decompiler. It only decompiled the UI (in a terrible way) but no source code at all. It was the shareware version where I can decompile 2 or 3 programms to test the software. Are you sure the non-free version of Trilix Flash Decompiler will do..?

  • Windows Vista and Flash Media Server Streaming Problems

    My company recently started using Flash Media Server to
    stream audio and video content.
    My boss just installed Windows Vista Ultimate and now no
    streaming content will play at all. Simple Flash animations work,
    but nothing that accesses the Flash Media Server for content. I've
    uninstalled and reinstalled multiple versions of the Flash Player
    on his machine but nothing seems to work. I also tried the new
    "Reset" feature in IE that is supposed to return it to it's
    shipping state and that didn't work. I navigated to the "System 32"
    folder and ran the Flash Updater EXE. I downloaded and installed
    all of the available updates through "Windows Update".
    I also tested Flash Objects that stream video on Adobe.com
    and they don't play either. Has anyone heard of this happening or
    know what I need to do to fix it? I don't know if this is a bug in
    the Flash Player or with Windows Vista.

    This appears to be the solution:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=44&catid=184&threadid =1243464&enterthread=y

  • Beginners guide to integrating Flash Media Server 2?

    I'm a newbit to Flasha dn flash media server and need some
    help with integrating the two products. We've just purchased Flash
    Media Server 2 to stream user created videos to a website. Idealy
    we would like to use the FlvPlayBack component placed on the stage
    to display the FLV file from the media server, but cannont get the
    component to access the FLV file.
    Media Server Configuration:
    On the Media Server we created an application (testapp) with
    an default instance (_definst_). The directory path for the
    Appliation looks like this W:\MediaApps\testapp\streams\_definst_\
    The name of the server is MediaServer
    The application and instance are appearing in the Media
    Server Admin manager.
    I've placed an FLV file (Movie.flv) In the _devinst_
    directory.
    Flash FLA file
    Placed FLVPlayback component on the stage
    Set contentpath= rtmp:\\MediaServer\testapp\_definst_\Movie
    Set islive=true
    When I test publish the file, the video does not display?
    Does anyone have any guidance on what I need to do? There
    seems to be a lack of documentation on integrating the media
    server. I looked a sample app called "SimplePB" that works, but
    does not use the FLVPlayback component.
    Any help would be appreciated.
    Thank you,
    John Wallwork

    John,
    For an FLV to stream from FMS, it must be placed in the
    streams/_definst_ directory...
    applications/myApplication/streams/_definst_/myFlv.flv
    Then you would type in the rtmp connection information in the
    contentPath of the FLVPlayback component like this
    rtmp://myRTMPConnectionInfo/myApplication/myFlv
    without the flv extension.
    The documentation comes from the FMS components when you
    install them.
    Here it is...
    To set up your FCS for streaming FLV files:
    Create a folder in your FCS application folder, and give it a
    name such as my_application.
    Copy the main.asc file into the my_application folder.
    Create a folder named streams in the my_application folder.
    Create a folder named _definst_ inside the streams folder.
    Place your FLV files in the _definst_ folder.
    To access your FLV files on the Flash Communication Server,
    use a URL such as rtmp://my_servername/my_application/stream.flv.
    For more information on administering the Flash Communication
    Server, including how to set up a live stream, see the FCS
    documentation at
    www.macromedia.com/support/documentation/en/flashcom/. When playing
    a live stream with FCS, you need to set the FLVPlayback property
    isLive to true. For more information, see FLVPlayback.isLive.
    Regards,
    Bill

  • Adobe Flash Media Server in Ubuntu

    I have installed Adobe Flash Media Server in Ubuntu.
    When I run the command
    sudo ./fmsmgr server start
    it says that Server: start command:
    Server service start not found. Exiting
    When I start adminserver in the same way,
    the message displayed is :
    Starting Adobe Flash Media Admin Server (please check /var/log/messages)
    In the messages, the following is displayed :
    Server starting...
    Listener started ( FCSAdminIpcProtocol ) : localhost:11110/v4
    Listener started ( FCSAdminAdaptor ) : 1111/v4
    Server started (./conf/Server.xml).
    Let me know if I am facing any issue because of the OS not being supported.

    If you navigate to path where FMS is installed say /opt/adobe/fms and then run ./server restart  , do you get same error?

  • Flash Media Server 3 / FlashPioneer Video Chat

    Just recently, I purchased and installed
    'FlashPioneerVideoChat'...
    I decided to use Flash Media Server 3 (developer addition)
    for the local server. The problem is you can't login to the FMS
    Server from the client end although all other communication aspects
    work fine. When a connection is made the login starts but doesn't
    open the application, it just keeps running. The Client side has
    been debugged and tested so that points to the Flash Server and
    whatever settings have to be made and/or code added to what file?
    Could someone please point me in the right direction, Thank
    you much ...
    [email protected]

    Hi, but doesn't the linux version work on a mac?
    I'm a bit confused here.
    I currently shoot video on a Canon mini dv camera and edit in Apple imovie.
    Convert to Apple Quicktime and then import into Flash 8 video encoder.
    I ftp the clips upto a flash server, from my mac and upload the playlist to my website host
    using Flash 8.
    Don't tell me i've now got to get one of those dreadful PC thingies to complete the loop,
    surely Adobe didn't invent this wonderful piece of software so it could run from a PC?
    Or did they?
    Andrew C-B.

  • Flash Media Server Update Process

    Hi all,
    I currently have Flash Media Server 3.5.0 installed and it has been running since 2009.  It has been running for so long without issues I kind of forgot about it.  Now i see there is an update to 3.5.7.  I downloaded it but when I ran the installer it warned me that all my configuration settings may be lost.  I tried to find some info on the best procedures to follow to perform the update but was unable to find much.  I really do not want to lose my settings.  I looked in the FMS admin console but i did not see any option to backup the current settings. 
    What is the best way to proceed with this update without losing your settings or negatively impacting the media server?

    Like Graeme Bull said in another related post : "You can keep up on that on the product manager's blog though http://blogs.adobe.com/ktowes/"

  • Patch Flash Media Server

    We currently have a server that operates as a streaming media
    server running Adobe Flash Media Server 2 in our organisation and I
    was looking into if there are any update features from Adobe
    available to automatically download and install latest security
    patches etc? Does anyone have any suggestions?

    Nothing at the moment, it has to be done manually.

  • WAMP and Flash Media Server

    I currently have WAMP(Windows, Apache,MySQL,PHP) installed as
    my primary server; I do not want to change this. What I would like
    to do is use Flash Media Server as my primary streaming server and
    be able to host media files on it. I have been informed that if I
    broadcast from the Media Server on Port 80 I will run into trouble
    when I start the WAMP server (because it works on Port 80). The
    resolution that I've been told is to put the Media Server on Port
    :8080. What I am trying to find out is if any one here is running
    the Flash Media Server as a second server using Port 8080 or is it
    smarter to just assign Flash Media Server it's own port. By the
    way, I am trying to set up a test environment that will replicate
    what the real server and application will have to do. Any advice is
    greatly appreciated. Thank You
    In2mobile

    what version of windows are you running?.......try shutting down fms service before making changes.......I know in windows 7 you have to right click choose properties of the folder fms.ini resides in and adjust the security settings.

  • Playing video from a flash media server

    Can anyone point me to code to play streaming video from a Flash Media Server in Flex?

    Can you tell me how are you concluding that you are skipping few seconds when you set higher bufferTime - is it on visual inspection or say based on status messages.

  • Audio not streaming correctly from Flash Media Server

    Our company has a Flex application (3.0.2) that is having a problem with audio dropping out in Windows 7.  The problem appears worse with a wireless connection, but it can’t be consistently reproduced there, either.  The only thing known for sure is that the problem has not been seen on any other version of Windows.
    The application thinks the audio is playing, because it is calling the appropriate event listeners triggered when the audio completes and when any audio cue points are hit.  The majority of our audio is streaming via Flash Media Server (3,0,2,201), but the problem was also seen using embedded sound effects.  In one instance, several clicks of a button triggered an error saying the sound effect could not be loaded, and then about a minute later, all the sound effects played at once and the user could then continue with the application.
    The problem has been repeated in IE 8, Firefox 3 and Chrome.

    Thanks for your details. But i need more info.
    Server:
    FMS      3.0.2 ?
    FMS installed in which platform Linux/windows? more details about it.
    Client:
    IE          7
    Flash Player version     ?
    WIndows 7
    Wireless connection - Was the client placed in poor bandwidth.
    Can you get the NetStream status info when u play the audio file.? We can check for the rebuffering happening at the client side.
    Can you run your audio file through flvCheck Tool to check if the media file is in good form. It is available at "\$Root|Flash Media Server\tools\flvcheck.exe"
    Now our intention should be to check the same media file with simpler application (since your production app is complicated) to ensure that the media streaming over 'client to server' is working fine.
    Regards,
    Janaki L

  • Integrating Flash Media Server with other formats

    I would like to create a standard screen/player that can play
    any of the following formats:
    windows media files, all flash files, quick time files, real
    player files.
    So, for example, lets say I want to manipulate the screen to
    be an exact aspect ratio and have the same skin, and exact same
    controls as my flash files, but I don't want to work with Real
    Server or a Windows Media Server to serve these files what is the
    best approach to take ? i.e. a "Standardized" look and feel for all
    the formats listed.
    Where would I be able to get information that will help me
    achieve this ?

    There are two parts to this,
    Flash Media Server application - both client and server side. Check out the video conference app here http://www.adobe.com/devnet/flashmediaserver/sample_apps.html.
    The client side app will be a .swf file which you can develop in Flash/Flex.
    Second, you will have to embed this swf file in your asp.net page that will be delivered to browsers. I am not an expert in asp.net but googled a bit and get a feeling it's possible using
    tag.
    Also don't forget to check this link http://renaun.com/blog/2006/10/28/139/ for video conferencing app using flex and FMS.

  • A User Count in a Flash Media Server Application

    hello guys, first of all, sorry for my english...
    i am making a flash media server application and i want users to see that how many users are currently connected to this application...
    i have searched on google for 2 days and i couldnt find a good tutorial for AS3.
    i have looked at fmsguru and some other tutorial websites but those wasn't enough for me to succes...
    what i am trying to make is; a text area or dynamic text (i dont know which is most suitable for this purpose) which shows the numbers of connected user and i want it change immediately when a user connects or disconnects...
    i know there is an array as "application.clients" and i know i should use "application.clients.length" in "main.asc" file to find the number of connected users BUT i can't get this number to the text area or dynamic text in my "swf file".
    PLEASE help me by explaining a simple application which uses a "main.asc" file, an "action script" file and a "swf" file. and how to get the number of "application.clients.length", how to send (or call or get) it to the "action script" file, how to show this number in a text field or dynamic text...
    i will be very appreciated if someone explain in AS3 and make me success...
    thanks for reading...

    well here you don't even need the button just tell your textfield to update everytime the server calls after a connection or disconnection. Do you know how to write actionscript at all? Because you would be well advised not to attempt media server stuff unless you know how to do the basics. Maybe you could start out with some client only applications.
    import mx.controls.TextArea;
    import mx.controls.Button;
    import mx.utils.Delegate;
    class SimpleChat_call extends MovieClip {
    private var myTextArea:TextArea;
    private var myButton:Button;
    private var _nc:NetConnection;
    private var _chatSO:SharedObject;
    private function onLoad() {
    myButton.addEventListener("click", Delegate.create(this, onUserCount));
    public function connect( rtmpString:String) {
    _nc = new NetConnection();
    _nc.owner = this;
    _nc.onStatus = function ( info ) {
    if(info.code == "NetConnection.Connect.Success") {
    trace("connected successfully");
    this.owner.connectSO( this );
    _nc.receiveUsercount = function (count) {
    var myTextArea = this.owner.myTextArea;
    myTextArea.text = count;
    _nc.connect(rtmpString);
    private function connectSO( nc ) {
    _chatSO.connect( nc );
    you didn't even try what i suggested did you because it would have worked without changing the client

  • Recording sound without Flash Media Server?

    Hello,
    I am totally new to Flash Media Server I need to be able to record sound via a Flash app and save it to a server preferably without the use of a Flash Media Server type setup. There is no requirement for live streaming.
    Is it possible to record the sound and save in memory then pass the data/file as a query parameter to the server?
    I don't even know if I've posted this in the correct place... any help/guidance will be appreciated.
    Thanks.

    Hi,
    You can use any publisher to publish like FMLE and publish the streams to the application in applications folder suppose application name is sampleApp then create a folder in applications folder of FMS root directory and then keep the below mains.asc file which does the recording of published streams to the sampleApp application.
    //main.asc
    application.onConnect=function(clientObj)
    return true;
    application.onPublish = function(clientObj,streamObj){
      trace("in application publish");
      streamObj.record("record");
    application.onUnpublish = function(clientObj,streamObj){
    trace("on unpublish");
    streamObj.record(false);
    I think this should solve your problem.
    Regards,
    Amit

Maybe you are looking for

  • Best Buy Smash Preorder Bad Experience

    I sent the following email to Best Buy regarding my bad experience when I went to pickup my Super Smash preorder. After hours of being on hold and being transferred to countless different people, the final explanation I was given is that Best Buy can

  • Send POs in pdf format to vendors

    Hi, how can I send POs to vendors in pdf format by e-mail ? Best regards

  • Zen Xtra Software Probl

    Hi... i had bought a few weeks ago a Creative Zen Xtra with 60GB, i had bought it in Italy but with the different languages it isnt any problem to use it! The Zen Xtra is international isnt it's My Problem is the Software, the CD where is in the pack

  • How can one monitor the level of usage of Fact Sheet in SAP CRM?

    I am trying to understand how often users are actually using the Fact Sheet utility in our CRM instance.  Anyone know a way to gather this statistic?  Thanks

  • HELP! Anyone know how to fix this error?

    Uncaught exception: DSSMA: invalid state (5): 57 Message Edited by Nyteguardyan on 09-19-2009 01:30 PM