







|
[ Forums >> Webmasters >> Hebergement >> Ifrance et les vidéos ]
| > Ifrance et les vidéos |
[ Posté par Alexist ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 17-02-2005 à 14:02 | 15 messages ]
  Voici un message que j'ai posté aussi dans une autre partie, croyez vous que Ifrance ait stopper la diffusion vidéo streaming?
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 sont sur le serveur et que leur chemin est correct.
Voici mon code:
<script language=JavaScript>
var player = null;
var plugin = null;
var hasActiveX = false;
var hasVersion9 = false;
var win2000downloadUrl = "http://download.microsoft.com/download/1/b/c/1bc0b1a3-c839-4b36-8f3c-19847ba09299/MPSetup.exe";
var winXPdownloadUrl = "http://download.microsoft.com/download/8/a/2/8a27acce-5c9e-46b3-8996-1e76c0413d17/MPSetupXP.exe";
var macdownloadUrl = "http://download.microsoft.com/download/0/f/3/0f347443-f1ff-4830-9b20-65da2c6bf111/WindowsMediaInstaller.bin";
var downloadUrl = "http://www.microsoft.com/windowsmedia/download/";
var classid = "6BF52A52-394A-11d3-B153-00C04F79FAA6";
var mediaUrl = "http://www.ifrance.com/shaniastar2/billboards_awards_95.wmv";
var os = navigator.appVersion.toLowerCase();
var mediaWidth = 320;
var mediaHeight = 240;
var minorVersion = 0;
var majorVersion = 9;
var download = window.location.href.search("download") != -1;
var noDrm = false;
try
{
mediaHeight += 64
isMacOsx = (os.indexOf("os x") != -1) || (os.indexOf("osx") != -1) || (os.indexOf("ppc") != -1)
//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 (majorVersion >= 9 && minorVersion >= 0)
{
hasVersion9 = true;
}
}
}
catch(exception) { }
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 += ' <par' + 'am name="URL" value="' + mediaUrl + '">\n';
html += ' <par' + 'am name="uiMode" value="full">\n';
html += ' <par' + 'am name="autoStart" value="true">\n';
html += ' <par' + 'am name="enableContextMenu" value="false">\n';
html += ' <embed id="player" \n';
html += ' name="player" \n';
html += ' src="' + mediaUrl + '" \n';
html += ' type="application/x-mplayer2" \n';
html += ' width="' + mediaWidth + '" \n';
html += ' height="' + mediaHeight + '" \n';
html += ' ShowControls="1" \n';
html += ' ShowStatusBar="1" \n';
html += ' AutoSize="false" \n';
html += ' EnableContextMenu="0" \n';
html += ' DisplaySize="0" \n';
html += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/" \n';
html += ' AutoStart="true">\n';
html += ' </embed>\n';
html += '</object>';
}
else
{
if (download)
{
//determine os, we support win98me, win2000, winxp, win2003, macosx
if ( ((os.indexOf("win 9x 4.90") != -1)) ||
((os.indexOf("windows nt 5.0") != -1) || (os.indexOf("windows 2000") != -1)) )
{
aurl = win2000downloadUrl;
}
else if ( ((os.indexOf("windows nt 5.1") != -1) || (os.indexOf("windows xp") != -1)) ||
((os.indexOf("windows nt 5.2") != -1) || (os.indexOf("windows 2003") != -1)) ||
((os.indexOf("5.0") != -1) && (os.indexOf("windows") != -1)) )
{
aurl = winXPdownloadUrl;
}
//else if ( (os.indexOf("os x") != -1) || (os.indexOf("osx") != -1) )
//{
//aurl = macdownloadUrl;
//}
else
{
aurl = win2000downloadUrl;
}
html = '<div id="wmtest">'
html += '<b>WINDOWS MEDIA PLAYER: INSTALL PLUG-IN</b><p>'
html += 'When you have finished installing the Windows Media 9 Plug-in, the video you had selected will be available.'
html += '<p>'
html += '<a href="javascript:location.reload()">Click here to play the video.</a><br>'
html += '<div id="wmtesthelp">'
html += '<a href="/interact/help/faq.sysreq.jhtml" target="vh1" onclick="window.opener.focus();">Help</a>'
html += '<iframe s' + 'rc="' + aurl + '" width="0" height="0" style="visibility:hidden"/>'
html += '</div>'
html += '</div>'
}
else
{
if (os.indexOf("osx") != -1 || os.indexOf("mac") != -1)
{
html = '<div id="wmtest">';
html += '<b>WINDOWS MEDIA TEST</b><p>'
html += 'Sorry, video is not supported for Macintosh computers at this time.<br>';
html += '<div id="wmtesthelp">'
html += '<a href="/interact/help/faq.sysreq.jhtml" target="vh1" onclick="window.opener.focus();">Click here for more information.</a>'
html += '</div>'
html += '</div>'
}
else
{
html = '<div id="wmtest">'
html += '<b>WINDOWS MEDIA TEST</b><p>'
html += 'We have detected your browser does not have the required Windows Media 9 plug-in to play this video.'
html += '<p>'
html += '<a hr' + 'ef="' + window.location.href + '&download=true">Click here to download the plug-in.</a><br>'
html += '<div id="wmtesthelp">'
html += '<a href="/interact/help/faq.sysreq.jhtml" target="vh1" onclick="window.opener.focus();">Help</a>'
html += '</div>'
html += '</div>'
}
}
}
</script>
<script language=JavaScript>document.write(html);</script>
Et voici l'url de ma vidéo; http://www.ifrance.com/shaniastar2/billboards_awards_95.wmv
Serais le serveur ifrance qui cloche?
Merci bien pour votre aide!
________________ Alexis
 
|
[ Posté par p33rat ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 17-02-2005 à 15:35 | 170 messages ]
  saluXX,
AAaahhhhrrrfff!!!!
NON PAS IFRANCE
IFRANCE est un hébergeur de merde (je parle en connaissance de cause) :: change de suite d'hébergeur....
| [ Posté par Alexist ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 17-02-2005 à 15:41 | 15 messages ]
  Merci pour ta réponse si ... explicite!
Chut faut pas le dire, mais j'utilise ifrance pour stocker mes vidéos, j'ai tout de même créer un petit site pour faire illusion.
J'aimerai tout de meme savoir si quelqu'un saurais pourquoi je ne peux plus lire mes vidéos?
________________ Alexis
| [ Posté par Alexist ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 18-02-2005 à 13:40 | 15 messages ]
  Comment expliquer que lorsque je clique sur le lien de ma vidéo et que je fais "enregistrer 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...
________________ Alexis
|
|
Services email :
  Vous devez vous identifier pour profiter des services par email du forum.
|

|