VimeoPlayer is a simple project for showing Vimeo videos that was developed with both UIKit and SwiftUI.
The main branch was created with UIKit, but you can check the SwiftUI version in the SwiftUI branch.
Search videos | Play video |
---|---|
Support rotatin | Support fullscreen |
- Search Vimeo videos
- Show comments, likes, and play count.
- Use the MVVM architect.
- Support device rotation with the Xcode variation traits feature.
- Use Storyboard for the UIKit version.
- Create a custom player view with UIKit.
- Use Rx family pods like RxSwift, RxCoco, etc.
- Use Rxflow for navigation.
- Use Nuke for image loading.
To run the UIKit version you have to install CocoaPods first. than run pod install
in project folder.
To use this app, you have to create your public API key by following this link: Vimeo developer
Vimeo player works well with a public token, which is an “Unauthenticated” token, but to get all features, you must check the “Authenticated” token, then check the private, interact, and stats options.
After that, put the token in Constants.swift
in the AppConstants folder instead of {Put your token here}
.
struct Constants{
struct Vimeo{
static let base_url = "https://api.vimeo.com/"
static let video_config_url = "https://player.vimeo.com/video/{id}/config"
/// You can create your own public api key from this link:https://developer.vimeo.com/
static let public_token = "{Put your token here}"
}
}
Contributions are always welcome!
For contributing, please download the project and create a new branch and add your codes.
VimeoPlayer is available under the MIT license. See the LICENSE file for more info.