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)
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]..
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)
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 ..
Is there any way i can pause a file download in my vb program?? I have tried both the http method and the my.computer.net method with no luck. I have also tried pausing the background worker by this method: [URL] But even if the bgworker is paused the download goes on.....
But what im trying to do is make a function where I can play the audio file in the programs resources with a string variable being passed to it representing the resource objects filename.
this is so users can type in a audio files name and pull it from the program's resources dynamically VS a big case i would keep having to expand ...
heres my code
[Code]....
but that isnt working for some reason ... keeps throwing "objects reference not set to instant of an object" on the "Return ..." line
how to play video or audio in a vb.net application but have come up with not a lot.
I want to create a program that accessing a web server (no problem on that) and will pick up audio and video that is stored on that server.
Or, maybe do a live broadcast where I can play my guitar and sing a song. (Promise if I get this done through here I will give you a live performance) on that note I am sure you will all hold back.
This is a little open and wide, but what I would like to know via a webserver is this possible
how can i play the audio after the previous audio play is finish by using directx.
assume i have audio1.wav and audio2.wav.
i play audio1.wav by this code.
audio1 = audio.fromfile("D:audio1.wav", false)
how can i play audio2.wav after audio1.wav is finish? without use any button or signal. just depends on when the audio1.wav is finish, then audio2.wav will play automatically.
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.
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'..
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].....
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.
I have put some wav audio on the resources. in my form, i have a label. i named the label as s1f1 and s1f2. now i want to play the audio according to the label click. if it is click then the audio play. i dont to put a line of code in every label. assuming that there is a lot of label, then it will be a waste of time. so how can i play the audio, by only write a several line code but for all of the labels.
I'm new to VB and have over the last week or two been looking at the different ways to play audio (mp3's). Windows Media Player, Microsoft Multimedia Control, Bass.dll, SndPlaySound, MCI SendString and DirectX (including audiovideoplayback, direct3d and directsound.)I origninally decided to use windows mediaplayer, mainly because it seemed the logical choice but quickly found out i couldn't get it to work properly. So i installed the Directx SDK but now i'm completely overwhelmed about what to use and why.
I'm looking at creating an mp3 player to keep myself busy. However I'm trying everything I can to avoid using the windows media player COM component. It makes it a little too easyWhile looking around I stumbled upon the DirectX.AudioVideoPlayback namespace and I was wondering if this would be sufficient. Would I be able to create an equalizer and other more advanced things for my application?
I am looking for a code to stop all backgroundworkers in form 1 ( or pause them )the names of the bgworkers are all very different so not bg1 bg2 bg3 etc.
In my program I have one line of code that worked one day, and not the next. I didn't change anything in this part of the code, but sure enough, going back a day, it works.
Now, this is the exact same line of code in the copy that works, and the copy that doesn't. The line is identical, so there must be a problem with my actual resources or something.I know this line of code is getting called... I can put a breakpoint on it and put debug.print statements before and after it.Now, in my resources, tada is listed in there, and the file seems to be there appropriately. In fact, if I double click it in the tree, it plays, and I can play it on the resources screen as well. I even tried adding a different wav file, and no luck!
Putting a try/catch block around it shows that no errors are thrown.I've tried it on 4 different computers with different configurations. Same problem.how to debug this?
Assuming that i have 22 labels. each of them is named s1f01, s1f02, s1f03 and so on..my question is how can i play the audio wav that have the same name with the labels name when the label is click. for e.g. i have put s1f01 wav audio file to my resources. so i want to play it when the label that have the name s1f01 is click.[code]...