Skip to main content
Participant
January 1, 2007
Question

rtmp + flv

  • January 1, 2007
  • 1 reply
  • 354 views
hello
I am following " http://www.macromedia.com/devnet/flash/articles/video_player.html" this tutorial to seup, but I cannot finish that.

FLVPlayback cannot play a flv file, but list box of right side can display a flv file screen.

So I try to edit in "VideoSource.as" line 50.
my_FLVPlybk.contentPath = nav.attributes.url + "/_definst_/" + stream.attributes.name+".flv";

my_FLVPlybk.contentPath = "rtmp:/videosource/fish.flv"; (still cannot)
my_FLVPlybk.contentPath = " http://fish.flv"; (no problem)

sorry my englidh is bad. Thank you


    This topic has been closed for replies.

    1 reply

    January 1, 2007
    This is a tough one, but it does play eventually.

    1. In the FMS apps folder, *manually* create the streams and _definst_ folder and copy and paste the .flv files where they were.

    2. Replace the existing main.asc file in the FMS apps _definst_ folder. For some reason, that one does not work. You need to replace it with the main.asc file that comes with Flash 8:

    C:\Program Files\Macromedia\Flash 8\Samples and Tutorials\Samples\Components\FLVPlayback\main.asc

    3. Your rtmp is malformed. Use rtmp:// (YOUR STATIC IP)/videosource

    4. You might need to delete the .flv part from your script. It might not be necessary when working with FMS.

    That's what did it for me. Some of the vids don't have sound, so click around on them and they should work. If my suggestions don't help, then there is a thread on making this thing work in the forums somewhere. Cant remember the name, but try searching for Dynamic XML Playlist.