Viewing the Playlist
Access the playlist for the current reciter by clicking the playlist icon in the player controls.The playlist dialog shows all 114 Surahs available for the selected reciter’s Mushaf.
Playlist Display
Each Surah in the playlist shows:Surah Number
Position in the Quran (1-114)
Surah Name
Arabic name or English transliteration
Ayah Count
Number of verses in the Surah
Track Number
Sequential position in the playlist
Playlist Item Structure
From the source code, each playlist item contains:Selecting a Surah
To play a specific Surah from the playlist:- Click the playlist icon in the player controls
- Browse through the list of Surahs
- Click on any Surah to start playing it
- The dialog closes automatically and playback begins
When you select a Surah from the playlist, playback continues sequentially from that point based on your selected playback mode.
Playlist Features
Language Support
The playlist adapts to your selected language:- Arabic
- English
- Displays Surah names in Arabic script
- Shows “آية” or “آيات” for verse count
- Right-to-left text layout
Visual Design
Playlist Item Styling
Playlist Item Styling
Each playlist item features:
- Rounded number badge showing track position
- Hover effect with background color change
- Bottom border separator
- Smooth transition animations
- Click cursor indicator
- Responsive padding and spacing
Surah Information
The playlist integrates with the Surah constants to display accurate information:- ID - Unique Surah number
- Name - Arabic name
- English Name - Transliterated name
- Ayah Count - Number of verses
Playlist Dialog
The playlist appears in a modal dialog overlay:Opening
Click the playlist button in player controls
Closing
Click outside, press ESC, or select a Surah
Dialog Features
- Scrollable List - Scroll through all 114 Surahs
- Touch Optimized - Smooth scrolling on mobile
- Auto-close - Closes when you select a track
- Keyboard Accessible - Navigate with arrow keys
Playlist Navigation
The player automatically handles playlist navigation:Sequential Playback
In normal mode, tracks play in order:Shuffle Mode
When shuffle is enabled:- Playlist order is randomized
- Each track plays once before reshuffling
- Next/previous buttons respect the shuffled order
Repeat One Mode
When repeat one is active:- Current track loops indefinitely
- Next/previous buttons still allow manual navigation
- Playlist maintains position for when you exit repeat mode
Track Loading
When a new track is selected:Track changes are seamless - the player resets the time and begins playing the new Surah automatically if playback was active.
Playlist Metadata
Each reciter’s Mushaf includes a complete playlist:- playlist - Array of all available tracks
- moshaf.name - Name of the specific compilation
- moshaf.riwaya - Transmission method used
Accessing Playlist Data
Mobile Playlist View
On mobile devices:- Full-screen dialog
- Larger touch targets
- Optimized scrolling performance
- Bottom sheet animation
- Swipe to dismiss gesture
Playlist State Management
Playlist state is managed at the component level:- currentTrack - Currently playing Surah index
- shuffledIndices - Randomized order for shuffle mode
- isOpen - Playlist dialog visibility state
Integration with Player
The playlist integrates seamlessly with player features:- Respects playback mode (shuffle, repeat)
- Updates Media Session API with track info
- Maintains position during speed changes
- Syncs with volume and other settings
- Preserves queue when changing modes
The current track position is persisted to localStorage, so you’ll resume at the same Surah when you return (currentTimeAtom).