Just drag and drop the brid-player-objc folder into your project.
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.
Use your own domain to store the embed code (See App Embed Implementation). Use aditional parameters to setup an embed code:
type = [video or playlist] (string possible values: video, playlist) player = [player id] (integer) content_id = [video id or playlist id] (integer)
Starting with iOS9, Apple added a new App Transport Security policy. As the Brid.tv player uses UIWebView to embed the 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 relies 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>