Class MusicPlayer
- Namespace
- RadioExt_Helper.custom_controls
- Assembly
- RadioExt-Helper.dll
A simple music player control that allows streaming audio from a URL in real time.
public sealed class MusicPlayer : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
MusicPlayer
- Implements
- Inherited Members
- Extension Methods
Constructors
MusicPlayer()
Initializes a new instance of the MusicPlayer class.
public MusicPlayer()
Properties
StreamUrl
Gets or sets the stream URL. When setting, if the stream is currently playing, it will stop the stream.
public string StreamUrl { get; set; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposing
bool- true if managed resources should be disposed; otherwise, false.
~MusicPlayer()
protected ~MusicPlayer()
OnPaintBackground(PaintEventArgs)
Overrides the OnPaintBackground method to prevent painting the background.
protected override void OnPaintBackground(PaintEventArgs e)
Parameters
e
PaintEventArgs- The paint event arguments.
OnParentBackColorChanged(EventArgs)
Overrides the OnParentBackColorChanged method to update the parent background.
protected override void OnParentBackColorChanged(EventArgs e)
Parameters
e
EventArgs- The event arguments.
StopStream()
Stops the audio stream.
public void StopStream()