kev900001
Messages postés119Date d'inscriptionmercredi 7 juillet 2004StatutMembreDernière intervention 9 avril 2008
-
25 août 2004 à 16:12
kev900001
Messages postés119Date d'inscriptionmercredi 7 juillet 2004StatutMembreDernière intervention 9 avril 2008
-
25 août 2004 à 20:05
je n'arrive pas a trouver pour enchainer les musiques les une apres les autres avec le control media player en me servant
d'un control dir list et file list pour la recherche des musiques
par exemple tu fais un timer toutes les secondes et tu mets
if mediaplayer1.state <> 7 then
if file1.listindex < file1.listcount -1 then
file1.listindex = file1.listindex + 1
else
file1.listindex = 0
end if
mediaplayer1.filename = file1.path & "" & file1.filename
end if
if mediaplayer1.state <> 7 then
if file1.listindex < file1.listcount -1 then
file1.listindex = file1.listindex + 1
else
file1.listindex = 0
end if
mediaplayer1.filename = file1.path & "" & file1.filename
end if
pour la version plus récente c'est:
if left(mediaplayer1.staus, 7) <> "Lecture" then
if file1.listindex < file1.listcount -1 then
file1.listindex = file1.listindex + 1
else
file1.listindex = 0
end if
mediaplayer1.URL = file1.path & "" & file1.filename
mediaplayer1.controls.play
end if
Tu m'excuseras je peux pas tester je suis dans un cyber et pas de VB ici
if left(mediaplayer1.status, 7) <> "Lecture" then
if file1.listindex < file1.listcount -1 then
file1.listindex = file1.listindex + 1
else
file1.listindex = 0
end if
mediaplayer1.URL = file1.path & "" & file1.filename
mediaplayer1.controls.play
end if