Media Player Help * Locked
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts
Page 1 of 1
Hi, How to make Play Next, Play Previous, Shuffle, And audio mute code
Please help me clapper;
This problem has been solved by CodeNStuff wahooo;
Please help me clapper;
This problem has been solved by CodeNStuff wahooo;
Last edited by tvs praveen on Wed Feb 10, 2010 8:21 pm, edited 6 times in total.
Hello,
You could use the followin to do what you need.
To repeat media:
Stop repeat:
Happy coding cooll;
You could use the followin to do what you need.
To repeat media:
Code: Select all
AxWindowsMediaPlayer1.settings.setMode("loop", True)
Stop repeat:
Code: Select all
Play next media:
AxWindowsMediaPlayer1.settings.setMode("loop", False)
Code: Select all
To "shuffle" media in a listbox I guess you could use this to select a random item from it:
AxWindowsMediaPlayer1.Ctlcontrols.next()
Code: Select all
You will need to add some of your own code to make it play a random track automatically when the player stops playing or something like that. Im not sure what you mean by preview :?Dim TrackRandom As Integer
TrackRandom = Int((ListBox1.Items.Count) * Rnd())
AxWindowsMediaPlayer1.URL = (ListBox1.Items(TrackRandom))
Happy coding cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
I think he means a little snippet of the song, so they know before they play or something? But in a snippit you could Like Put media play and also start a timer with intervel of 5000 (5 seconds) and in the timer put the code stop the audio and stop the timer, i will just put that into code now 

Here is 2 simpel codes.
Add a track bar, set value to 5.
Code;
AxWindowsMediaPlayer1.settings.Volume = Trackbar1.Value
Add CheckBox, set Checked to false.
Code;
If Checkbox1.checked = true then
AxWindowsMediaPlayer1.settings.mute
else
'Do Nothing
End if
regards.
Add a track bar, set value to 5.
Code;
AxWindowsMediaPlayer1.settings.Volume = Trackbar1.Value
Add CheckBox, set Checked to false.
Code;
If Checkbox1.checked = true then
AxWindowsMediaPlayer1.settings.mute
else
'Do Nothing
End if
regards.
regards.
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023