Live Streaming video and Flex2(3?) + Flash Media Server?

I've seen alot of topic on how to create video sites for
clips, etc. with Flex and Flash Media Server, but how about live
streaming video, like a concert or a seminar. I can't find any
information on this at all, could anyone point me in the right
direction?

What you need is grab video/sound form camera/mic, publish it
on FMS and let the other clients play it. In a few steps:
// get camera and mic
var cam:Camera = Camera.getCamera(); // get default camera
var mic:Microphone = Microphone.getMicrophone(); // get
default mic
// if you have VideoDisplay, for monitoring
videoDisplay.attachCamera(cam);
// create new RTMP connection to FMS/your app
var nc:NetConnection = new NetConnection();
// new stream should be create *after* nc has connected, not
before
// so this is executed after the below nc.connect() succeeds
nc.attachEventListener(Event.CONNECT, function(){
var ns:NetStream = new NetStream();
ns.attachCamera(cam);
ns.attachMicrophone(mic);
ns.publish("streamname", "live"); // or "record" if you want
to live+rec
// connect to default instance of app 'appname' on your FMS
nc.connect("rtmp://fms.ip.address/appname");
If you're using Flex2 and FMS2 (the latest FMS is 3), you
might need to
cuange the connection encoding to AMF0 (which is what FMS2
uses) in order for this to work.
Hope this helps; I've written it from my head so it probably
has mistakes, but it's the general workflow; the docs in the
language reference for specific functions mentioned here will also
help.

Similar Messages

  • Streaming Video and Audio Using Flash

    Need help, streaming video and audio using Flash and/or
    Dreamweaver, want it to load fast and be very clear. It is
    imparitive that I have control buttons. Can any one assit me in the
    best methods to follow that will give me the performance variance.
    Jason

    Check out tutorials & samples here : http://www.adobe.com/devnet/flashmediaserver.html
    You can check even fmsguru.com : http://fmsguru.com/tutorials.cfm?tab=all

  • Live Streaming Video Playback on CBC - Flash Jitter Bug

    Not sure how many of you are trying to watch the playoffs on CBC on your playbook, but I have a problem with jitter during playback, but only with live streaming video. This is not a connection issue. Apparently it's a b-frame issue where the frames are played out of order, and an adobe flash bug. It appears exactly the same as this example:
    http://www.youtube.com/watch?v=sh_8EPfbpZ
    Very hard to watch, and extremely frustrating. Does everyone experience this with the CBC site? Is this a playbook issue, or just something with my unit? Any suggestions for resolution?
    Go Canucks Go!

    The more serious problem is that TSN is carrying tonight's Canucks game... and they seem to be stuck in 1995 and are not streaming the game. Ugh! 

  • Streaming Video From Android to Adobe Media Server

    Hello All -
    i am looking for the best advice on how to live stream videos from Android Phone (3.0+)to Adobe Media Server.
    Thanks,

    hi,
       yes you can do that but for that you need to write your own server side module for handling streams and storing them

  • Streaming from Digital Rapids to Flash Media Server

    Hello,
    I am using a Digital Rapids StreamZ encoder (version 3.8.0) to stream towards YouTube, Dailymotion, Akamai. I wish to install a Flash server on the same VLAN as my Digital Rapids in order to check the encoding in case there is an issue on YT/DM's side. I therefore downloaded Adobe Flash Media Server and now wish to send my stream towards the AMS. Which Server URL and Stream Name should I use to configure my Digital Rapids? How should I configure the AMS to receive the stream from the DR?
    Many thanks in advance for your help and advice,
    mdicamp

    The Digital Rapids doesn't seem to recognize my destination Server URL. I guess it is because of a port issue.
    Checking the ports situation on my AMS Server (cmd -> netstat -an), I realise port 1935 (which receives RTMP) is only listening locally (127.0.0.1:1935) instead of to the exterior (I would like to have 0.0.0.0:1935). The application does not seem to have forced the port to open (I don't have any firewall).
    I hope this helps move anyone forward in helping me out. Thanks in advance !

  • How to test streaming bandwidth on localhost with Flash Media Server ?

    Hello,
    I'm trying to debbug my code on Client side (Action Script 3) that works with Flash Media Server 4 on localhost. Everything seems fine up to that point.
    However, when I'm trying to test my player with other remote streaming servers, I notice bugs because of lower bandwith transmission between the server and the player.
    Is there a simple way to simulate lower bandwith with FMS4 on localhost (by config, application.xml, programmation...) ?
    Thanks
    Seb Ethier

    Thank you zarihs Rawna
    Indeed, i have been with Server-Side ActionScript (SSAS) way. it's more simple, i think.
    Well, here the step what i did :
    Step 1 :
    Make a file "main.asc" et copy & paste the code below.
    - more info : http://www.peachpit.com/articles/article.aspx?p=31217
          *main.asc*
        var bandwidth;
        application.allowDebug = true;
        // Application callback functions
        application.onConnect = function(client, user) {
            //12800 = 100 Kbps   
            //64000 = 500 Kbps
            //131072 = 1Mbps
            //327680 = 2.5 Mbps
            //983040 = 7.5 Mbps
            //1966080 = 15 Mbps
            //3932160 = 30 Mbps
            //6553600 = 50 Mbps
            //15728640 = 120 Mbps
            bandwidth = 64000;
            client.setBandwidthLimit(bandwidth, bandwidth);
            trace("clientToServer = " + client.getBandwidthLimit(0) +  " serverToClient="+  client.getBandwidthLimit(1));
            application.acceptConnection(client);       
            trace("TEST");
    Step 2 : Save the file under the folder underneath FMS's applications directory
    Example : FMS\application\dyn
    More info : http://www.flashcomguru.com/articles/fms2_basics.cfm
    Step 3: Start the FMS server. If there is a problem, check the log file
    Example : FMS\logs\_defaultVHost_\dyn\_definst_\application.00.log
    Step 4 : (optional) Change the value of the variable bandwidth for your test. I put in comment some common internet connection speed converted in bytes.
    That's all,
    regards,
    sethier

  • Re-encode and send to Flash Media Server?

    Hi all,
    I hope this is not a basic question - I'm in a bit of a loop
    with this.
    I need to do two things:
    grab a live video feed from a
    professional DV camera - the feed would be a standard BNC
    (composite) video cable + XLR mic cable or similar. I need to take
    that feed and somehow convert it to feed and broadcast live through
    Flash Interactive Streaming server (...a reliable hardware solution
    would be great!)
    I will also be receiving Windows
    Media MMS feeds from our parent company - can I re-encode live and
    send through Flash Streaming Server in real-time?
    Also - just in case it makes a difference, the camera is PAL
    - not NTSC. So far I've had no problem running tests with a camera
    connected directly via firewire.
    Thank you for any help you can offer.

    My first message got screwed up - so trying again.....
    Hi all, I hope this is not a basic question - I'm in a bit of
    a loop with this.
    I need to do two things:
    1. grab a live video feed from a professional DV camera - the
    feed would be a standard BNC (composite) video cable + XLR mic
    cable or similar. I need to take that feed and somehow convert it
    to feed and broadcast live through Flash Interactive Streaming
    server (...a reliable hardware solution would be great!)
    2. I will also be receiving Windows Media MMS feeds from our
    parent company - can I re-encode live and send through Flash
    Streaming Server in real-time?
    Also - just in case it makes a difference, the camera is PAL
    - not NTSC. So far I've had no problem running tests with a camera
    connected directly via firewire.
    Thank you for any help you can offer.

  • Cannot Stream Video from iPad on AppleTV - Media Server Apps via Airplay

    Hi,
    Need help on this one.  Am using iPad 4th gen - Apple TV 3rd Gen and iPhone 4S. (all latest firmware)
    Last week was streaming video via Airplay using GoodPlayer and ArkMC apps on iPad to stream from my NAS (WD MyBookLive) via DNLA media server to Apple TV - Worked Amazing
    Upgraded firmware on appleTV.
    I can no longer stream via Airplay from these apps - Airplay Icon appears - I can Select the Apple TV device for airplay (Checked - icon is blue). But no image on apple TV - video image stays on device.
    Full reboot of both AppleTV and iPad.
    Other software using server type setup (ex.:EMIT app) work perfectly and streaming directly from video on iPad works perfectly. (need to turn on the server on the computer though) or airplay enabled web sites and/or apps seem to work well also.
    Mirroring works but the video is not full screen and wrong ratio.
    Any clues ? I've lost this one.
    Thanks

    Apparently what is happening, and this was brought up in another thread, and what I suspected was happening as well, is that the iPhone/iPad/iPod touch is not streaming the video itself directly to the AppleTV (it might be streaming it if it's audio only, haven't confirmed). What it's apparently doing is, is telling the AppleTV2 to download the video and play it on its own, starting with xx:xx timestamp directly from youtube or your iTunes library. This is why it's only working with your iTunes library or the built-in YouTube app. And also why it wouldn't work with the camera roll, because it isn't streaming directly from the iPhone. So it's not exactly what we were originally thinking or expecting.

  • Live Streaming video to HTML 5

    Hi,
    I want to know that whether it is possible to to live stream video in HTML5 from adobe media server or not.I have already gone through this link http://tv.adobe.com/watch/max-2011-develop/streaming-video-to-html5-apple-and-flash-enable d-devices/ .
    But this is for vod.I have to stream video live like video conferencing.

    Hi
    could you try something like this and see if it works ?
    (replace www.abc.com... as relevant)
    <head>
    <link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
    <script src="http://vjs.zencdn.net/c/video.js"></script>
    </head>
    <body>
    <video id="my_video_1" class="video-js vjs-default-skin" controls
      preload="auto" width="640" height="264" poster="my_video_poster.png"
      data-setup="{}">
      <source src="http://www.abc.com/test/hls/test.m3u8" type='video/mp4'>
    </video>
    </body>

  • FLEX 2.0 and Flash Media Server 2.0 Unable to stream from client to server

    Hi All,
    I have been trying to put together a quick demo to stream
    and record audio from Client to Server. I get this error when
    trying to connect to FMS.
    ArgumentError: Error #2126: NetConnection object must be
    connected.
    at flash.net::NetStream/flash.net:NetStream::construct()
    at flash.net::NetStream$iinit()
    at Audio/toggle()
    at Audio/__submit_click()
    my Program fails at this line - ns = new NetStream(nc);
    Your help is greatly appreciated. Here is the MXML file
    Audio.mxml
    This file contains a simple start and stop button start and
    stop audio processing.
    This page is served from Apache Tomcat on host : demoserver1
    and port 8080
    Flash media server is also installed on the same host
    demoserver1.
    I did not do any additional config at FMS except creating an
    application called "DemoApp". All other settings are defaults.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    applicationComplete="startup()">
    <mx:Script>
    <![CDATA[
    import flash.net.NetConnection;
    import flash.net.NetStream;
    public var started:Boolean = false;
    public var nc:NetConnection;
    public var ns:NetStream;
    public var mp:Microphone;
    public function startup():void{
    lblMessage.text="Stopped";
    public function toggle():void{
    if (started==false){
    submit.label="Stop";
    started=true;
    lblMessage.text="Started";
    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
    nc.connect("rtmp://demoserver1/DemoApp");
    ns = new NetStream(nc);
    ns.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    mp = Microphone.getMicrophone(0);
    ns.attachAudio(mp);
    ns.publish("sample1", "record");
    else{
    started=false;
    submit.label="Start";
    lblMessage.text="Stopped";
    ns.close();
    nc.close();
    private function netStatusHandler(event:NetStatusEvent):void
    switch (event.info.code) {
    case "NetConnection.Connect.Success":
    trace(" connection success : " );
    break;
    case "NetStream.Play.StreamNotFound":
    trace("Stream not found: " );
    break;
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    ]]>
    </mx:Script>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400"
    height="300">
    <mx:HBox left="19" right="0" height="100" top="30">
    <mx:Label text="Label" id="lblMessage" width="150"/>
    <mx:Button label="Start" click="toggle()" id="submit"/>
    </mx:HBox>
    </mx:Canvas>
    </mx:Application>

    Hi,
    Are you trying to make an air app or a web application (flash) for streaming? You may want to check out the osmf framework to help you write a player for mobile platform. Check out http://www.opensourcemediaframework.com/ for more info on how you can write streaming video players using this framework. There are some good tutorials there and also you may post on the forum to get your specific queries solved.
    Thanks,
    Abhishek

  • How to use flash media server with cisco show n share live event module?

    hello all
    Is it  possible to use flash media server in show n share (non dme)live event ?  i 've configured flash media server, can receive  multicast streams, bu i have no idea what to write in video url fild in the live event basic setup.

    Hi Temur,
    You should be able to stream from a Flash Media Server.
    The URL should look like this:
    rtmp://xxx.yyy.com//flv:
    You can do some tests from a PC to get the exact URL that would suit your environment.
    Regards,
    Nicolas

  • Encoding to H.264 FLV: Flash Media Server Streaming

    Hi all,
    I've been hoping to find the magic Compressor settings which would allow me to compress a stream-able FLV on our Flash Media Server.
    I realize I can use the default QuickTime Export component to create an FLV, however this does not support distributive rendering/job segmenting. Currently I'm trying the 'QuickTime Movie' file format (last on the format list) without any luck.
    As QuickTime can produce a streamable FLV with the export component I'm figuring there HAS to be a way to manually configure Conpressor to do the same: Has anyone worked this out?
    Thanks for any assistance
    - Billy

    Related to my post above is it be possible to access and use the TrueMotion VP6 (Perian) format settings in Compressor? This format is also accessible through the QuickTime Export component option, and doing so would would both make the flash streams more compatible (w/ old players) and allow job segmenting.
    Thanks again for any thoughts ...
    - Billy

  • Trying to buffer on Flash Media Server

    Hi all, I am very embasarred about this as I should really have studied more but I am having massive difficulty in getting my videos to buffer from Flash Media Server 3.5. The videos are on the web and streaming fine so really I just need to put some actionscript in to make them work... sounds easy. Also, I come across an article by Fabio Sonatti which seems to offer the solution I need. He states the following script.
    function initConnection() {
       // Create a NetConnection
       nc = new NetConnection();
       // Define onStatus event handler
       nc.onStatus = function(info) {
       trace("Level: "+info.level+" Code: "+info.code);
       // Initialize the stream after the connection is successful
       if (info.code == "NetConnection.Connect.Success") {
          trace("--- connected to: " + this.uri);
          startStream(); //Inizialize the stream
       // try to connect, to be changed with your app path
       nc.connect("rtmp://127.0.0.1/dualBuffering/demo");
    function startStream() {
       //Define stream and buffers parameters
        stream_name="test_stream";  //your stream
        startBufferLength=2; //keep this in the range 2-4+
        expandedBufferLength=15;  //arbitrarily high
       // create a netstream
       ns = new NetStream(nc);
       // Define onStatus event handler
       ns.onStatus = function(infoObject:Object) {
          if (infoObject["code"]=="NetStream.Buffer.Full"){
          ns.setBufferTime(expandedBufferLength);
          trace("set expanded buffer");
          if (infoObject["code"]=="NetStream.Buffer.Empty"){
          ns.setBufferTime(startBufferLength);
          trace("set start buffer");
       // attach the NetStream to a video object
       // change from videoObj to your istance name if needed
       videoObj.attachVideo(ns);
       ns.setBufferTime(startBufferLength);
       ns.play(stream_name, 0);
    initConnection();
    stop();
    Now, please appreciate that I know very lkittle about ActionScript but I do know to change the path "rtmp etc etc" to the location of my video on the FMS, so thats fine. However this is where I have a problem I am afraid. I am 100% sure that I need to replace some other items within the code to make it work (as I get errors when I test the video in Flash) but I am afraid and embarassed that I have no idea which items to change. I know the code is perfect but I dont know what a NetStream is and this I think is letting me down.
    I apologise in advance for being an idiot but I am just desperate to get these videos buffering, I know this is the codfe to do it but I need someone to just talk to me in dead simpl;e terms to put me in the right direction. Can anyone help ? : Many thanks : Dom  

    MediaPlayer.stop() will only stop playback of the stream, but not close the connection.
    If you set MediaPlayer.media to null, then it will close the connection.

  • Flash media server instalation error

    Unable to play video using fresh installation flash media server , showing 10000 , and 2032 error , please see the screen shot.

    FMS3 is officially support on Windows 2003 server &
    RHEL-4 only.

  • Flash Media Server Bandwidth Limitations

    Is there anyway to utilise the bandwidth of the flash media server from the server side in such a way so that the streaming will happen from the flash media server to the user based on the user internet connection speed. So users with low bandwidth will receive less streaming data in their buffer and users with high bandwidth will receive more streaming data into their buffer from the server.

    Perhaps i didnt get your qeustion properly. users at lower bandwidth are forced to receive less data per second compared to the users who are at higher bandwidth who will be receiving more data. Do you want to perform dynamic streaming, where in you setup same stream in multiple bitrate and then choose to stream to the clients based on their bandwidth conditions? Like low bandwidth user will receive lower bitrate stream and high bandwidth user will receive higher bit rate stream.
    Let me know if this is not what you are talking about.
    Regards,
    Janaki L

Maybe you are looking for

  • IPod cannot be synced to computer. An unknown error occured (-50)

    When i connect my iPod (30gb Video), the music automatically syncs. But then i get an error code, saying "The iPod cannot be synced. An unknown error occured (-50)" However, the music still syncs to the iPod. So i just wanted to know, if anybody know

  • IFrame - Dynpro - Unlocking R/3 resources

    We have developed generic step-by-step wizard with some steps screen. Each step represent IView with IFrame to dynpro application, which is got by WDURLGenerator.getApplicationURL( WDDeployableObject.getDeployableObjectPart(...)) These steps could no

  • How can i unlock my iphone 4 by mobily carrier

    i need unlock by mobily carrier which was purchased in riyad, kingdom of soudi arabia

  • IMovie9 user guide?

    I bought the Missing Manual for iMovie HD that was a huge help in learning the application.  I am wondering if there is a similar book for iMovie 9 that is recommended? TIA. Mike

  • Plz Help... My iPod wont turn on...

    ok heres the problem... today I wake up all happy and stuff but when I go to pick up my iPod to listen to music it wont turn on. it just shows the sad iPod icon and a link to support. I already tried the 5 steps and trying to startup in diskmode. it