{"repo":"wxxsw/VideoPlayer","free":true,"listed":false,"github":"https://github.com/wxxsw/VideoPlayer","clone":"git clone https://github.com/wxxsw/VideoPlayer.git","description":"📽 A video player for SwiftUI, support for caching, preload and custom control view. SwiftUI 视频播放器，支持边下边播、预加载、自定义控制层","language":"Swift","stars":777,"topics":["swift","swiftui","videoplayer","player","avplayer"],"license":"MIT","category":"mobile-apps","readme_excerpt":"- Features - QuickStart - Advances - Installation - Requirements - License Demo 1. Clone or download the project. 2. In the terminal, run swift package resolve . 3. Open VideoPlayer.xcodeproj and run Demo target. Features - [x] Fully customizable UI. - [x] Plays local media or streams remote media over HTTP. - [x] Built-in caching mechanism to support playback while downloading. - [x] Can preload multiple videos at any time. - [x] Support seek to duration. - [x] Simple API. Quick Start Advances Preload Set the video urls to be preload queue. Preloading will automatically cache a short segment of the beginning of the video and decide whether to start or pause the preload based on the buffering of the currently playing video. Set the preload size, the default value is 1024 1024, unit is byte. Cache Get the total size of the video cache. Clean up all caches. Installation Swift Package Manager 1. Select Xcode - File - Swift Packages - Add Package Dependency... 2. Enter https://github.com/wxxsw/VideoPlayer . 3. Click Next , then select the version, complete. Requirements - iOS 13+ - Xcode 11+ - Swift 5+ Thanks Banner Design by @aduqin License VideoPlayer is released under the MIT license. See LICENSE for details.","default_branch":null,"files":null,"tree":[],"storefront":"/r/wxxsw","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wxxsw/VideoPlayer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}