Method 1 :
Instead of using an "attribute value, visibleuse ':
<img src="media-play-button.png" alt="Play" class="mediaplay noborder"
runat="server" visible='<%# Eval("MediaType").ToString() == "video" %>' />
Using "leads to the end of the line after <%# Eval(.
Method 2 :
Do not use binding expressions ( <%#%>) for coding blocks ( <%%>):
<% if (((MediaLink)Container.DataItem).MediaType == "video") { %>
<img src="media-play-button.png" alt="Play" class="mediaplay noborder" />
<% } %>