I have a MP3 file in my Resources of Visual C#. I'm trying to find out if there is a way I can play this MP3 in a Windows Media Player control or with MCI, I'm not particular. I'm fairly new to C#. Thanks!
C# Play MP3 from Resources with MCI or WMP control?
6.2k Views Asked by Chris At
2
There are 2 best solutions below
0
Horacio N. Hdez.
On
this is a component for playing MP3 with C# on Windows Forms (it includes a demo app).
http://www.codeplex.com/keniamm/
hope this helps
Related Questions in RESOURCES
- Impala Resource Estimation for queries with Group by
- angular load more tweets onclick
- jar file input == null while java app is working
- Java: Accessing resources and the Law Of Demeter
- rails 4 article data template
- Overriding string resources from module/library that have translations in Android
- Service worker does not load mp3 files
- REST: not all representations immediately available
- Richfaces custom skinning images
- How to make Puppet track TCP ports to avoid conflicts?
- Which channel type uses the least amount of memory in Go?
- Make a Button resource and use it in multiple places
- Connecting Rails backend with Angular frontend
- creating unique onClick listener for each item in a carousel - Android / Java
- Date format angular $resource
Related Questions in MP3
- Convert youtube video to mp3 using Quick MP3 API
- mp3 to sample array NAudio
- How to fit the Ringdroid waveform in full width according to width of mobile screen
- How to join mp3 and wav files
- Unknown android app using my mp3 files without my permission
- Android audio too fast on some devices with MediaCodec and AudioTrack
- change .mp3 file format to .aac file format in android using java programming
- Crop MP3 to last N seconds
- Streaming songs from pc
- Splitting up a variable in bash
- MP3 songs do not play in media player
- how to make a button that share my res/raw/xxx.mp3 file
- Adding tags to mp3 with eyed3 results in no change
- How to make an MP3 file wait to play until after another MP3
- PHP - MP3 proxy for streaming
Related Questions in WMP
- DXVA2 Decoder MFT in Windows Media Player with multiple monitor displays
- repeat a video in WMP in c++
- Playing a video in new desktop created by createdesktop()
- WMP - Source object doesn't provide IPropertyNotifySink
- VB6 app reference WMP on a Windows 7 x64
- How can I embed windows media player without the visualizations
- Reading custom param values from ASX file in WMP control
- How to perform vba task after media player finishes
- AxWMPLib.AxWindowsMediaPlayer has presented weird behavior for WMV files
- Windows Media Player Crashes when I load an Image Windows 10
- record system sound (stereomix) to a file
- No sound when playing DVD with AxWindowsMediaPlayer in VB
- Headers sent by Windows Media Player
- Windows Media Player DSP Plugin Format Negotiation
- Access Windows Media Player buttons programmatically
Related Questions in MCI
- Detecting mouse clicks on video played with MCI commands
- What means value returned by "long = mciSendString()" in MCI
- How to reset after MCI Error #10: cannot load driver
- How to play mp4 videos using MCI device
- MCI Device shows Incorrect Media Length
- Using mciSendString to play an mp3 file and not working (and also not giving any error)
- C# Play MP3 from Resources with MCI or WMP control?
- playing a list of audio files in sequence
- C# trackbar mciSendString
- How to properly use mciSendString
- Audio Recorder - Select Recording Device - VB.Net
- Cause of data corruption in C++ vector?
- make media player
- (python) Different behaviour when called using threading.Timer
- mciSendString won't play an audio file if path is too long
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This page shows you how in just a few lines of code:
http://www.crowsprogramming.com/archives/58
Hope this helps.
Edit: Be sure to copy the .mp3 to your bin before you run it.
And here is the source code. Be sure to add a reference to wmp.dll in your project.