Skip to content

NZ Player iOS Quick Start

Please contact support@netzyn.com and we can provide a download for the iOS NZ Player SDK.

Example app

  • Unzip the example sdkNzPlayerIosExample project, this will create the sdkPlayerIosExample folder.
  • Unzip the SDK, NetzynPlayer.xcframework.zip, this will create a the NetzynPlayer.xcframework folder.
  • Move the NetzynPlayer.xcframework folder inside the sdkPlayerIosExample folder, so it has the combined path sdkPlayerIosExample/NetzynPlayer.xcframework.
  • Open the Xcode project file sdkPlayerIosExample/NetzynPlayerEx.xcodeproj
  • In project settings -> signing and capabilities tab, change the team from Netzyn, Inc. to your team. team configuration
  • Build and run the example app by pressing ⌘-R.
  • Adjust application settings if desired.
  • Choose remote app to run from the list.

app list app mgr

Your project

To quickly integrate the NZ Player SDK into your project, drag the NetzynPlayer.xcframework into your Xcode project. Then create a NetzynPlayerViewController and install the view controller and it's view into your hierarchy:

var configuration = Configuration(url: url)
//customize configuration as desired
let netzynController = NetzynPlayerViewController(configuration: configuration)
parent.addChild(netzynController)

parent.view.addSubview(netzynController.view)
netzynController.view.translatesAutoresizingMaskIntoConstraints = false
parent.view.safeAreaLayoutGuide.leadingAnchor.constraint(equalTo: netzynController.view.leadingAnchor).isActive = true
parent.view.safeAreaLayoutGuide.trailingAnchor.constraint(equalTo: netzynController.view.trailingAnchor).isActive = true
parent.view.safeAreaLayoutGuide.topAnchor.constraint(equalTo: netzynController.view.topAnchor).isActive = true
parent.view.safeAreaLayoutGuide.bottomAnchor.constraint(equalTo: netzynController.view.bottomAnchor).isActive = true