 |
|
 |
:-OI would like to know if there is a possibility to paly mp3. or wma file?
Does anybody can help me?
|
|
|
|
 |
|
 |
Yes, there are a few ways you can play mp3/wma files.
You can use a 3rd party library. Example: the Bass Sound System or FMod.
You can use the Windows Media Player Component.
Or the method I recommend, is to use the MCI Command Interface, which is supported on Win9x all the way up to the latest Windows XP versions and such. You do not have to really worry about compatibility or worry about Distributing any files with your applications going this route.
I have pre-made librarys that will do what you want and more, and is ready to go. Or you can check out the tutorial at my website that will show you how to use the mciSendString Command Interface yourself to make a full-featured media application.
It is completely up to you. Hope this helps
Jason
|
|
|
|
 |
|
 |
Hi,
I m using .net 2003. I don’t fine anything like .position with control AxWindowsMediaPlayer. I want to stop playing file at specific time too. I mean one can enter starting and terminating time through edit box and control must repetitively play file in between that time only.
If any one has a solution without .position then kindly post the same.
Regards,
-Parth
-- modified at 13:37 Thursday 22nd June, 2006
|
|
|
|
 |
|
 |
in code
AxMediaPlayer1.FileName="c:\temp\test.avi"
AxMediaPlayer1.Play
working properly, but when I try to play .wmv
files
AxMediaPlayer1.FileName="c:\temp\test.wmv"
AxMediaPlayer1.Play
i got error in line axmediaplayer1.play
files test.avi and test.wmv exist adn they work properly in any player
Why?
I think that this error is same one as if I dont have file or file is wrong.
"An unhandled exeption of type
System.runtime.interoptservices.COMExeption
occured in axiteropt.mediaplayer.dll
Additional information: Unspecified error"
File test.wmv exist and work in Windows media player when i start his directly
Thanks in advance
|
|
|
|
 |
|
 |
Try this:
AxMediaPlayer1.position= 'number of frame'
AxMediaplayer1.play
|
|
|
|
 |
|
 |
I understand that the API presented here may offer some additional functionality. But, since folks are wanting to know how to PLAY a *.Wav file in VB.NET, what's wrong with the following code snippet?
My.Computer.Audio.Play("ringingout.wav", AudioPlayMode.Background)
Would that not be the .NET way to do it?
I hope this helps others, that simply want to play a sound.
DBDoctor - Dan.
|
|
|
|
 |
|
 |
That feature was added to 2.0 version of the .NET Framework.
DotNetFramework 1.0/1.1 does NOT have those capabilities. Only version 2.0 has it.
Jason
|
|
|
|
 |
|
 |
My application has a module in which we want to be able to give the user an option to add a voice tag to their module. Any idea what classes I could use to do that ? I tried a bunch of the stuff available online but nothing really worked ?
-Parik.
http://parik.in
|
|
|
|
 |
|
 |
Hi, one of the easier ways to record is to use the MCI Command Interface. It is 'somewhat' flexible and gives you the ability to specify some of the quality settings.
I have a full tutorial on how to Learn to program the mciSendString Command Interface in your applications to be able to perform most media based functionality.
My site link is in my signature at the bottom of this post.
I do plan on releasing a new version of my csMusicLibrary Library for Visual Basic 2005 in the near future. It will have basic recording capabilities already incorporated in the library. The class is almost complete, but I have to finish debugging plus some tweaking here and there.
But you may not want to wait until the new library is released. So I suggest you go check out the tutorial I made.
Hope this helps
Jason
|
|
|
|
 |
|
 |
I'm pretty new to VB (started in Jan) but I would really like to add this to one of my projects. I copied and pasted the code but I keep getting
PlayWaveFile is not a member of MAD.Sound (MAD is the title of the project)
What am I doing wrong?
|
|
|
|
 |
|
 |
Don't just copy and paste the code from above as it is incomplete. Download the entire class file and add that to your application.
|
|
|
|
 |
|
 |
This is a small yet powerful article with some solid code. Thanks
|
|
|
|
 |
|
 |
you can play WAV files in VB.net 2005 (.net framework 2.0)(Express Beta2)
use the my.computer.audio object
you can play system sounds and WAVS embeded into your projects resources
Examples
My.Computer.Audio.PlaySystemSound (System.Media.SystemSounds.Exclamation)
My.Computer.Audio.Play(My.Resources.doorbell, AudioPlayMode.Background)
|
|
|
|
 |
|
 |
With .Net Framework 2.0 you could also use: Dim sound As New Microsoft.VisualBasic.Devices.Audio() sound.PlaySystemSound(SystemSounds.Exclamation) It is extra code but I thought it was something cool to know. Heh Heh
|
|
|
|
 |
|
 |
Hi, I just wanted to say "THANK YOU!", your program is awesome and I really appreciate the help. I am very new to programming in VB.net, our class just starting learning it this last January (2006). It has been a little difficult transitioning from vb6, but so far so good. Thanks so much for your help with playing wave files. I am so new to using additional classes that at first I didn't realize I had to declare the class in general declarations of the form I was using... but it works great now...
Have a Great day!!
|
|
|
|
 |
|
 |
I've looked everywhere, but cannot find out how to do this same thing in VC++ .net!
Can anyone help? Or has MS given up on VC++ altogether?
Thanks,
|
|
|
|
 |
|
|
 |
|
 |
Oops!
#include
sndPlaySound
|
|
|
|
 |
|
 |
I have a wave file and i have to find from my code, the duration of the file in Asp.net
Devang
|
|
|
|
 |
|
 |
I think that there is a control in .net already to play .wav files or maybe I'm thinking of .net 2.0, anyways, once you got the wav try making an mp3 player.
IM PROUD TO BE A GMAIL;
|
|
|
|
 |
|
 |
im proud to
|
|
|
|
 |
|
 |
There are no sound-related classes in the .Net Framework 1.0 or 1.1. I've never used 2.0, so I can't tell you about that.
|
|
|
|
 |
|
 |
You can use the Windows Media Player control if you install the Windows Media Player SDK.
Mitch
My sig:
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
|
|
|
|
 |