mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 10:51:52 -05:00
fixes, update FMP Core
This commit is contained in:
parent
af2d85b005
commit
fb71124289
4 changed files with 8 additions and 9 deletions
Binary file not shown.
|
@ -48,7 +48,7 @@ namespace FRESHMusicPlayer.Handlers.Integrations
|
|||
updater.MusicProperties.AlbumTitle = track.Album;
|
||||
updater.MusicProperties.TrackNumber = (uint)track.TrackNumber;
|
||||
updater.MusicProperties.AlbumTrackCount = (uint)track.TrackTotal;
|
||||
updater.Thumbnail = Windows.Storage.Streams.RandomAccessStreamReference.CreateFromStream(System.IO.WindowsRuntimeStreamExtensions.AsRandomAccessStream(new MemoryStream(track.CoverArt)));
|
||||
//updater.Thumbnail = Windows.Storage.Streams.RandomAccessStreamReference.CreateFromStream(System.IO.WindowsRuntimeStreamExtensions.AsRandomAccessStream(new MemoryStream(track.CoverArt)));
|
||||
updater.MusicProperties.Title = track.Title;
|
||||
updater.Update();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using ATL;
|
||||
using FRESHMusicPlayer.Backends;
|
||||
using FRESHMusicPlayer.Backends;
|
||||
using FRESHMusicPlayer.Forms;
|
||||
using FRESHMusicPlayer.Forms.Playlists;
|
||||
using FRESHMusicPlayer.Forms.TagEditor;
|
||||
|
@ -21,7 +20,6 @@ using System.Threading.Tasks;
|
|||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
@ -60,7 +58,7 @@ namespace FRESHMusicPlayer
|
|||
public GUILibrary Library;
|
||||
public IMetadataProvider CurrentTrack;
|
||||
|
||||
public const string WindowName = "FRESHMusicPlayer [Ver. 11 Development; Not stable!]";
|
||||
public const string WindowName = "FRESHMusicPlayer [Blueprint 11 b.8.24.2021; Not stable!]";
|
||||
|
||||
public PlaytimeTrackingHandler TrackingHandler;
|
||||
public bool PauseAfterCurrentTrack = false;
|
||||
|
@ -105,6 +103,7 @@ namespace FRESHMusicPlayer
|
|||
{
|
||||
File.WriteAllLines(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FRESHMusicPlayer", "instance"), initialFile ?? Array.Empty<string>());
|
||||
Application.Current.Shutdown();
|
||||
return; // stop initial files from trying to load
|
||||
}
|
||||
|
||||
watcher.Filter = "instance";
|
||||
|
@ -306,7 +305,7 @@ namespace FRESHMusicPlayer
|
|||
}
|
||||
if (fields[0] != string.Empty)
|
||||
{
|
||||
await Player.PlayMusicAsync(fields[0]);
|
||||
await Player.PlayAsync(fields[0]);
|
||||
Player.RepositionMusic(int.Parse(fields[1]));
|
||||
PlayPauseMethod();
|
||||
ProgressTick();
|
||||
|
@ -585,7 +584,7 @@ namespace FRESHMusicPlayer
|
|||
dialog.ShowDialog();
|
||||
if (dialog.OK)
|
||||
{
|
||||
await Player.PlayMusicAsync(dialog.Response);
|
||||
await Player.PlayAsync(dialog.Response);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace FRESHMusicPlayer.Pages.Library
|
|||
if (FilePath.StartsWith("http") || File.Exists(FilePath))
|
||||
{
|
||||
if (player.FileLoaded) player.Queue.Clear();
|
||||
await player.PlayMusicAsync(FilePath);
|
||||
await player.PlayAsync(FilePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ namespace FRESHMusicPlayer.Pages.Library
|
|||
if (e.ClickCount == 2)
|
||||
{
|
||||
if (player.FileLoaded) player.Queue.Clear();
|
||||
await player.PlayMusicAsync(FilePath);
|
||||
await player.PlayAsync(FilePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue