locked
How do you play FLV Stored on MOSS 2007? RRS feed

  • Question

  • Good day,

    I am having issues with running FLVs on my SPS.  

    I used this code to get the file to play but it does not load...  Help.

     

    <script type='text/javascript' src='http://mysite.com/jwplayer/swfobject.js'></script>

     

    <div id='mediaspace'>This div will be replaced</div>

     

    <script type='text/javascript'>

      var so = new SWFObject('http://mysite.com/JWPlayer/player.swf','mpl','220','165','9');

      so.addParam('allowfullscreen','true');

      so.addParam('allowscriptaccess','always');

      so.addParam('wmode','opaque');

      so.addVariable('file','http://mysite.com/myfile.flv');

      so.addVariable('image','http://mysite.com/previewimage.jpg');

      so.addVariable('stretching','fill');

      so.write('mediaspace');

    </script>

    Tuesday, May 10, 2011 9:30 PM

Answers

All replies

  • Hi GMAN587,

     

    Could you please go through this article: http://zieglers.wordpress.com/2010/07/28/how-to-play-flash-video-in-sharepoint/. You can get the detailed information about how to play flv files in SharePoint and it has provided the code sample.

     

    Thanks & Regards,

    Peng Lei

    • Marked as answer by David HM Tuesday, May 17, 2011 1:58 AM
    Wednesday, May 11, 2011 3:25 AM
  • Thanks for your response.  Unfortunately, it did not work.  I get a Movie not loaded message.

    Am I missing something?  Does the .swp and .js files need to be stored on the physical server's /webroot directory or can I simply place it in a document library within my site?

    Thanks.


    Gerald Belton
    Tuesday, May 17, 2011 2:29 PM