rmdort 0 Report post Posted December 16, 2004 Can someone help me in coding a video player in VB.netI 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... Share this post Link to post Share on other sites
iGuest 3 Report post Posted December 16, 2004 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... <{POST_SNAPBACK}> (In the VB.Net code behind) iframe.InnerHtml = "<object id=""mediaPlayer"" classid=" & _ " ""CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"" width=""944"" height=" & _ " ""536"" codebase=""http://forums.xisto.com/no_longer_exists/; & _ "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 Share this post Link to post Share on other sites