Skip to main content
Participant
September 3, 2010
Question

Where to put my Html.

  • September 3, 2010
  • 1 reply
  • 586 views

Hi

I'm a newbie on Flash and streaming and need some help to my problems.

I'm trying to create a Html page which can stream the videos that I've placed in the "application\<MyFolder>\streaming\_definst_"  folder.

The thing is that it will only work when the html file is placed under the FMS webroot folder - why is that.

I didn't install the apache server when I installed the FMS 3.5 because It was already installed on my system (same server).

What am I missing??? Do I have to make some special configuration to the Apache server or FMS server to be able to place the Html elsewhere??

A copy of the html is placed beneath.

<body>

<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='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=rtmp:/Lemchetest/sas&DS_Status=true
  &streamType=vod
  &autoStart=true'
/>
<embed
  src='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=rtmp:/Lemchetest/sas
   &DS_Status=true
   &streamType=vod
   &autoStart=true'
  type='application/x-shockwave-flash'
  >
</embed>
</object>

</body>

Thanks for your time.

/Flemming

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    September 3, 2010

    Hi, I think you might be doing some small mistake as I dont see this issue so try the below html code which works well for me. You need to have html file with this code and place swfs folder at the same location as html file. This does not require webserver like Apache to run so either you can it locally using browser or you may run it by hosting on web server, it works in both way.

    index.html

    -------------

    <html>
    <body>

    <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='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
    &DS_Status=true
    &streamType=vod
    &autoStart=true
    &serverURL=rtmp://localhost/vod/sample'/>
    <embed
    src='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&DS_Status=true&streamType=vod&autoStart=true&serverURL=rtmp://localhost/vod/sample' type='application/x-shockwave-flash'>
    </embed>
    </object>

    </body>
    </html>

    Hope it helps

    Regards,

    Amit

    flemcheAuthor
    Participant
    September 3, 2010

    Hi, You were right!

    It was a small mistake.

    I forgot to copy the "Videoplayer.swf" into the directory 

    and on top of that I misunderstood the "pluginspage" param.

    I thought that the link placed here was an alternative URL to a videoplayer in case the videoplayer was missing at the hardcoded URL and that it would download the player automaticly......

    Well is working now.

    Your posting didn't solve the problem but let me to realize what the problem was.

    Thank you very much for your help and time.

    It's not allways easy to be a newbie.

    Regards

    Flemming