Project Description THE YMP Web Control is a simple .Net web control that includes the Yahoo Media Player into your webpage.
It allows you to specify which version of the player to load and whether to render the JS in the head or not.
How To Use It
So add a register assembly into the top of your aspx file <%@ Register Assembly="YMP" Namespace="YMP" TagPrefix="YMP" %> Then where ever you want the YMP to render, I advise it be the last control in your page as it "adds to your page" and you want the page to load as quick as possible. <YMP:YMPControl runat="server" ID="ympcontrol"/> I have also added two optional parameters, DevelopmentVersion and EmbedInHead. These two boolean parameters allow you to turn on the Development version of the player, which supposedly is buggy has all the latest stuff, and allows you to embed the control into the header of your page from where ever it was added. Now this second parameter I would advise against using as you can just manually stick the control code into your header. The option was added in the case where you don't have the ability to change your master page or get access to the head section of code, i.e your using templates or something. This solves that. So an example of wanting the development version of the YMP but also loading it into the head <YMP:YMPControl runat="server" ID="ympcontrol" EmbedInHead="true" DevelopmentVersion="true"/>
|