Programme en VB
istary
Messages postés
243
Date d'inscription
Statut
Membre
Dernière intervention
-
istary Messages postés 243 Date d'inscription Statut Membre Dernière intervention -
istary Messages postés 243 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Je vousdrais créer un programme en en vb qui permettrait a l'auditeur de lancer une fenetre sous windows pour écouter ma webradio.
Quelqu'un peut m'aider pour le réaliser ?
Cordialement
Istary
Je vousdrais créer un programme en en vb qui permettrait a l'auditeur de lancer une fenetre sous windows pour écouter ma webradio.
Quelqu'un peut m'aider pour le réaliser ?
Cordialement
Istary
A voir également:
- Programme en VB
- Vb - Télécharger - Langages
- Programme demarrage windows - Guide
- Mettre en veille un programme - Guide
- Message programmé iphone - Guide
- Programme word gratuit - Guide
8 réponses
Salut, un code comme ceci te convient ?
Après tu remplaces les messages par ce que tu veux écrire, mais c'était pour te donner une idée.
La page web va s'ouvrir avec la navigateur par défaut de la personne. Après, tu peux choisir avec quel navigateur ouvrir la radio, pour cela il faut remplacer
par
dim webradio webradio = "http://adresse_de_ta_webradio" If MsgBox("Lancer nom_de_ta_radio ?", vbQuestion + vbYesNo + 0, "titre_du_message") = vbYes Then set lancement = CreateObject("WScript.Shell") lancement.run "" &webradio Else MsgBox "Opération annulée!", vbExclamation + 0, "titre_du_message" End If
Après tu remplaces les messages par ce que tu veux écrire, mais c'était pour te donner une idée.
La page web va s'ouvrir avec la navigateur par défaut de la personne. Après, tu peux choisir avec quel navigateur ouvrir la radio, pour cela il faut remplacer
start
par
start iexplore(Internet Explorer) ou
start firefox(Mozilla Firefox)
Non, ma webradio je la lis avec un player en php que j'ai sur mon site mais je voudrais la lire a partir de l'ordi (faire une sorte de client a installer chez la personnes) et comme ca il aurais une icone sur son bureau et il écouterait ma webradio depuis l'ordinateur...
Tu comprends ?
Cordialement
Tu comprends ?
Cordialement
Je voudrais que quand l'auditeur clique sur l'icone, ca lui ouvre une fenetre (windows) avec un player integré. ....
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
A ce moment là, il faut intégré le player dans le VB ou alors faire en sorte que le VB lance le player qui doit déjà être sur l'ordinateur (sous forme de programme).
Ton player fonctionne ?
Ton player fonctionne ?
mes pleyers fonctionnent tres bien meme^^
tu peux maider a le faire ? si comment le ,mettre en .exe?
tu peux maider a le faire ? si comment le ,mettre en .exe?
Télécharge Bamcompile pour compiler ton player php en exécutable (.exe). Si tu n'y arrives pas, envoie moi le code php (poste-le ou envoie le moi sur mon profil en message privé).
Une fois compilé, on pourra alors lancer le player.exe avec le VB.
Une fois compilé, on pourra alors lancer le player.exe avec le VB.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title>Radio MTR - Techno & Dancefloor</title>
<script language="JavaScript">
<!--
function affichage_popup(radio, nom_radio)
{
window.open (radio, nom_radio, config='height=296, width=526, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
}
-->
</script>
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(239, 239, 239);" alink="#ee0000" link="#3366ff" vlink="#551a8b">
<div style="text-align: left; font-family: Verdana; width: 505px;"><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"></span></big></big></big></span><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);">
</span></big></big></big></span>
<table style="width: 25%; height: 20%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"><img style="width: 455px; height: 144px;" alt="" src="player_1ban.png"></span></big></big></big></span></td>
</tr>
<tr>
<td style="height: 20%;">
<center>
<object data="http://player.wavestreamer.com/cgi-bin/player2.swf" name="scplayer" id="scplayer" type="application/x-shockwave-flash" width="340" height="55"><param value="false" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="#FFFFFF" name="bgcolor"><param value="transparent" name="wmode"><param value="skin=http://player.wavestreamer.com/cgi-bin/kleur/kleur.swf&title=Live Stream&type=sound&file=http://serveur3.wanastream.com:9800/;stream.mp3&12825646592&duration=99999&id=scplayer&autostart=true" name="flashvars"></object>
</center>
<br>
<br>
</td>
</tr>
<tr style="font-weight: bold;" align="right">
<td><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"><small><small><small><small><small><a href="#">Problème d'écoute</a> | <a href="#">En savoir plus</a></small></small></small></small></small></span></big></big></big></span></td>
</tr>
</tbody>
</table>
<span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"><br>
</span></big></big></big></span><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"><small><small><small><br>
</small></small></small></span></big></big></big></span></div>
</body>
</html>
<html style="direction: ltr;">
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title>Radio MTR - Techno & Dancefloor</title>
<script language="JavaScript">
<!--
function affichage_popup(radio, nom_radio)
{
window.open (radio, nom_radio, config='height=296, width=526, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
}
-->
</script>
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(239, 239, 239);" alink="#ee0000" link="#3366ff" vlink="#551a8b">
<div style="text-align: left; font-family: Verdana; width: 505px;"><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"></span></big></big></big></span><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);">
</span></big></big></big></span>
<table style="width: 25%; height: 20%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"><img style="width: 455px; height: 144px;" alt="" src="player_1ban.png"></span></big></big></big></span></td>
</tr>
<tr>
<td style="height: 20%;">
<center>
<object data="http://player.wavestreamer.com/cgi-bin/player2.swf" name="scplayer" id="scplayer" type="application/x-shockwave-flash" width="340" height="55"><param value="false" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="#FFFFFF" name="bgcolor"><param value="transparent" name="wmode"><param value="skin=http://player.wavestreamer.com/cgi-bin/kleur/kleur.swf&title=Live Stream&type=sound&file=http://serveur3.wanastream.com:9800/;stream.mp3&12825646592&duration=99999&id=scplayer&autostart=true" name="flashvars"></object>
</center>
<br>
<br>
</td>
</tr>
<tr style="font-weight: bold;" align="right">
<td><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"><small><small><small><small><small><a href="#">Problème d'écoute</a> | <a href="#">En savoir plus</a></small></small></small></small></small></span></big></big></big></span></td>
</tr>
</tbody>
</table>
<span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"><br>
</span></big></big></big></span><span style="color: rgb(255, 0, 0);"><big><big><big><span style="color: rgb(51, 102, 255);"><small><small><small><br>
</small></small></small></span></big></big></big></span></div>
</body>
</html>
Essaye de mettre que mon player avec l'image :
Le Player :
<object data="http://player.wavestreamer.com/cgi-bin/player2.swf" name="scplayer" id="scplayer" type="application/x-shockwave-flash" width="340" height="55"><param value="false" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="#FFFFFF" name="bgcolor"><param value="transparent" name="wmode"><param value="skin=http://player.wavestreamer.com/cgi-bin/kleur/kleur.swf&title=Live Stream&type=sound&file=http://serveur3.wanastream.com/" name="flashvars"></object>
L'image :
<img style="width: 455px; height: 144px;" alt="" src="http://radio-mtr.org/player/player_1ban.png">
Le Player :
<object data="http://player.wavestreamer.com/cgi-bin/player2.swf" name="scplayer" id="scplayer" type="application/x-shockwave-flash" width="340" height="55"><param value="false" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="#FFFFFF" name="bgcolor"><param value="transparent" name="wmode"><param value="skin=http://player.wavestreamer.com/cgi-bin/kleur/kleur.swf&title=Live Stream&type=sound&file=http://serveur3.wanastream.com/" name="flashvars"></object>
L'image :
<img style="width: 455px; height: 144px;" alt="" src="http://radio-mtr.org/player/player_1ban.png">