Bonjour à tous,
Depuis quelque temps j'ai des difficultés pour diffuser mes vidéos depuis mon serveur ifrance...
Effectivement, mes vidéos ne se lisent plus, bien quelles soient sur le serveur et que leur chemin est correct.
Croyez vous que ifrance m'interdit de diffuser des vidéos, ou est ce mon code qui bloque le streaming?
//ie test for active x
if (window.ActiveXObject && navigator.userAgent.toLowerCase().indexOf("win") != -1)
{
//create the player
player = new ActiveXObject("WMPlayer.OCX.7");
}
//ns test for active x
else if (window.GeckoActiveXObject)
{
//create the player
player = new GeckoActiveXObject("WMPlayer.OCX.7");
}
else
{
if (navigator.mimeTypes &&
navigator.mimeTypes["application/x-mplayer2"] &&
navigator.mimeTypes["application/x-mplayer2"].enabledPlugin)
{
player = true;
}
}
//check the player version
if (player != null &&
player.versionInfo != null)
{
minorVersion = parseInt(player.versionInfo.split(".")[1]);
majorVersion = parseInt(player.versionInfo.split(".")[0]);
if (hasVersion9 || (player != null && isMacOsx && noDrm))
{
//build the object tag
html = '<object id="player" \n';
html += ' width="' + mediaWidth + '" \n';
html += ' height="' + mediaHeight + '" \n';
//html += ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954" \n';
html += ' classid="CLSID:' + classid + '" \n';
html += ' standby="Loading Windows Media Player components..." \n';
html += ' type="application/x-oleobject">\n';
html += ' \n';
html += ' \n';
html += ' \n';
html += ' \n';
html += ' \n';
html += ' \n';
html += '</object>';
}
else
{
html = '
'
html += ' WINDOWS MEDIA PLAYER: INSTALL PLUG-IN '
html + = 'When you have finished installing the Windows Media 9 Plug-in, the video you had selected will be available.'
html += ''
html += '[javascript:location.reload() Click here to play the video.]
'
html += '
'
html += 'Help'
html += ''
html += '
'
html += '
'
}
else
{
if (os.indexOf("osx") != -1 || os.indexOf("mac") != -1)
{
html = '
';
html += ' WINDOWS MEDIA TEST '
html + = 'Sorry, video is not supported for Macintosh computers at this time.
';
html += '
'
html += 'Click here for more information.'
html += '
'
html += '
'
}
else
{
html = '
'
html += ' WINDOWS MEDIA TEST '
html + = 'We have detected your browser does not have the required Windows Media 9 plug-in to play this video.'
html += ''
html += 'Help'
html += '
'
html += '
'
}
}
}
Comment expliquer que lorsque je clique sur le lien de ma vidéo et que je fais "enregistrer la cible sous", je charge un fichier .asx (de 1ko) au lieu de ma vidéo .wmv??? De plus ce fichier .asx ne figure pas dans les fichiers sur mon serveur et n'arrive pas à lire ma vidéo...
Bienvenue au club j'ai le même problème http://josstunt.ifrance.com/intro.wmv et moi je crois plutôt que ça vient pas du code mais de l'hebergeur ifrance qui n'accepte pas les vidéos....