Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Colegas,
Estou montando uma aplicação para exibição de vídeos na nossa intranet, mas não estou consiguindo exibir nenhum vídeo.
O IIS já está configurado e funcional.
A página é exibida com o player, mas quando clico para iniciar, nada é exibido...
É necessário algum componente no servidor?
Eis abaixo um trecho do código, bastante simplificado. Repare que os vídeos ficam em C:\Videos
Nesta parte de vídeo eu sou bastante "crua".
Agradecida,
Ivana
<!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Exibição de Vídeos</title>
</head>
<body>
<div id="player"></div>
<script language="Javascript">
<!--
var enderecoVideo = "C:\Videos\Institucional.wmv";
var video;
video ='<OBJECT ID="WMPlay" width="380" height="380" class="im" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="[http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"](http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701) standby="Carregando componentes do Microsoft Windows Media Player ..." type="application/x-oleobject"><PARAM name="URL" value="'+enderecoVideo+'" /><PARAM name="AllowChangeDisplaySize" value="True" /><PARAM NAME="ShowControls" VALUE=1 /><PARAM NAME="ShowDisplay" VALUE=1 /><PARAM NAME="ShowStatusBar" VALUE=1 /><PARAM NAME="AutoStart" VALUE=TRUE /><PARAM NAME="InvokeURLS" Value=FALSE /><embed name="WMplay" width="380" height="380" type="application/x-mplayer2" pluginspage="[http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"](http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/) src="'+enderecoVideo+'" AutoStart="True" autostart="1" showcontrols="1" displaysize="4" showstatusbar="1"></embed></OBJECT>';
document.getElementById('player').innerHTML = video;
-->
</script>
</body>
</html>Carregando comentários...