Hello friends, I am trying to embed Windows Media Player in my ASP page. I am using the following code to do so. <embed type="application/x-mplayer2" name="wmp1" ShowStatusBar="true" EnableContextMenu="true" autostart="true" loop="false" src='<% rs.field("Link") %>'/> Code (markup): The problem is..... the song doesnt get played after I embed it this way. Can any one suggest me any solution? I check out the connectivity coding, its perfectly fine & the link is getting retrieved properly. Please Help.
The link is getting retrieved properly? have you tried changing: <% rs.field("Link") %> to <%= rs.field("Link") %> To evaluate the expression i think you need to add the = sign, or it will do nothing. Or: <% Response.Write rs.Field("Link") %>
Otherwise the issue is with the HTML. Have a look here to ensure you have the correct code: http://www.mediacollege.com/video/format/windows-media/streaming/embed.html
@camjohnson95 Thanks a lot. I missed that " = " there. It is working perfectly now I am new to ASP..... and am learning it all on my own. So there are such simple things I am unaware of Thank you very much. Have a good day!
you could embed a flash player - then have a true streaming audio file if you are looking for a cleaner/more compliant/faster loading scenario
My best recommendation is the use the object element. Object is cross-browser compatible and if I am not mistaken, the embed element that is not inside of the object element is deprecated. See this page for more info on the object element: http://msdn.microsoft.com/library/d...hop/author/dhtml/reference/objects/object.asp