iOS Player SDK

Swiftarrow-up-right

UZPlayer is a framework allows you to play video with fully customizable controls.

Link to the Source code here: https://github.com/uizaio/snake.sdk.ios-playerarrow-up-right

Compatibility

UZPlayer requires Swift 4.2+ and iOS 9+

Installation

CocoaPods

To integrate UZPlayer into your Xcode project using CocoaPodsarrow-up-right, specify it in your Podfile:

Then run the following command:

Usage

let playerViewController = UZPlayerViewController()		
playerViewController.player.controlView.theme = UZTheme1()
playerViewController.player.loadVideo(url: VIDEO_URL)
present(playerViewController, animated: true, completion: nil)

You might have to add these lines to Info.plist to disable App Transport Security (ATS) to be able to play video:

Change Player Themes

UizaPlayer currently has 7 built-in themes:

UZTheme1arrow-up-right

UZTheme2arrow-up-right

UZTheme3arrow-up-right

UZTheme4arrow-up-right

UZTheme5arrow-up-right

UZTheme6arrow-up-right

UZTheme7arrow-up-right

Create CustomTheme

You can create your own custom theme by creating a class inheriting from UZPlayerTheme Protocolarrow-up-right following this template: UZCustomThemearrow-up-right

You can also create your custom end screen by subclassing UZEndscreenView, then set an instance to player.controlView.endscreenView

Create Player with Floating Mode

You can create player with "drag down to floating mode" like Facebook or Youtube, by subclassing UZFloatingPlayerViewControllerarrow-up-right, then you can add more UI for displaying video details and add them to detailsContainerView

Then present using this code:

See Examplearrow-up-right

For API details, check API Documentarrow-up-right

Google ChromeCast supports

If developing using Xcode 10 and targeting iOS devices running iOS 12 or higher, the "Access WiFi Information" capability is required in order to discover and connect to Cast devices arrow-up-right

Support

[email protected]envelope

License

UZPlayer is released under the BSD license. See LICENSEarrow-up-right for details.

Last updated

Was this helpful?