|
5 | 5 | [](https://swiftpackageindex.com/swiftuiux/swiftui-loop-videoPlayer)
|
6 | 6 |
|
7 | 7 | ## Why if we have Apple’s VideoPlayer ?!
|
8 | | -Apple’s VideoPlayer offers a quick setup for video playback in SwiftUI but for example it doesn’t allow you to hide or customize the default video controls UI, limiting its use for custom scenarios. In contrast, this solution provides full control over playback, including the ability to disable or hide UI elements, making it suitable for background videos, tooltips, and video hints etc. Additionally, it supports advanced features like subtitles, seamless looping and real-time filter application, adding vector graphics upon the video stream etc. This package uses a declarative approach to declare parameters for the video component based on building blocks. This implementation might give some insights into how SwiftUI works under the hood. You can also pass parameters in the common way. |
| 8 | +Apple’s VideoPlayer offers a quick setup for video playback in SwiftUI but for example it doesn’t allow you to hide or customize the default video controls UI, limiting its use for custom scenarios. In contrast, this solution provides full control over playback, including the ability to disable or hide UI elements, making it suitable for background videos, tooltips, and video hints etc. Additionally, it supports advanced features like subtitles, seamless looping and real-time filter application, adding vector graphics upon the video stream etc. This package uses a declarative approach to declare parameters for the video component based on building blocks. This implementation might give some insights into how SwiftUI works under the hood. You can also pass parameters in the common way. *If you profile the package, do it on a real device.* |
9 | 9 |
|
10 | 10 | It is a pure package without any third-party libraries. My main focus was on performance. Especially if you need to add a video in the background as a design element, in such cases, you’d want a lightweight component without a lot of unnecessary features. **I hope it serves you well**.
|
11 | 11 |
|
12 | | -*If you profile the package, do it on a real device. There’s an enormous difference in results compared to the simulator.* |
| 12 | + |
13 | 13 |
|
14 | 14 | ## SwiftUI app example [follow the link](https://github.com/swiftuiux/swiftui-video-player-example)
|
15 | 15 |
|
|
0 commit comments