Skip to content

VimeoPlayer is a simple project for showing Vimeo videos that was developed with both UIKit and SwiftUI.

License

Notifications You must be signed in to change notification settings

SwiftLand/VimeoPlayer

Repository files navigation

Logo

Vimeo Player (UIKit version)

MIT License

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.

Screenshots

Search videos Play video
App Screenshot App Screenshot
Support rotatin Support fullscreen
App Screenshot App Screenshot

Features

UIKit version

  • 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.

Installation

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}"
    }
}

Authors

Contributing

Contributions are always welcome!

For contributing, please download the project and create a new branch and add your codes.

License

VimeoPlayer is available under the MIT license. See the LICENSE file for more info.

About

VimeoPlayer is a simple project for showing Vimeo videos that was developed with both UIKit and SwiftUI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published