Skip to main content
Participant
January 13, 2010
Answered

need help with rtmp streaming

  • January 13, 2010
  • 2 replies
  • 1907 views

we are having an issue getting rtmp with the 3.5.3 FMS development version to work, with our test link we just get a white page

we are able to create a vod in the admin swf, we're able to even see videos showing they should be streaming in the ADMIN console and in the logs it says they should be streaming, but our webpage you get a white page, nothing..

logs look like:

Accepted a connection from IP:74.132.1.1, referrer: http://www.mydomain.comstreaming/res/js/flowplayer/flowplayer.rtmp-3.1.3.swf, pageurl: http://www.mydomain.com/streaming/test.php -
2010-01-13      13:29:46        1181    (s)2641173      Accepted a connection from IP:74.132.1.1, referrer: http://www.mydomain.com/streaming/res/js/flowplayer/flowplayer.rtmp-3.1.3.swf, pageurl: http://www.mydomain.com/streaming/test.php -

NOTE: we are NOT using the apache/http part, the port is configured to 8080 but that is not being used all we want to do is use rtmp to stream through our flowplayer player on the webinterface we configured

let me know if i need to give any more details

I set my VOD_DIR to:

/www/sites/www.mydomain.com/files/html/streaming/fms/applications/vod/media

we then setup a test.php to test FMS with flowplayer-rtmp v3.1.3 (latest) and flowplayer v3.1.5 (latest)

here's the source of our test.php

<html id="htmlElement" xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-us">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>test</title>
        <script type="text/javascript" src="http://www.mydomain.com/streaming/res/js/flowplayer/flowplayer-3.1.4.min.js"></script>
</head>
<body>
<script>
flowplayer('player',
                {
                        src:"http://www.mydomain.com/streaming/res/js/flowplayer/flowplayer-3.1.5.swf",
                        wmode:"opaque"
                },
                {

                        debug: true,
                        log: { level: 'debug', filter: 'org.flowplayer.rtmp.*' },
                clip:
                        {
                                        url:"AdobeBand_800K_H264",
//                              "onStart":clipStarted,
                                        autoPlay:true,
                                        provider:"influxis"
                        },
                        plugins:
                        {
                                influxis:
                                {
                                        url:"flowplayer.rtmp-3.1.3.swf",
                                        netConnectionUrl: 'rtmp://1.2.3.4/vod' # <== 1.2.3.4 = my ext ip obviously
                                }
                        }
                }
        );
</script>

    This topic has been closed for replies.
    Correct answer Robert Reinhardt

    Rob,

    my

    VOD_DIR = /www/sites/www.mydomain.com/files/html/streaming/fms/applications/vod/media

    and the dirs

    /streaming - has non fms files, when we originally started workign with this with an apache plugin

    /streaming/fms - has the fms files

    so wouldn't the below be the proper rtmp url?

                netConnectionUrl: 'rtmp://$ip/streaming/fms/applications/vod/media'


    No, it should start from just after the "applications" part:

    netConnectionUrl: 'rtmp://$ip/vod/media'

    The "root" of the FMS server for RTMP connections is the applications folder, so you just specify the application name ("vod") and any subpath from that point.

    HTH.

    -Robert

    2 replies

    Inspiring
    January 13, 2010

    Also, to be clear, you're not using Influxis as your provider, are you? I'm somewhat familiar with FlowPlayer and it's "plugins". Maybe the

    influxis name should be switched to something else. Do you need to use FlowPlayer? It's not the easiest test player to use for RTMP connections.

    -Robert

    Inspiring
    January 13, 2010

    If you're attempting to play an MP4 file, try using:

    "mp4:AdobeBand_800K_H264"

    as the value of the clip parameter. You can also include the file extension if you want (.f4v, .mp4, etc). FMS needs to know that it's not an FLV file that it's looking for.

    -Robert

    ---

    Robert Reinhardt

    Creator, videoRx.com

    Author, Flash Bible series and Video for Adobe Flash CS4 Professional Studio Techniques

    http://blogs.flashsupport.com/robert

    aixenv23Author
    Participant
    January 13, 2010

    thank you for the reply, like this?

    ======

    <html">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>test</title>
            <script type="text/javascript" src="/flowplayer/flowplayer-3.1.4.min.js"></script>
    </head>
    <body>

    <script language="JavaScript">
    $f("fms", "/flowplayer/flowplayer-3.1.5.swf", {

        clip: {
            url: 'mp4:AdobeBand_800K_H264.mp4',
            // configure clip to use influxis as our provider, it uses our rtmp plugin
            provider: 'influxis'
        },
        plugins: {
            influxis: {
                url: '/flowplayer/flowplayer.rtmp-3.1.3.swf',

                // netConnectionUrl defines where the streams are found
                netConnectionUrl: 'rtmp://$myip/streaming/fms/applications/vod/media'
            }
        }
    });
    </script>

    <div id="player" style="width:640px;height:480px;"></div>

    Inspiring
    January 13, 2010

    Yup, but make sure you have a proper rtmp URL in your netConnectionUrl. That example path looks wonky.