Merge pull request #7 from nneuberger1/feature/rewind_fast_forward Feature to rewind, fast forward, and start a video at a certain time.
Merge pull request #7 from nneuberger1/feature/rewind_fast_forward
Feature to rewind, fast forward, and start a video at a certain time.
SVEVideoUI provides SwiftUI view that diplays videos.
SVEVideoUI is available through Swift Package Manager. To install it, simply add the following line to your Package.swit:
Package.swit
dependencies: [ .package(url: "https://github.com/SergioEstevao/SVEVideoUI.git", from: "0.4.0") ]
To use the video player do the following:
import SVEVideoUI struct VideoPlayerView: View { var videoURL = Bundle.main.url(forResource: "video", withExtension: "mp4")! var body: some View { Video(url: videoURL) } }
If you want to start the video at specific seconds
Video(url: videoURL, startVideoAtSeconds: 15.5)
If you want to mute the sound on the video you just need to do
Video(url: videoURL).isMuted(true)
And to hide the video controls
Video(url: videoURL).playbackControls(true)
To loop the video
Video(url: videoURL).loop(true)
To run the example project, clone the repo, and open the SVEVideoUI.xcproject file
SVEVideoUI.xcproject
If you have questions about getting setup or just want to say hi, just drop an issue on Github with your request.
Sérgio Estêvão
SVEVideoUI is available under the MIT license. See the LICENSE file for more info.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SVEVideoUI
SVEVideoUI provides SwiftUI view that diplays videos.
Installation
SVEVideoUI is available through Swift Package Manager. To install it, simply add the following line to your
Package.swit
:Usage
To use the video player do the following:
If you want to start the video at specific seconds
If you want to mute the sound on the video you just need to do
And to hide the video controls
To loop the video
Sample Project
To run the example project, clone the repo, and open the
SVEVideoUI.xcproject
fileRequirements
Getting in Touch
If you have questions about getting setup or just want to say hi, just drop an issue on Github with your request.
Author
Sérgio Estêvão
License
SVEVideoUI is available under the MIT license. See the LICENSE file for more info.