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:
@ -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();
|
@ -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)
|
Reference in New Issue
Block a user