Avatar of Yucel Altingoz
Yucel Altingoz
Flag for United States of America asked on

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

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.
ASP.NETAdobe Flash

Avatar of undefined
Last Comment
Yucel Altingoz

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rahul Agarwal

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Yucel Altingoz

ASKER
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,
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck