Skip to main content
Inspiring
November 17, 2006
Question

Streaming FLV from FMS to MediaDisplay

  • November 17, 2006
  • 3 replies
  • 713 views
Hello,

Is it possible to stream an FLV from FMS to a MediaDisplay component for playback? I know this can be done with the Video Object and with the FLVPlayback component. I explored the MediaDisplay class and it looks like it has the capability but I cannot find documentation on how to implement it.

Thank you.
    This topic has been closed for replies.

    3 replies

    Participant
    November 28, 2006
    Sounds like a good plan. You are correct that a custom player is a lot of work. Hopefully you won't have to customize FLVPlayback too much to get the look and feel you are striving for.

    And don't look "too closely" at the code underneath FLVPlayback...
    Participant
    November 28, 2006
    And one reason for writing your own is that many of the components are buggy, or "quirky" at best. For example, the FLVPlayback component had (may still have) a major bug where if you attempted to open a file that didn't exist (say it got deleted or you simply specified the wrong filename), then the component was essentially "dead". You could NOT request it to open a different file, even if you correctly specified the new file.

    I reported this to Macromedia and they acknowledged it was a bug. The only work around was to use the lower level "stream" and "connection" objects and write your own.

    The major problem with writing your own is that it requires LOTS of work. And while you do have complete control over everything, the underlying Macromedia API is very poor. If you are a purist engineer, you will cringe at the "hacks" you must do to make your own MediaPlayer "control". Fortunately, Macromedia makes the code to their player available to everyone (as part of the Flash 8 Pro install). And when you look at their code, you will see those hacks which will make you cringe as well...
    --TimK--
    Participating Frequently
    November 28, 2006
    Well since BitGravity and MultiCast still haven't gotten back to me about my issue, I embark on the journey of converting my MediaDisplay driven project to a FLVPlayback driven project. I am hoping this won't be nearly as much work as I forsee it to be. Hopefully it is just a matter of changing any syntax that calls to or controls the video playback.

    As far as components vs. custom player, I don't have the time to build a custom player, so it looks like I will be using the FLVPlayback component.
    --TimK--
    Participating Frequently
    November 27, 2006
    Please someone answer this question!! I too, need the answer. I built an entire project based around the functionality of the Media Display component. I used progressive download all throughout production, intending to switch to streaming video at the end before final delivery. However when I change the media path to an rtmp:// path it just doesn't work. If I make a new file and place an FLVPlayback component on the stage with the same rtmp path, it works.

    I refuse to believe that I need to swap out all 48 flash files with the FLVPlayback component and it's actionscript functionality.

    Please someone! How can a MediaDisplay stream from an rtmp path??

    Thank you.
    Inspiring
    November 28, 2006
    From the research that I have done, it seems that your can only stream from rtmp addresses using the Video Object or the FLVPlayback component. I have not been able to successfully get the MediaDisplay component to stream FLVs from a rtmp address.
    --TimK--
    Participating Frequently
    November 28, 2006
    Man I really hope that isn't true. I downloaded the FMS test server and tested from my machine using localhost and everything worked exactly as I could have hoped. It could have worked because it's localhost and it is streaming a local file off the hard drive as opposed to streaming a file on the internet through rtmp.

    But the fact that it streamed a local file proves that it can stream! The problem probably lies in dealing with the rtmp protocol. Boy I really hope that's not the case. Adobe, what say you?!

    And if it's not possible to use the MediaDisplay for streaming, what is the best way to migrate my project (that uses the MediaDisplay component) to a streaming enabled project? I wonder if I should go with a video object or use the FLVPlayback component. Either way I would have a lot of code rewriting to do.

    Man, I feel archaic already... and I thought I was cool and up-to-date using MediaDisplay.