Questions tagged [wmplib]
91 questions
1
vote
1 answer
Retrieve song name from WMP using C#
Using C# i'm trying to retrieve the name of the song that is currently playing and display it on a listBox, so every song that plays, it's shown in the listbox.
Using System;
Using WMPLib;
public IWMPMedia currentMedia { get; set; }
private void…

aerojun
- 1,206
- 3
- 15
- 28
0
votes
1 answer
Windows Media Player UI not updating when sending commands with WMP SDK
I am using WMP SDK to control Windows Media Player. I first created a new project using Windows Media Player Plug-in Wizard and then added code which communicates with my application using a named pipe. When my application needs music to be muted,…

kolufild
- 712
- 1
- 9
- 20
0
votes
1 answer
C# WindowsMediaPlayer not executing on PlayStateChange change
I have a WMPLib.WindowsMediaPlayer instance that I create during application runtime. I want to hide a panel when the player playstate = "Stopped".
this is my code:
private void PlayFile(String url)
{
WMPLib.WindowsMediaPlayer Player = new…

anonymous
- 1
- 1
- 3
0
votes
1 answer
Media Player issue
i'm making a mediaplayer concerning the COM-library "WMPLib"
The program consisted of 1 form.
I make use of the WMPPlayState Enumerable, and has run smooth until now with a playlist and everything.
But now i decided to split the program into 2 forms…
user682487
0
votes
1 answer
No sound when playing DVD with AxWindowsMediaPlayer in VB
I am using the AxWMPLib AxWindowsMediaPlayer for DVD playback in VB.Net. I can play back the DVD with the installed Windows Media Player 12, but it doesn't have any sound when I play it back in my application. Any ideas?
Thanks

Michele
- 26
- 2
0
votes
1 answer
What must be installed for WMPLib to work with C#?
I currently have a project using WMPLib that I'm using to play multiple sounds at the same time. I am not using the ActiveX component. Everything is working great on my machine.
Before I send this over to the ops team to push out to all our users,…

Jonathan Beerhalter
- 7,229
- 16
- 68
- 78
0
votes
0 answers
WindowsMediaPlayer Won't play Next Audio After Hits PlayStateChange
this is my code
using System;
using WMPLib;
namespace MediaPlayerRepate {
public class AAA {
public static WindowsMediaPlayer wmp = new WindowsMediaPlayer();
public static string FileAddress1 =…

Milad Niknam
- 19
- 2
0
votes
0 answers
c# writing tag in audio file during playing. Is it possible?
I made a c# player with WMPLib and TagLib.
My files are listed in a listview, i can click right on a row and in a popup add some tag (Year, rating...).
When the file is not playing, the tags can be saved in the file ( wav format) but not when…

Stegau
- 5
- 2
0
votes
0 answers
Dispose Player WMPLib
I have multiple initialized WMPLib players in my code. I want to be able to kill some of them on command. I know how to make an event, but not how to dispose those Players since I just don't want them to exist…

Jack Rivera
- 5
- 2
0
votes
1 answer
C# Windows Form WMPLib cannot set currentposition
I think this should be working but I do not know why I try and do anything to set the current position or return the current position of a playing audio using the WMPLib inside of VS 2019 here is my code (sorry spaghetti) but basically I'm trying to…

Octo
- 26
- 4
0
votes
2 answers
C# - I want my player to delay 2 seconds before playing any file and repeat it in the loop(For)
Hi
I have written the following code but only once plays the audio file after it leaves the "dataGridView1_CellClick" event.
I want to know:
1) Can I be able to play sound within the event?
2) Can I repeat the broadcast without using …

shahram
- 3
- 3
0
votes
1 answer
How to stop playing an mp3 when a button is pressed?
I just "moved" from C++ and a Rad Studio to C# and a Visual Studio as i can see more tutorials and help is available on the internet for VC. But.. I have a problem.
I know how to play a music when a form is created (when program starts). But how can…

Mariusz
- 45
- 1
- 10
0
votes
1 answer
Playlist not playing
I made an application in C# using WinForms for desktop. I added the WMP library. If I want to play a single file (video or audio) I just do reproductor.URL = filePath and it plays automatically (being reproductor the WMP added in the form).
Now I…

David TG
- 41
- 4
0
votes
1 answer
How do I tell if a playlist is a music playlist in c#?
I've attached my code so far, my problem is all the playlists return "auto" or "wpl" for their type. (This is all using a WMPLib reference)
mediaplayer = new WindowsMediaPlayer();
// Init. Playlists
IWMPPlaylistCollection plcollection =…

Eric Fossum
- 2,395
- 4
- 26
- 50
0
votes
3 answers
Update a label in C# ere mp3 is played
I'm fiddling around with a small problem. In a C#-program, I've a label whose color initially is black. Whilst a MP3-file is played, the label gets a green color and after the end of the music, the color of the label should be black.
Now, the music…

lukew
- 431
- 2
- 5
- 15