Questions tagged [wmplib]

91 questions
2
votes
0 answers

Why does IWMPMedia not contain any useful attributes in some cases?

I have an m3u playlist and would like to obtain tag information for every audio file in the playlist. Using WMPLib (Windows Media Player COM object) gets me most of the way there, but I can never get tag info for the first item in the playlist.…
Alnoor
  • 72
  • 8
2
votes
1 answer

Playing videos in a C# desktop application

I have a C# desktop application that needs to play video files. I am currently using the WMPlib, along with Interop.WMPLib and AxInterop.WMPLib. Using this I can play WMV videos, but I need to be able to play more formats, such as MKV, MP4, AVI, OGV…
pteixeira
  • 1,617
  • 3
  • 24
  • 40
2
votes
2 answers

C# WMPLib Duration of a mp3

Im using WMPLib to make an easy mp3player in C#. Im almost done but theres one more thing I want to do. I Would like to how far gone the song is and also, how much is left of the song. using for example the progressbar. thanks Adam
2
votes
2 answers

Reference to wmp.dll (\windows\system32\wmp.dll)

Can I use a reference to wmpLib.ddl / wmp.dll (\windows\system32\wmp.dll) in a commercial application? I am using Visual Studio 2008 Express edition. I have to deliver that DLL.
san
  • 21
  • 1
  • 1
  • 2
2
votes
2 answers

WMPLib often stops playing

I play mp3s and m4as with the following method: private void playmp3(string path) { WMPLib.WindowsMediaPlayer a = new WMPLib.WindowsMediaPlayer(); a.URL = path; a.controls.play(); } Usually when I play them, they…
Wilson
  • 8,570
  • 20
  • 66
  • 101
2
votes
2 answers

Calling WMPLib.mediaCollection methods from ASP.NET on IIS return empty lists

I am trying to access a Windows Media Player library from ASP.NET. The following code: WMPLib.WindowsMediaPlayer mplayer = new WMPLib.WindowsMediaPlayer(); WMPLib.IWMPStringCollection list =…
Nick Williamson
  • 205
  • 3
  • 11
1
vote
1 answer

How should I use WMPEqualizerSettingsCtrlClass in C#?

I use the following code: WMPEqualizerSettingsCtrl eq = null; eq.enhancedAudio = true; But I get an error: Object reference not set to an instance of an object.
Tallal Kazmi
  • 361
  • 2
  • 13
1
vote
0 answers

How can I play a song on a loop using WMPLib ? (C# Windows Forms)

I'm developing a Windows Forms app in C# using VS 2019. I'm using the WMPLib, I created a WindowsMediaPlayer: WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer(); player.URL = "song.wav"; …
Dev
  • 51
  • 3
1
vote
2 answers

Pausing and resuming mp3 with WMPLib and C#

I'm working on a simple mp3 player project with C# and the WMPLib library. The idea is to make it controllable with a PIC component, to control media playing in the PC from "anywhere" in my house (yes, this is a college project). The problem: I…
Léo
  • 88
  • 1
  • 9
1
vote
0 answers

Have some trouble with pausing and resuming the music via importing WMPLib

I already tried the way using currentPosition and yeah, i know what type of value does it return... I wanted to use that return value as the position of music and when i resume the music, then the music continues at that position. But how do i make…
Astronaut
  • 11
  • 1
1
vote
1 answer

C# Media Player PlayStateChange not firing

Trying to get a WMPLib to go to the next track when the current one ends. My code is below, but it never fires. I've tried with WMPLib.WMPPlayState.wmppsStopped as well as WMPLib.WMPPlayState.wmppsMediaEnded and it never fires. Anyone see what I'm…
1
vote
0 answers

Wmplib.WindowsMediaPlayer, pause() function doesn't work on c#

I am currently working with WmpLib.WindowsMediaPlayer () but when I click on play after clicking pause the music starts again at the beginning instead of continuing and I do not understand why. Could someone explain to me? private void…
gggkg
  • 3
  • 6
1
vote
2 answers

MP3 played in separate thread

One problem was solved, another followed: In a C#-program I use following method to set a labels color to green, then playing a mp3-file and finally setting the color back to black. The problem is that the sound seems to be played in an extra…
lukew
  • 431
  • 2
  • 5
  • 15
1
vote
1 answer

Windows Media Player in ASP.NET C#

First attempt at this: I created the Windows Media Player programmatically by adding the WMPLib as a reference in my project. I am trying to play a playlist using Windows Media Player in a ASP.Net web page (Visual Studio 2015). I cannot use the…
BabyDoll
  • 263
  • 1
  • 4
  • 16
1
vote
0 answers

AxWMPLib - Played video playing state get flipped after exiting from full screen

I am trying to create a video player using AxWMPLib. But I am getting a problem when I am exiting full screen from media player using double click on media player. If user double clicks on windows media player in full screen: If then the video was…
Abrar Jahin
  • 13,970
  • 24
  • 112
  • 161