Uiza Documentation
2020-04-21
2020-04-21
  • Hola! 👋
  • Getting Started
    • Introduction
    • Authentication
    • Errors
    • Quick Starts
      • Live Streaming
      • Video Streaming
    • Pagination
    • Recommended Specifications
    • Postman Collections
    • Sample Streaming Apps
      • NodeJS Live Streaming App
      • Java Live Streaming App
      • Python Live Streaming App
      • How to integrate live streaming into an Android App using Uiza’s Live API
    • Versioning
  • API Reference
    • Live Entities
      • Create A Live Entity
      • Retrieve A Live Entity
      • Update A Live Entity
      • Delete A Live Entity
      • List All Live Entities
      • Enable Live Entity DVR
      • Disable Live Entity DVR
      • Reset Ingest Key
    • Live Sessions
      • Retrieve A Live Session
      • List All Live Sessions
    • Video Entities
      • Retrieve A Video Entity
      • Update A Video Entity
      • Publish A Video Entity
      • Delete A Video Entity
      • List All Video Entities
    • Video Presets
      • Create a Video Preset
      • Retrieve a Video Preset
      • Update a Video Preset
      • Delete a Video Preset
      • List all Video Presets
      • Add Profile(s) to Video Preset
      • Remove Profile(s) from Video Preset
    • Video Profiles
      • List All Video Profiles
    • Events
      • Retrieve An Event
      • List All Events
      • Event Types
    • Webhook Endpoints
      • Create Webhook Endpoint
      • Retrieve Webhook Endpoint
      • Update Webhook Endpoint
      • Delete Webhook Endpoint
      • List All Webhook Endpoints
      • Enable A Webhook Endpoint
      • Disable A Webhook Endpoint
  • SDK REFERENCE
    • Introduction
    • Android SDK
      • Android Player SDK
      • Android Broadcast SDK
    • iOS SDK
      • iOS Player SDK
      • iOS Broadcast SDK
    • Web Player SDK
  • API UPGRADES
    • Release Notes
    • API Changelog
Powered by GitBook
On this page
  • Compatibility
  • Installation
  • CocoaPods
  • Usage
  • Change Player Themes
  • Create CustomTheme
  • Create Player with Floating Mode
  • Google ChromeCast supports
  • Support
  • License

Was this helpful?

  1. SDK REFERENCE
  2. iOS SDK

iOS Player SDK

PreviousiOS SDKNextiOS Broadcast SDK

Last updated 5 years ago

Was this helpful?

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

Link to the Source code here:

Compatibility

UZPlayer requires Swift 4.2+ and iOS 9+

Installation

CocoaPods

To integrate UZPlayer into your Xcode project using , 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:

<key>NSAppTransportSecurity</key>  
<dict>  
  <key>NSAllowsArbitraryLoads</key><true/>  
</dict>

Change Player Themes

let playerViewController = UZPlayerViewController()
playerViewController.player.controlView.theme = UZTheme1()

UizaPlayer currently has 7 built-in themes:

Create CustomTheme

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

self.playerViewController.player.controlView.endscreenView = MyCustomEndScreen()

Create Player with Floating Mode

Then present using this code:

UZFloatingPlayerViewController().present(with: videoItem, playlist: playlist)

Google ChromeCast supports

Support

License

You can create your own custom theme by creating a class inheriting from following this template:

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

See

For API details, check

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

UZPlayer is released under the BSD license. See for details.

UZTheme1
UZTheme2
UZTheme3
UZTheme4
UZTheme5
UZTheme6
UZTheme7
UZPlayerTheme Protocol
UZCustomTheme
UZFloatingPlayerViewController
Example
API Document
namnh@uiza.io
LICENSE
https://github.com/uizaio/uiza-ios-player-sdk
CocoaPods
Swift