mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-01-15 14:42:46 +01:00
19 lines
468 B
C#
19 lines
468 B
C#
#nullable enable
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
using WMPLib;
|
|
|
|
namespace TweetDuck.Video.Controls {
|
|
[DesignTimeVisible(true)]
|
|
[Clsid("{6bf52a52-394a-11d3-b153-00c04f79faa6}")]
|
|
sealed class ControlWMP : AxHost {
|
|
public WindowsMediaPlayer? Ocx { get; private set; }
|
|
|
|
public ControlWMP() : base("6bf52a52-394a-11d3-b153-00c04f79faa6") {}
|
|
|
|
protected override void AttachInterfaces() {
|
|
Ocx = (WindowsMediaPlayer) GetOcx();
|
|
}
|
|
}
|
|
}
|