QUOTE (rmdort @ Dec 16 2004, 05:38 AM)
Can someone help me in coding a video player in VB.net
I have a button in my form . When i click it a new form will load which is a video player. It should play .avi files. I cant really get those codes... Thanks...
(In the VB.Net code behind)
iframe.InnerHtml = "<object id=""mediaPlayer"" classid=" & _
" ""CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"" width=""944""
height=" & _
" ""536"" 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""><param name=""fileName"" value=" & _
m_media.MediaURL & ">" & _
"<param name=""animationatStart"" value=""true"">" & _
"<param name=""transparentatStart"" value=""true"">" & _
"<param name=""autoStart"" value=""true"">" & _
"<param name=""showControls"" value=""true"">" & _
"<param name=""ShowDisplay"" value=""true"">" & _
"<param name=""loop"" value=""false"">" & _
"<param name=""stretchtofit"" value=""false"">" & _
"</object>"
but their is one problem with this script, the video is stretched to fill the player
window (which is sized to fit the iframe) causing a loss of
resolution
Comment/Reply (w/o sign-up)