We have a website developed on ASP.NET that uses Silverlight to stream videos. All is working well when accessed externally, however, when accessed from the local network, it will not play the media (video or audio). We have attempted to switch to a different web server on the same network and it still not work. To add to the confusion, we have some desktops that will play the media from Chrome, occasionally, but we could never get it to work from IE or Firefox. The problem is also being seen on our other sites developed in ASP.NET.
Here is a sample of the code being used to call one particular video:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SixPoint.aspx.vb" Inherits="HomeTeam.Web.SixPoint" %>
<%
If Not Request.IsAuthenticated Then
Response.Redirect("default.aspx")
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>SixPoint</title>
<!--#include file="Header_incl.aspx" -->
<style type="text/css">
html, body {
height: 100%;
overflow: auto;
}
body {
padding: 0;
margin: 0;
}
#silverlightControlHost {
height: 100%;
text-align:center;
}
</style>
<script type="text/javascript" src="Silverlight.js"></script>
<script type="text/javascript">
function onSilverlightError(sender, args) {
var appSource = "";
if (sender != null && sender != 0) {
appSource = sender.getHost().Source;
}