Добавлен вывод названия трека и обложки в плеере

This commit is contained in:
FrigaT
2026-04-14 19:38:33 +03:00
parent acf02c85a7
commit 0381ef74ab
8 changed files with 139 additions and 29 deletions

View File

@@ -14,7 +14,7 @@ public class PlayerStorage
await _js.InvokeVoidAsync("localStorage.setItem", VolumeKey, volume);
}
public async Task<double> GetVolumeAsync()
public async Task<double?> GetVolumeAsync()
{
var volume = await _js.InvokeAsync<string>("localStorage.getItem", VolumeKey);
@@ -25,6 +25,6 @@ public class PlayerStorage
return result;
}
return 0;
return null;
}
}