Questions tagged [wmplib]

91 questions
0
votes
1 answer

Getting width and height from media player control

I have a C# application that displays videos using the Windows Media Player control (WMPLib) in Winforms. I can display the videos correctly, but I have to manually insert the width and height of the parent control so the video doesn't look…
pteixeira
  • 1,617
  • 3
  • 24
  • 40
0
votes
1 answer

BackgroundWorker process for Windows Media Player

I need some help setting up a BackgroundWorker process for a Windows Media Player audio. I need to run the audio (WMP) directly from the BackgroundWorker, not from the main Thread, and that background process needs to remain opened until the end of…
AJ152
  • 671
  • 2
  • 12
  • 28
0
votes
0 answers

cannot add a reference to wmp.dll inc# visual 2010

I use WMPlib in my program in C# (Visual 2010). I cannot make a reference to wpm.dll. There is no windows media player or smth like this in COM, when I browse to wmp.dll, there is an error "cannot add a reference to ...wmp.dll. please ....." After…
summer
  • 1
0
votes
1 answer

Wav files in Windows Media Player queued items not playing correctly at times with C#

I am doing an application which shows tokens on screen like A0001 Counter 1. Each of the tokens "A","0","0","0","0" "Counter" "1" has wav files stored in a folder ENGLISH in my project as A.wav, 0.wav,0.wav etc. Now I'm using wmplib.dll and running…
0
votes
0 answers

How to listen to mp3 file like synchronous method?

I'm creating a C# application, in which I need to reproduce a MP3 file. As soon as the file has been completely reproduced (not before) I want execute other methods. The problem is that, since surely a thread is used for reproduce sounds, all the…
bircastri
  • 153
  • 4
  • 13
0
votes
2 answers

How to extract file path from an audio file stored in project resource folder in C#

I am having a problem extracting the file directory of an audio file which is stored in my project resource folder. In my project, I have a mysounds.resx file in which I added a file (abc.mp3). WMPLib.WindowsMediaPlayer wplayer = new…
Tanveer Ahmed
  • 35
  • 1
  • 8
0
votes
2 answers

C# Get current song source url from Windows Media Player

i am trying to create a small application that notifies the user of the path of the current song being played on Windows Media Player. So i have searched around and came across a good code: WMPLib.WindowsMediaPlayer player = new…
BOSS
  • 1,828
  • 11
  • 34
  • 60
0
votes
0 answers

Create WMPLib.IWMPFolderMonitorServices object

I try to create an object of WMPLib.IWMPFolderMonitorServices in C# to manage folders contain music. MSDN say "Retrieve a pointer to IWMPFolderMonitorServices by calling QueryInterface through IWMPPlayer. and Retrieve a pointer to an …
Longit644
  • 43
  • 1
  • 9
0
votes
1 answer

Playback of a streamed wave is cut while played in WMP

We're using WMPLib as an embedded player in our C# application but this issue occurs also in Windows Media Player. Our server streams audio and has streaming with offset enabled. Given URL: http://ourserver.com/playback?id=400 which returns an…
gawi
  • 3
  • 3
0
votes
1 answer

OutOfMemoryException handling and Windows Media Player SDK

How it must work: WindowsMediaPlayer windowsMediaPlayer = new WindowsMediaPlayer(); IWMPMediaCollection collection = windowsMediaPlayer.mediaCollection; IWMPMedia newMedia = collection.add(path); //causes OutOfMemoryException after some thousands …
0
votes
1 answer

WMP sounds are not working on other Computers

My project is to build a simple game and for now I only made the Main Menu Form1 with 5 buttons. The buttons have a MouseClick and MouseEnter on them, and I have a background music track using a WMP method (using WMPLib and axWMPLib). My problem is…
0
votes
1 answer

How can I give the playing song path of any player?

How can I give the playing song path of any player? using System; using System.Windows.Forms; using WMPLib; namespace EliteMusic { public partial class Form1 : Form { public Form1() { InitializeComponent(); …
Ayub
  • 2,345
  • 27
  • 29
0
votes
1 answer

WMP library in C# - playlist from a list

I just found out about the Windows Media Player library for C#, since I am making a stupid little app for my friend I thought that I would add it in (since he loves music). string ply = "Playlist"; WMPLib.IWMPPlaylist pls; …
Lucas Stanesa
  • 71
  • 2
  • 7
0
votes
1 answer

Issue controlling a Windows Media Player instance through IronPython

Using the .NET Windows Media Player library, I have been able to obtain and alter various file properties (like user rating) for Windows Media Player programmatically. I wish to use the same library to control (play, stop, next, etc.) a Windows…
covertCoder
  • 446
  • 3
  • 10
-1
votes
1 answer

WMP COM fails to operate under subsequent user impersonations

I have a windows service that needs to access the Windows Media Player libraries of all currently logged on users. Since its a service, I must impersonate the logged on user so that calls to the WMP COM will return information in the impersonated…
BigMacAttack
  • 4,479
  • 3
  • 30
  • 39
1 2 3 4 5
6