Skip to content

Commit 48cc844

Browse files
committed
Added Forward and Rewind controls feature functionality
1 parent cc2820c commit 48cc844

File tree

5 files changed

+444
-57
lines changed

5 files changed

+444
-57
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33

44
All notable changes to this project will be documented in this file.
55

6+
## [0.6.0]
7+
8+
- **Forward & Rewind Controls**
9+
- Added configurable seek increments via: `configureSeekButtons(enablePortrait:enableLandscape:forwardIncrement:backwardIncrement:)`
10+
- Forward and rewind actions are fully synchronized with the player’s internal playback state and are automatically disabled during active seek bar scrubbing to prevent conflicting seeks.
11+
- Improved user interaction handling — controls remain visible during forward/rewind interactions, and auto-hide logic pauses during seek actions and resumes safely afterward
12+
613
## [0.5.0]
714

815
- **Picture-in-Picture (PiP)**
@@ -54,4 +61,4 @@ All notable changes to this project will be documented in this file.
5461
- Fixed resolution option (e.g., `.set480p`).
5562
- Range-based resolution configuration.
5663
- **Rendition Order Customization**: Added support for ascending or descending rendition selection.
57-
- **Swift Package Manager Support**: SDK is installable via SPM using the repo URL.
64+
- **Swift Package Manager Support**: SDK is installable via SPM using the repo URL.

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,29 @@ seekBar.updatePreviewThumbnail(
608608
- Automatically falls back to timestamp if thumbnail is unavailable
609609
- Works with playlists and custom seek bars
610610

611+
### Forward & Rewind Controls :
612+
613+
FastPix iOS Player SDK provides Forward and Rewind seek controls functionality that integrates with AVPlayer and custom player UIs. These controls are designed to work reliably alongside a custom seekbar, gestures, and auto-hide logic.
614+
615+
#### Configure Forward & Rewind Controls :
616+
617+
You can enable forward and rewind buttons and configure their seek increments separately for portrait and landscape modes.
618+
619+
```swift
620+
playerViewController.configureSeekButtons(
621+
enablePortrait: true,
622+
enableLandscape: true,
623+
forwardIncrement: 10, // Customizable
624+
backwardIncrement: 10 // Customizable
625+
)
626+
```
627+
#### Behavior & State Handling :
628+
- Forward and rewind actions are fully synchronized with the player’s internal playback state.
629+
- Controls are automatically disabled during active seek bar scrubbing to prevent conflicting seek operations.
630+
- Auto-hide logic is paused during forward/rewind interactions and resumes safely afterward.
631+
- Controls remain visible while users interact with forward or rewind buttons.
632+
- Works consistently across play, pause, buffering, playback end, fullscreen, inline, and Picture-in-Picture (PiP) modes.
633+
611634
#### Each of these features is designed to enhance both flexibility and user experience, providing complete control over video playback, appearance, and user interactions in FastPix-player.
612635

613636
# Supporting tvOS
@@ -670,4 +693,4 @@ class TVPlayerViewController: UIViewController {
670693

671694
## Maturity
672695

673-
This SDK is currently in beta, and breaking changes may occur between versions even without a major version update. To avoid unexpected issues, we recommend pinning your dependency to a specific version. This ensures consistent behavior unless you intentionally update to a newer release.
696+
This SDK is currently in beta, and breaking changes may occur between versions even without a major version update. To avoid unexpected issues, we recommend pinning your dependency to a specific version. This ensures consistent behavior unless you intentionally update to a newer release.

0 commit comments

Comments
 (0)