-
-
-
@Format(current) / @Format(duration)
+
+
+
+ @if (ShowFavorite)
+ {
+
+ }
+ @if (ShowBookmark)
+ {
+
+ }
+
+
+ @if (HasAudio)
+ {
+
+
+
+
@Format(current) / @Format(duration)
+
+ }
+ else
+ {
+
صوت این آیه در دسترس نیست
+ }
}
else
{
-
صوت این آیه در دسترس نیست
+
+
+
+
+ @HeaderTitle
+ @SurahLabel
+
+
+
+
+
+
+
+ @if (ShowFavorite)
+ {
+
+ }
+ @if (ShowBookmark)
+ {
+
+ }
+
+
+ @if (HasAudio)
+ {
+
+
+
+ @Format(current)
+ @Format(Remaining) باقی مانده
+ @Format(duration)
+
+
+
+
+
+
+
+
+ }
+ else
+ {
+
صوت این آیه در دسترس نیست
+ }
+ }
+
+ @if (HasAudio)
+ {
+
}
@code {
+ public enum PlayerLayout { Dock, Expanded }
+
[Parameter, EditorRequired] public string Title { get; set; } = "";
+ [Parameter] public string HeaderTitle { get; set; } = "";
+ [Parameter] public string SurahLabel { get; set; } = "";
+ [Parameter] public int AyahNumber { get; set; }
+ [Parameter] public int SurahAyahCount { get; set; }
+ [Parameter] public PlayerLayout Layout { get; set; } = PlayerLayout.Dock;
[Parameter] public string? AudioUrl { get; set; }
[Parameter] public string AudioKey { get; set; } = "";
[Parameter] public double InitialPosition { get; set; }
@@ -49,7 +134,10 @@
[Parameter] public EventCallback OnFavoriteToggle { get; set; }
[Parameter] public EventCallback OnBookmarkToggle { get; set; }
[Parameter] public EventCallback