Axwindowsmediaplayer Play/Pause In If Statement?
Mar 22, 2012
I am making a media player and I have a button where I want the text to change depending whether the media player is playing or paused. So far I have this:
If (AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsPlaying) Then Then
Button3.Text = "Pause"
ElseIf (AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsPaused) Then
Button3.Text = "Play"
End If
The problem is, is that i get an error under WMPLib.WMPPlayState on both lines. The error says 'WMPPlayState' is ambiguous in the namespace 'WMPLib'..
View 2 Replies
ADVERTISEMENT
Sep 1, 2011
I have a form using AxWindowsMediaPlayer to play a short video. How can I load another form and close this form when the video is finished?
View 6 Replies
Dec 2, 2009
I am using Windows Media Player component in vb2008 and I was wondering if there is a way to make it repeat? or if I can just make it play every 51 seconds (which is how long the song is) I tried Axwindowsmediaplayer1.play and .repeat, But neither of those are functions, So I'm not sure what I would have to use.
View 2 Replies
Feb 27, 2011
AxWindowsMediaPlayer auto play next song from playlist
View 1 Replies
Feb 27, 2010
I'm using AxWMPLib.AxWindowsMediaPlayer to play wmv files within my application. I provide an encrypted wmv file, which will not play on windows media player and within my application load it into an array, decrypt it and save it as a normal wmv file, which can then be played in the normal way by windows media player.However, I want to avoid saving the decrypted file to disk as this could then be copied by the user. Is there a way to play the media from within my application without first saving the file to disk? IE directly from the byte array?
View 1 Replies
Jan 10, 2012
I'm using VB 2010 Express with two instance of AxWindowsMediaPlayer in order to sync two videos (the videos are of the same thing but from two camera angles). Because the videos were started at slightly different times I've manually set the start time of each one using the following
AxWindowsMediaPlayer1.Ctlcontrols.currentPosition = 314.5093196
AxWindowsMediaPlayer2.Ctlcontrols.currentPosition = 237.1639908
The problem I'm having is that whilst the WMP clock initially displays the above times in each AxWindowsMediaPlayer, when I play the videos each starts a few seconds out from the stated currentPositions.
The video files are around 300MB each and when testing with smaller video files the problem does not seem to happen. I'm guessing the large file size is causing some delay and hence causing the problem.
View 1 Replies
Dec 2, 2009
this is my first post, and i thought the best people to help me out are you MSDN forum users.
View 2 Replies
Feb 6, 2010
I'm making my own media player using the WMP plugin and can't work out how to tell "AxWindowsMediaPlayer" to pause. If possible I would appreciate it if I could know how to fast forward as well.
View 13 Replies
Aug 3, 2009
I've been wondering how one could create a button which display "play" when it's not pressed. And then shows "pause" once it's pressed. And visa versa when it's pressed again.I had a similar problem when trying to create an expand panel button, but that was easy because I could just set a variable to true or false if PanelCollapsed was true. But in this case I couldn't find any property in a button that I could query.
If isPlay = True Then
If isPaused = False Then
btnPlay.Image = Image.FromFile("iconPause.png")[code].....
View 6 Replies
Mar 18, 2011
I'm playing videos in a form with an embedded media player, I want to play one, and later another one, how I can programm a pause for the first video to play, and later to play a second one. system.thread seems is not the solution for me.
View 4 Replies
Feb 14, 2012
I am new to stackoverflow and the programming world. I have a basic program i'm making that will play a song in the background.
I already have that part working, it auto starts a launch of program.
However, I would like to have a button that pauses, then resumes the audio.
(I am trying to avoid making it a media player and using the media player control) Song was add as a resource.
My.Computer.Audio.Stop (works to stop it.)
But how can I implement the pause,resume? by adding a boolean or something?
(I would like pause and resume feature to be within the same button)
View 1 Replies
Jul 23, 2009
how to play/pause mp3 anad wav sound in visual basic 2008?
View 1 Replies
Apr 20, 2011
Ive come to do a question about windows media player look Im trying to make a program which if you make a certain input which he is going to request to you then I want to play that video but I have no idea how to use windows media player controls to manipulate that video. [URL]..
View 7 Replies
Apr 18, 2010
I have a start and stop button on a form and would like a pause and restart button aswell.
I can start my audio file (WAV file in the C-Drive) fine with;
My.Computer.Audio.Play("C:Bleep_TestBleep_Test.wav", AudioPlayMode.Background)
Thus allowing other functions to be carried out.I can stop my audio with;
My.Computer.Audio.Stop()
But i would like to be able to pause and restart the audio?There are timers and getkeystates envolved with this form. The timers I can pause and restart, the getkeystates are a function called in conjunction with the timers as a case statement, (all this is working).how to pause and restart the audio, bearing in mind the loaction and the other features of the form? (I only wish i was a clever as you guys/girls out there to return the help rather than leaching your knowledge continously)
View 5 Replies
Nov 29, 2007
I will control it with a Microsoft MCE eHome IR-Remote Control. I can Capture all Buttons on the KeyEvents but the important Keys whant work ( Play, Pause, Forward, Backward ) Can anyone tell me how i can Capture this keys ?[code]...
View 7 Replies
Apr 15, 2012
I am having a problem and that is I have buttons to read text to speech like play pause and stop I have created 4 buttons Play,Pause,Stop,Resume but now I dont want the Resume button, instead when I click on the pause button it should pause the speech and later when I click the same button again I need the speech to be resumed this is what I wrote?
Public SAPI = CreateObject("SAPI.spvoice")
Private Sub startSpeaking_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles startSpeaking.Click
SAPI.speak(RichTextBox1.Text, 3)
[code]....
View 4 Replies
Nov 6, 2009
I am actually designing a simple media player. Here are all the buttons I have
1)play
2)pause
3)stop
4)next track
5)previous track
6)fast forward
7)fast rewind
8)repeat playlist
Public Class Form1
Dim myarray(100) As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WMP.uiMode = "NONE"
[Code] .....
In all of these only play, stop and pause work everything else isn't working. tried lot of codes and even forms nothing works ..
View 7 Replies
Mar 8, 2010
1) Why the pause button and also the pause command does not exist in VB 2010 Express?
2) I have some solutions under 2010. In 2 or 3, while debugging, I can change instructions without restarting the application. In others, I cannot change anything (Is like readonly), Looking in 'My Applications', Tab 'Debug', Option 'Configuration' I can choose several Options. In the applications I can debug, the default is 'Active (Debug)'; in the others is 'Active (Release)'. If I change the options, the word 'Active' remains attached to the original option.
View 5 Replies
Jul 21, 2011
I have an app that I'm debugging and I need to pause it by clicking on a "pause" button in the development environment. I don't want to stop it programmatically, just manually to check what it is doing. I know this should be simple but I can't find a pause button anywhere on the toolbar.
View 4 Replies
May 8, 2010
I want to the song can auto start one by one when import the song to list box. But it doesn't work that I need to select one by one. Besides, the program can repeat all the song or individual song when checkbox enable.
If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
If playlistbox.SelectedIndex < playlistbox.Items.Count - 1 Then
[code].....
View 4 Replies
Sep 16, 2010
Im trying to open media player (full screen) and play a movie. When i create the file path like so: Dim MoviePathVTS As String = String.Concat("""" + tempMoviePath, " \VIDEO_TS\VTS_01_1.VOB" + """")
It wont play the file but if i do it like this: Dim video1 = """F:\Movies\DvD\Angels and Deamons\VIDEO_TS\VTS_01_1.VOB"""
It plays fine? the file paths are the same including the extra "" but it just refuses to play. I need the top one because i have many movies in a treeview.
Heres my code
Private Sub watchNow_Click(ByVal sender As Object, ByVal e As EventArgs)
'get the position of the selected node
Dim i = movieTreeView.SelectedNode.Index
[CODE]...
View 2 Replies
Feb 9, 2010
How can you make a play button play/stop toggle? Currently my button plays a file in WMP but when I click it again, it just restarts the file. I would like it to toggle on and off, play and stop, not play and pause.
View 8 Replies
Jan 27, 2011
I am trying to make a start and pause button (and hence continue) to start, pause, and continue my program. The start button works but the pause button does not. Can someone look at my code and see what the pause button needs to do to pause the program? I am using VB 2005. Here is my code.
[Code]...
View 10 Replies
Aug 29, 2009
On the subject of the AxWindowsMediaPlayer.URL property, MSDN warns:Quote:Originally Posted by MSDN
View 3 Replies
May 2, 2012
I am using AxWindowsMediaPlayer on VB.NET to preview MP3 files from the web so that the user can choose to download it if he likes it. It works. I just put a link in the URL property and after a while it begins playing. ... after a while, of course. Because it has to download the file first. Perhaps I realized that because of my slow connection XD. But that made me think: how can I tell if the player is currently downloading a file? So that I can put a label saying "Please wait, preparing file..." or something.
View 1 Replies
Aug 7, 2011
Is there any way to disable the keyboard shortcuts of AxWindowsMediaPlayer or even handle the KeyDownEvent of that control ?
View 1 Replies
Mar 12, 2011
How do I use Wait to complete on AxWindowsMediaPlayer. I wish the video to play first before loading another form.
View 5 Replies
Jul 31, 2010
i make a simple winform application with AxWindowsMediaPlayer and timer.
My objective is about to make the application play the clip with interval (that's why i use timer)
When AxWindowsMediaPlayer finish playing the first clip, everything's okay. But when it begin playing the next clip. It CAN'T HAVE FULLSCREEN MODE. I have to double click the control manually to have it fullscreen. I use vb 2005 in 7 ultimate.
Here is my code
Private Sub AxWindowsMediaPlayer_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles AxWindowsMediaPlayer.PlayStateChange
[Code]......
View 6 Replies
Aug 11, 2010
I have the windows media player embedded in a windows form, I have tried to set the uiMode to 'None' but it will not work, I have tried doing it using the properties window in the development screen which accepts 'None' but when the program is run it shows the controls on the player.I have also tried placing the action into code: AxWindowsMediaPlayer1.uiMode = none This generates an error stating the 'None' is not declared.
View 6 Replies
Aug 20, 2010
this is my Dim files() As IO.FileInfo = New IO.DirectoryInfo(My.Application.Info.DirectoryPath & "downloaded songs").GetFiles("*.wmv") Listbox1.Items.AddRange(files) but when i load - nothing happens
View 6 Replies