Jump to content
xisto Community
Sign in to follow this  
rmdort

Help Needed In VB.NET Video Player

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.