HTTPS SSH

Brid.tv Player SDK for iOS

This repository contains the official open source Objective-C SDK that allows you to embed Brid.tv Videos in your iOS application.

For a full documentation of the Player API, see [https://brid.zendesk.com/hc/en-us/categories/200081571-Brid-Player-JavaScript-API-Reference]

Installation

Just drag and drop the brid-player-objc folder into your project.

Usage

Check out the repository and open brid-sdk-objc.xcodeproj for a working example of how to embed the Brid.tv Player into your app.

Testing App

Use your own domain to store embed code (See App Embed Implementation). Use aditional parameters to setup embed code:

type= [video or playlist] (string possibla values: video,playlist)

player=[player id] (integer)

content_id= [video id or playlist id] (integer)

App Transport Security (iOS 9+)

Starting with iOS9, Apple added a new App Transport Security policy. As Brid.tv player uses an UIWebView to embed his video player, you'll need to define a few ATS exceptions in your Info.plist for the video player to work properly.

Option 1: Disabling ATS

If your application already rely on several non-https services, or if you allow your users to load arbitrary web sites, you might want to completely disable ATS. You can do it by adding the following to your app's Info.plist :

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

Option 2: White-listing brid.tv (or your own domain)

If you cannot afford to disable ATS, you'll probably want to add brid.tv to the ATS exception list instead. You can do it by adding the following to your app's Info.plist :

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSExceptionDomains</key>
  <dict>
    <key>brid.tv</key> //Here you'll post domain where your embed is hosted
    <dict>
      <key>NSIncludesSubdomains</key>
      <true/>
      <key>NSExceptionAllowsInsecureHTTPLoads</key>
      <true/>
    </dict>
  </dict>
</dict>