How to play your video and you tube video in asp.net

using media player............

<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701"
                    standby="loading microsoft windows media player components..." type="application/x-oleobject"
                    width="500px" height="360px">
                    <param name="filename" value='<%=str %>' />
                    <param name="animationatstart" value="true" />
                    <param name="transparentatstart" value="true" />
                    <param name="autostart" value="true" />
                    <param name="showcontrols" value="true" />
                    <param name="ShowStatusBar" value="true" />
                    <param name="windowlessvideo" value="true" />
                    <embed src='<%=str %>' autostart="true" showcontrols="true" showstatusbar="1" bgcolor="white"
                        width="500" height="360" />
                </object>


for you tube video.......
your path should be like ....
http://www.youtube.com/v/VA770wpLX-Q?fs=1
lik VA770wpLX-Q is videoencryptedname
"http://www.youtube.com/v/" + videoencryptedname + "?fs=1";

<object width="500" height="360">
                    <param name="movie" value='<%= FLvFile %>' />
                    <param name="allowFullScreen" value="true" />
                    <param name="allowScriptAccess" value="always" />
                    <embed src='<%= FLvFile %>' type="application/x-shockwave-flash" allowfullscreen="true"
                        allowscriptaccess="always" width="500" height="360">
</embed>
                </object>

Comments

Popular posts from this blog

How to create RSS Feed in Asp.Net

Auto generate change scripts in SQL Server Management Studio SSMS for tables

HOW TO Use the NumericUpDown Control