Skip to main content
Known Participant
April 26, 2010
Answered

FMS and Dynamic Streaming

  • April 26, 2010
  • 1 reply
  • 1091 views

I grabbed the code snippet that FMS provides for Dynamic streaming video and If I leave my calling code on the FMS it works fine, but ...

I moved my calling page to another server and I am getting "Connection Error.  Please press Play to try again".

I instantiated the paths, but I am still getting the error.

Can someone see what I am doing wrong when I instantiate my paths?

Here is my dynamicStream2.smil code that is sitting in folder (Flash Media Server 3.5\webroot):

<smil>
    <head>
        <meta base="rtmp://MyFMServer/vod/" />
    </head>
    <body>
<switch>
      <video src="mp4:sample1_1500kbps.f4v" system-bitrate="1500000"/> 
      <video src="mp4:sample1_1000kbps.f4v" system-bitrate="1000000"/>
   <video src="mp4:sample1_700kbps.f4v" system-bitrate="700000"/>
   <video src="mp4:sample1_500kbps.f4v" system-bitrate="500000"/> 
      <video src="mp4:sample1_150kbps.f4v" system-bitrate="150000"/> 
    </switch>
    </body>
</smil>

Here is my calling code from http://MyOtherServer/test.html :

<object width='640' height='377' id='videoPlayer' name='videoPlayer' type='application/x-shockwave-flash'
classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' >
<param name='movie' value='http://MyFMServer/swfs/videoPlayer.swf' />
<param name='quality' value='high' /> <param name='bgcolor' value='#000000' />
<param name='allowfullscreen' value='true' />
<param name='flashvars' value= '&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=http://MyFMServer/dynamicStream2.smil&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=rtmp://MyFMServer/vod/mp4:sample2_1000kbps.f4v&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=http://MyFMServer/dynamicStream2.smil&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=rtmp://MyFMServer/vod/mp4:sample2_1000kbps.f4v&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=http://MyFMServer/dynamicStream2.smil&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=rtmp://MyFMServer/vod/mp4:sample2_1000kbps.f4v&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=http://MyFMServer/dynamicStream2.smil&DS_Status=true&streamType=vod&autoStart=true'/>
<embed src='http://MyFMServer/swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' name='videoPlayer' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer'  
flashvars='&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=http://MyFMServer/dynamicStream2.smil&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=rtmp://MyFMServer/vod/mp4:sample2_1000kbps.f4v&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=http://MyFMServer/dynamicStream2.smil&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=rtmp://MyFMServer/vod/mp4:sample2_1000kbps.f4v&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=http://MyFMServer/dynamicStream2.smil&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=rtmp://MyFMServer/vod/mp4:sample2_1000kbps.f4v&DS_Status=true&streamType=vod&autoStart=true&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&serverURL=http://MyFMServer/dynamicStream2.smil&DS_Status=true&streamType=vod&autoStart=true' type='application/x-shockwave-flash'>
</embed></object>

    This topic has been closed for replies.
    Correct answer amit_kr

    If your url is http://MyFMServer/swfs/videoPlayer.swf' this means in your webroot folder there should be folder named swfs in which you should have kept videoPlayer.swf and .smil file and your videos should be in vod/media folder. If you are able to do rtmp streaming for videos in vod/media folder then it should work fine if you have placed everything correctly.

    Regards,

    Amit

    1 reply

    Adobe Employee
    April 27, 2010

    Hi

    Please check if you have mentioned FMS url correctly in tag <meta base="rtmp://MyFMServer/vod/" /> of smil file. And check if your fms server is accessible from the other server by just playing one vod file. Also check if the swf file and smil file is also placed at correct place on the other server.

    I tried this scenario at my end I am able to do dynamic streaming for external smil file.

    Regards,

    Amit

    Known Participant
    May 4, 2010

    Here is my .smil file:

    <smil>
        <head>
            <meta base="rtmp://MyFMServer/vod/" />
        </head>
        <body>
    <switch>
          <video src="mp4:sample1_1500kbps.f4v" system-bitrate="1500000"/> 
          <video src="mp4:sample1_1000kbps.f4v" system-bitrate="1000000"/>
       <video src="mp4:sample1_700kbps.f4v" system-bitrate="700000"/>
       <video src="mp4:sample1_500kbps.f4v" system-bitrate="500000"/> 
          <video src="mp4:sample1_150kbps.f4v" system-bitrate="150000"/> 
        </switch>
        </body>
    </smil>

    Should my .smil file be located at the webroot or in the /vod/ directory?

    I have tried both.

    I am able to http and rtmp with other videos.

    I have my videos in the /vod/ folder, is this correct?

    Thanks

    amit_krCorrect answer
    Adobe Employee
    May 4, 2010

    If your url is http://MyFMServer/swfs/videoPlayer.swf' this means in your webroot folder there should be folder named swfs in which you should have kept videoPlayer.swf and .smil file and your videos should be in vod/media folder. If you are able to do rtmp streaming for videos in vod/media folder then it should work fine if you have placed everything correctly.

    Regards,

    Amit