|
|
@ -19,10 +19,10 @@ namespace QuickPlay
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Dictionary<string, IPlayable> Songs { get; }
|
|
|
|
Dictionary<string, IPlayable> Songs { get; }
|
|
|
|
string PlayerName { get; }
|
|
|
|
string PlayerName { get; }
|
|
|
|
void Play(string identifier);
|
|
|
|
Task Play(IPlayable playable);
|
|
|
|
float CurrentProgress { get; }
|
|
|
|
float CurrentProgress { get; }
|
|
|
|
PlayerStatus Status { get; }
|
|
|
|
PlayerStatus Status { get; }
|
|
|
|
void SetReasonableOptions(); //TODO
|
|
|
|
Task SetReasonableOptions();
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Attach to the real player.
|
|
|
|
/// Attach to the real player.
|
|
|
|
///
|
|
|
|
///
|
|
|
@ -43,11 +43,11 @@ namespace QuickPlay
|
|
|
|
public class PlayableMetadata
|
|
|
|
public class PlayableMetadata
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public TimeSpan usualPlayingTime;
|
|
|
|
public TimeSpan usualPlayingTime;
|
|
|
|
|
|
|
|
public string filePath;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public interface IPlayable
|
|
|
|
public interface IPlayable
|
|
|
|
{
|
|
|
|
{
|
|
|
|
void Play();
|
|
|
|
|
|
|
|
string Identifier { get; }
|
|
|
|
string Identifier { get; }
|
|
|
|
PlayableMetadata Metadata { get; }
|
|
|
|
PlayableMetadata Metadata { get; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|