See commit description for changes

Added PageContainer to dynamically load pages within the main content. Added player component to control music playback(Half functional). Added playback changed event not the player service.
This commit is contained in:
watsonb8
2019-05-24 10:27:19 -04:00
parent 2dbe9cead9
commit 93be6dc100
26 changed files with 357 additions and 86 deletions

View File

@ -3,12 +3,12 @@ using System.IO;
namespace Aurora.Backend.Models
{
public abstract class BaseSong
public abstract class BaseMedia
{
private bool _loaded;
private Stream _stream;
public BaseSong()
public BaseMedia()
{
_loaded = false;
Id = Guid.NewGuid().ToString();

View File

@ -3,9 +3,9 @@ using System.IO;
namespace Aurora.Backend.Models
{
public class LocalSong : BaseSong
public class LocalAudio : BaseMedia
{
public LocalSong(FileInfo fileInfo)
public LocalAudio(FileInfo fileInfo)
{
File = fileInfo;
}
@ -15,6 +15,9 @@ namespace Aurora.Backend.Models
#endregion Properties
/// <summary>
/// Override load method.
/// </summary>
public override void Load()
{
if (this.DataStream != null)
@ -26,6 +29,9 @@ namespace Aurora.Backend.Models
base.Load();
}
/// <summary>
/// Override unload method
/// </summary>
public override void Unload()
{
if (this.DataStream != null)