bonjour,
voilà je voudrai mettre a disposition sur mon site des videos, mais je ne voudrais pa que les visisteurles telecharge, mais plutot qu'il les regarde sur mon site.
Donc je me sert du player windows media player sur mon site.
Par contre je voudrais éviter de fair, pour chaque video, une page PHP.
Donc je cherche a savoir comment faire (je susi nul en PHP) pour grace a un lien qui donnerai des donnés, une page qui afficherai le player aplns la pagedevideos.php affiche telle ou telle videos en fonction du lien.
Do you anderstand me ? lol je sais que je suis un peu vague et flou :'s
Genre un lien style sa:
pagedevideos.php?parametre_lavideoalire
mais comment faire... quel code P entré pr le lien et pr la page PHP ?
je vous done le code du player que j'utilise:
<script>
function display_video(url_video, w, h)
{
// apres on affiche la video
var txt;
if(!w) { w = 320; }
if(!h) { h = 290; }
var WMP7;
txt = "";
if ( navigator.appName != "Netscape" )
{
try { WMP7 = new ActiveXObject('WMPlayer.OCX'); }
catch(e) {}
}
// Windows Media Player 7 Code
if ( WMP7 )
{
txt += '<OBJECT ID=MediaPlayer ';
txt += ' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6';
txt += ' standby="Loading Microsoft Windows Media Player components..."';
txt += ' TYPE="application/x-oleobject" width="'+ w +'" height="'+ h +'">';
txt += '<PARAM NAME="url" VALUE="'+ url_video +'">';
txt += '<PARAM NAME="AutoStart" VALUE="true">';
txt += '<PARAM NAME="ShowControls" VALUE="1">';
txt += '</OBJECT>';
}
// Windows Media Player 6.4 Code
else
{
//IE Code
txt += '<OBJECT ID=MediaPlayer ';
txt += 'CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 ';
txt += 'CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ';
txt += 'standby="Loading Microsoft Windows Media Player components..." ';
txt += 'TYPE="application/x-oleobject" width="'+ w +'" height="'+ h +'">';
txt += '<PARAM NAME="FileName" VALUE="'+ url_video +'">';
txt += '<PARAM NAME="AutoStart" VALUE="true">';
txt += '<PARAM NAME="ShowControls" VALUE="1">';
//Netscape code
txt += ' <Embed type="application/x-mplayer2"';
txt += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/"';
txt += ' filename="'+ url_video +'"';
txt += ' src="'+ url_video +'"';
txt += ' Name="MediaPlayer"';
txt += ' ShowControls=1';
txt += ' Autostart=1';
txt += ' ShowDisplay=0';
txt += ' ShowStatusBar=0';
txt += ' width='+ w;
txt += ' height='+ h +'>';
txt += ' </embed>';
txt += '</OBJECT>';
}
document.write(txt);
}
</script>
<script type="text/javascript">display_video('http://monsite.com/videos.avi); </script>
MERCI PR VOTRE AIDE
voilà je voudrai mettre a disposition sur mon site des videos, mais je ne voudrais pa que les visisteurles telecharge, mais plutot qu'il les regarde sur mon site.
Donc je me sert du player windows media player sur mon site.
Par contre je voudrais éviter de fair, pour chaque video, une page PHP.
Donc je cherche a savoir comment faire (je susi nul en PHP) pour grace a un lien qui donnerai des donnés, une page qui afficherai le player aplns la pagedevideos.php affiche telle ou telle videos en fonction du lien.
Do you anderstand me ? lol je sais que je suis un peu vague et flou :'s
Genre un lien style sa:
pagedevideos.php?parametre_lavideoalire
mais comment faire... quel code P entré pr le lien et pr la page PHP ?
je vous done le code du player que j'utilise:
<script>
function display_video(url_video, w, h)
{
// apres on affiche la video
var txt;
if(!w) { w = 320; }
if(!h) { h = 290; }
var WMP7;
txt = "";
if ( navigator.appName != "Netscape" )
{
try { WMP7 = new ActiveXObject('WMPlayer.OCX'); }
catch(e) {}
}
// Windows Media Player 7 Code
if ( WMP7 )
{
txt += '<OBJECT ID=MediaPlayer ';
txt += ' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6';
txt += ' standby="Loading Microsoft Windows Media Player components..."';
txt += ' TYPE="application/x-oleobject" width="'+ w +'" height="'+ h +'">';
txt += '<PARAM NAME="url" VALUE="'+ url_video +'">';
txt += '<PARAM NAME="AutoStart" VALUE="true">';
txt += '<PARAM NAME="ShowControls" VALUE="1">';
txt += '</OBJECT>';
}
// Windows Media Player 6.4 Code
else
{
//IE Code
txt += '<OBJECT ID=MediaPlayer ';
txt += 'CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 ';
txt += 'CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ';
txt += 'standby="Loading Microsoft Windows Media Player components..." ';
txt += 'TYPE="application/x-oleobject" width="'+ w +'" height="'+ h +'">';
txt += '<PARAM NAME="FileName" VALUE="'+ url_video +'">';
txt += '<PARAM NAME="AutoStart" VALUE="true">';
txt += '<PARAM NAME="ShowControls" VALUE="1">';
//Netscape code
txt += ' <Embed type="application/x-mplayer2"';
txt += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/"';
txt += ' filename="'+ url_video +'"';
txt += ' src="'+ url_video +'"';
txt += ' Name="MediaPlayer"';
txt += ' ShowControls=1';
txt += ' Autostart=1';
txt += ' ShowDisplay=0';
txt += ' ShowStatusBar=0';
txt += ' width='+ w;
txt += ' height='+ h +'>';
txt += ' </embed>';
txt += '</OBJECT>';
}
document.write(txt);
}
</script>
<script type="text/javascript">display_video('http://monsite.com/videos.avi); </script>
MERCI PR VOTRE AIDE
