Interface IPlayer
- Namespace
- Alis.Core.Audio.Interfaces
- Assembly
- Alis.dll
The player interface
public interface IPlayerProperties
Paused
Gets the value of the paused
bool Paused { get; }Property Value
Playing
Gets the value of the playing
bool Playing { get; }Property Value
Methods
Pause()
Pauses this instance
Task Pause()Returns
Play(string)
Plays the file name
Task Play(string fileName)Parameters
fileNamestring-
The file name
Returns
Resume()
Resumes this instance
Task Resume()Returns
SetVolume(byte)
Sets the volume using the specified percent
Task SetVolume(byte percent)Parameters
percentbyte-
The percent
Returns
Stop()
Stops this instance
Task Stop()Returns
PlaybackFinished
playback
event EventHandler PlaybackFinished