You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FastPix supports spritesheet-based thumbnail previews while scrubbing the seek bar.
581
+
582
+
#### Enable Spritesheet Preview :
583
+
```swift
584
+
let previewConfig =FastPixSeekPreviewConfig()
585
+
586
+
playerViewController.loadSpritesheet(
587
+
url: nil,
588
+
previewEnable: true,
589
+
config: previewConfig
590
+
)
591
+
592
+
playerViewController.setFallbackMode(.timestamp)
593
+
```
594
+
595
+
#### Get Preview During Scrubbing :
596
+
```swift
597
+
let result = playerViewController.fastpixThumbnailForPreview(at: time)
598
+
599
+
seekBar.updatePreviewThumbnail(
600
+
result.image,
601
+
time: time,
602
+
useTimestamp: result.useTimestamp
603
+
)
604
+
```
605
+
606
+
##### Note :
607
+
608
+
- Automatically falls back to timestamp if thumbnail is unavailable
609
+
- Works with playlists and custom seek bars
610
+
523
611
#### 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.
0 commit comments