Skip to content

mncinnovation/innoplayer-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

InnoPlayerSDK

InnoPlayer SDK is built on top of native player frameworks. Apps that you build with our SDK work seamlessly with our video platform hosting and streaming, and ads products.

Features

  • Play Video on Demand (VOD) and Live Streaming that supports streaming format HLS.
  • Easy API.
  • Fullscreen video playback
  • Adaptive Bitrate (ABR) support and manual quality selection
  • Closed Captions (subtitle) support
  • Customizable UI
  • DRM support (Apple FairPlay)
  • AirPlay Cast support
  • Objective-C support.
  • Swift support.

How To Use

Configure Your Project

To complete the SDK import process, you must add the player license key and import the InnoPlayer_iOS_SDK.

  1. In Xcode, open AppDelegate.swift.
  2. Set the player license key by calling the InnoPlayerController class setPlayerKey in application:didFinishLaunchingWithOptions.
InnoPlayerController.setPlayerKey("[your_key_here]");

Add a Player to Your View

Use the following steps and code examples to add a player to the ViewController.h or ViewController.swift file of your app:

  1. In ViewController.swift, create a InnoPlayerController object named player.
  2. Create a InnoConfig object named config. At the minimum, you must define the file property.
  3. Initialize the player with the config.
let config = InnoConfig(contentURL: "[your_content_url_here]")
player = InnoPlayerController(frame: [your_frame_here], andConfig: config)
self.view.addSubview(player!.view!)

InnoPlayer will validate your license key and bundle id of your app. After it passed vaidation, InnoPlayer will show all the playback in your view.

InnoPlayerSDK-screen

Installation

For installation is recomended using Cocoapods.

CocoaPods

InnoPlayer provide Google IMA to show advertising in media player, so please make sure that Google IMA is also installed in your pod.

target 'MyApp' do
  pod 'InnoPlayer_iOS_SDK'
  pod 'GoogleAds-IMA-iOS-SDK'
end

References

For complete instructions and API reference, see the InnoPlayer iOS SDK Reference