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.

Similar Messages

  • Playing video from a flash streaming server

    Hi I've been trying to insert a video in a flash project that is hosted on a flash media server. I put the address wich by the way is rtmp://p8bezucu.rtmphost.com/testevideo/portfolio.flv and it doesn't work, I'm pretty sure that the address is right, am I misssing something? Thanks a lot

    Have you tried dropping the .flv from the source url string? I think if the FLVPlayback component sees .flv it thinks it is a progressive download instead of a stream.

  • Captivate 5 will NOT play streaming video from my Flash Media Server

    Recently I have begun attempting to convert older projects to captivate 5. However, once I started loading the videos I quickly realized that they are not playing in captivate 5! I know that these videos stream from the server just fine as I have been running them with other products and I know that the paths are correct because I've been using a web player to test the paths of the videos that will not play. How do I get around the bugs in Captivate and get the video working?

    Looking at this issue, here is what I see:
    Looking at the source code from the URL you supplied
    http://www.uab.edu/smsfiles/video.cgi?OU=CEVS&VIDEO=AD_clip_setup.f4v
    Looks to me that the rtmp server has a different name than the one you provided: streamer: ["rtmp://wwwsms.it.uab.edu:1935/CEVS/"]
    Is the file truly an FLV or F4V?  Looks to me like it is a MP4.  [file : "AD_clip_setup.f4v-lo.mp4"]
    I think this will still boil down to getting the correct format for the URI.
    Just my thoughts.

  • Playing mp3 over RTMP (Flash Media Server)

    I've got some mp3 files that are served from a Flash Media Server.  I want to write a Flex application to play them.  Do I need to use NetConnection/NetStream or can I do it with just the Sound class?  I've got a sample app that can connect to the stream with NetConnection/NetStream but I don't know how to connect the netstream data to something that will actually play the sound.
    Will I be able to read the id3 data of the files with this?

    I actually got it working , let me know if that helps
    Create NetStream and attach it to Video Control, then play();
    @return void
      private function connectStream():void {
       // Assign a new Netstream Connection
    if(_nsStream == null){
      nsStream = new NetStream(ncConnection);
      nsStream.addEventListener(NetStatusEvent.NETSTATUS, netStatusHandler);
      nsStream.addEventListener( AsyncErrorEvent.ASYNCERROR,
    handleCatchAllErrors );
      nsStream.addEventListener( IOErrorEvent.IOERROR, handleCatchAllErrors );
      _nsStream.client = {onMetaData:handleMetaData, close:handleCloseStream};
      _nsStream.bufferTime = _videoData.buffer;
       // Assign a new ID3 Netstream Connection
    if( id3ns == null && _videoData.mediaType=="mp3") {
      id3ns = new NetStream(_ncConnection);
      id3ns.addEventListener( AsyncErrorEvent.ASYNC_ERROR,
    handleCatchAllErrors );
      id3ns.addEventListener( IOErrorEvent.IO_ERROR, handleCatchAllErrors );
      id3ns.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler );
        //HACK: we are required to pass in static duration via XML till we get
    server-side actionscript working
      metadata.duration=videoData.duration;
        id3ns.play(_id3_path);
      id3ns.client = {onId3:handleOnId3};
        _id3Field = new TextField();
      _id3Field.width = _video.width;
      _id3Field.wordWrap = true;
      _id3Field.multiline = true;
      _id3Field.antiAliasType = flash.text.AntiAliasType.ADVANCED;
      //_id3Field.defaultTextFormat = _ccTextFormat;
      _id3Field.selectable = false;
      this.addChild(_id3Field);
       _video.smoothing = _playerData.smoothing;
    video.attachNetStream(nsStream);
        nsStream.play(videoData.file);
      _isPlaying = true;
      createSoundObject();
       this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
    trace("[MEDIA FILE] "+_videoData.file);
    Get MP3 data from ID3 tag
    @return void
    private function handleOnId3( obj:Object ):void{
    if(obj["artist"] != undefined){
      _id3Field.text = "by: "obj["artist"].toString() + "\n";
    if(obj["songtitle"] != undefined){
      _id3Field.text = "title: "obj["songtitle"].toString();
    //if we wan to inject media with other data, add it here
    for( var b:String in obj ) {
      //_id3Field.text += b + ": " + obj[ b ];
      //trace(b + ": " + obj[ b ]);

  • How can I put video stream on flash media server on to website running on IIS7?

    We are encoding live video feed using Flash Live Media Encoder and publishing it using Flash Media Server. Is there any documentation on how I can put this publishing point on a website running on IIS7?

    Sorry - but not very clear what you are trying to achieve here - can you please elaborate what you want to do?

  • 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

  • Flash media server error msg

    Sending error message: D:\Macromedia\Flash Media Server
    2\scriptlib\webservices\SOAP.asc: line 769: TypeError:
    this.onResult is not a function
    Failed to execute method (XML.onData).
    this is a live log from my flash media server...who can pls
    tell me how to resolve this problem?
    thank you

    Hello Shiven,
         FMS Apache Service is installed from the Adobe Flash Media Server installation program. When I start FMS from the "Start Adobe Flash Media Server 4.5" icon, it starts both the "Flash Media Server (FMS)" and "FMSHttpd" service. When I stop the FMSHttpd service I am not longer able to access my FMS server from http://myfmsserverip. Please advise.
    Harry Traver

  • 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

  • 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

  • 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.

  • Very basic question: Flash Media Server vs. embedding flash video

    I'm hoping this is a quick easy question to answer:
    What is the difference between Flash Media Server and simply
    using a freeware Flash media player (like Flowplayer
    http://flowplayer.org/) that
    uses XML playlists to embed your Flash videos on a website?
    What are the advantages to Flash Media Server and how does
    something like Flowplayer not address issues that FMS can?
    Thanks in advance!
    Erik

    In a nutshell flowplayer delivers the video through your web
    browser. It does this via http protocol (port 80) and progressive
    download on any web server
    Progressive download finds the video on the server and plays
    it back through the player as it is being downloaded. 2 important
    things to take from this are 1, the video is being downloaded to
    the clients hard drive, at the end of the playback they will have a
    copy of your video that they can do whatever they like to and
    repost it somewhere else. 2, It plays back as it downloads, meaning
    if I'm viewing a 10 minute video from your site and want to skip
    ahead to the middle or end I have to wait for the whole video to
    download before viewing those segments. Your web host by the way
    will love you for progressive download because it will appear as
    though your transfer rate has gone through the roof. Once the
    request for the video is made there is no turning back, the client
    gets the whole thing whether they watch it or not.
    Flash media server uses the rtmp protocol. This protocol is
    an open socket protocol through port 1935. This is a two way street
    essentially. When the user views a video using FMS they basically
    get only enough of the video to keep the connection open and
    satisfy the required buffer to assure clean playback. The bytes of
    info that carry the video only go to the users memory, not the hard
    drive. This allows the user to jump back and forth around in the
    movie without having to wait for the whole thing to download.
    Hope that helps.

  • 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.

  • Aggregated Adobe Captivate Video in Flash Media Server

    Hey,
    Has anyone attempted to implement a captivate video into Flash Media Server?
    I specifically need to know if an aggregated Captivate video will work in Flash Streaming Server. The reason I am not sure that it will is because there are multiple .swf files that an Aggregated video must communicate with and I wonder if that will cause any issues.
    Please let me know if you've run into any problems, if this works, or if you have any other information.
    Thanks!

    So an Aggregated Captivate Video is basically a compilation of several other Captivate Videos. To see what I mean, open up Captivate
    go to File --> New Project-->Aggregator Project.
    Choose the .swf files of published projects that you want to run together as a single video (aggregated .swf).
    Then, publish the Aggregator Video and you will generate a .swf file that plays all the ones you selected previously.
    So basically I am worried that Flash Media Server won't work because the main video file (the aggregated .swf) uses the component .swf files to play.
    Any thoughts?

  • 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..?

  • I have just bought a MacBook Air and i cannot play videos from the internet as it asks for a flash player to be installed i try to download Adobe flash player and it will not allow me to do so?

    I have just bought a MacBook Air and i cannot play videos from the internet as it asks for a flash player to be installed i try to download Adobe flash player and it will not allow me to do so?

    Ziatron is correct that Flash does not work on an iPad, but it does work on a Mac. See Adobe Flash Player 11.2.202.160.

Maybe you are looking for