Play mp3 with wmplib.dll

Hello,
I would like to play a mp3 file using the wmp library (wmplib). But it seems that the namespace is not in UiPath. How can I add it?
It is very easy to play wav files with System.Media.SoundPlayer so I am wondering if I Can do something similar with wmplib (to be called from “Invoke Code” activity)

WMPLib.WindowsMediaPlayer wmp = new WMPLib.WindowsMediaPlayer();
Error:
image

Have you tested to install the package WMPLib first?

I am so blind sometimes…
Thank you!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.