iOS Player SDK
UZPlayer is a framework allows you to play video with fully customizable controls.
UZPlayer requires Swift 4.2+ and iOS 9+
Then run the following command:
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:<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
let playerViewController = UZPlayerViewController()
playerViewController.player.controlView.theme = UZTheme1()
UizaPlayer currently has 7 built-in themes: