Diffusion Vidéos

goingup Messages postés 45 Date d'inscription mercredi 23 juin 2004 Statut Membre Dernière intervention 14 janvier 2010 - 18 févr. 2005 à 13:48
cs_bilbao02 Messages postés 3 Date d'inscription vendredi 24 mars 2006 Statut Membre Dernière intervention 29 mars 2006 - 29 mars 2006 à 23:03
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?

Je vous soumet ici l'url de ma vidéo : http://www.ifrance.com/shaniastar2/billboards_awards_95.wmv

Egalement le code que j'utilise:
<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 += ' \n';
html += ' \n';
html += ' \n';
html += ' \n';
html += ' \n';
html += ' \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 = '
'
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 += '
'
}
}
}

</script>
<script language=JavaScript>document.write(html);</script>

Merci de votre aide


----------
GoingUP

4 réponses

goingup Messages postés 45 Date d'inscription mercredi 23 juin 2004 Statut Membre Dernière intervention 14 janvier 2010
18 févr. 2005 à 13:50
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...


----------
GoingUP
0
DODOCOMDeeJee Messages postés 1 Date d'inscription dimanche 15 janvier 2006 Statut Membre Dernière intervention 23 février 2006
23 févr. 2006 à 21:59
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....
0
cs_bilbao02 Messages postés 3 Date d'inscription vendredi 24 mars 2006 Statut Membre Dernière intervention 29 mars 2006
29 mars 2006 à 22:59
au le bordel pour une video tien voila <center><OBJECT
ID="MediaPlayer1" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
</OBJECT></center>
0
cs_bilbao02 Messages postés 3 Date d'inscription vendredi 24 mars 2006 Statut Membre Dernière intervention 29 mars 2006
29 mars 2006 à 23:03
ou ca ces encore mieus
<object id="machin" width="640" height="480" classid="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A">

</object>

jai meme un logiciel qui te donne le code htlm de tes video ou image (ect)voila a ++++
0
Rejoignez-nous