ASP.NET - How to play flash video, flv format, on  the page

Yucel Altingoz
Yucel Altingoz used Ask the Experts™
on
Hi
I need to play video in .flv format on our intranet.
I tried different approaches with different code but always got to a dead end.
Can you please help me to create a player?
I use VS2010 (VB), asp.net 4.0

Thank you in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
Hi agarwalrahul:
Thank you for the replay
I put the following code in my aspx file:
--------------------------------------------------
   <p id="’preview’">
        The player will show in this paragraph</p>
    <script type="text/javascript" src="/jwplayer/swfobject.js"></script>
    <script type="text/javascript">
        var s1 = new SWFObject("/jwplayer/player.swf", "player", "400", "300", "9", "High");
        s1.addParam("allowfullscreen", "true");
        s1.addParam("allowscriptaccess", "always");
        s1.addParam("flashvars", "file=/jwplayer/MMtake1.flv");
        s1.write("preview");
    </script>
-------------------------------------------
but when I try to run it with VS2010 I get the following error:
"Microsoft JScript runtime error: 'null' is null or not an object" and it points to "n.innerHTML=this.getSWFHTML()" in swfobject.js.

Thanks,

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial