Coder Social home page Coder Social logo

netcosports / dailymotion-player-sdk-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dailymotion/dailymotion-player-sdk-ios

0.0 7.0 0.0 955 KB

Dailymotion Player SDK for iOS

Home Page: https://developer.dailymotion.com/tools/sdks#sdk-objective-c

License: MIT License

Ruby 3.25% Objective-C 96.75%

dailymotion-player-sdk-ios's Introduction

This library is deprecated in favour of the Swift version.

Dailymotion Player SDK for iOS

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

See documentation at http://www.dailymotion.com/doc/api/sdk-objc.html.

For a full documentation of the Player API, see https://developer.dailymotion.com/player

Installation

CocoaPods

Just add the following line to your Podfile (See CocoaPods.org for more information)

pod 'dailymotion-player-objc'

Manually

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

Usage

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

Also look at the init methods of DMPlayerViewController for ways to embed the Dailymotion Player without using storyboards.

About App Transport Security (iOS 9+)

Starting with iOS9, Apple added a new App Transport Security policy. As Dailymotion 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 dailymotion.com

If you cannot afford to disable ATS, you'll probably want to add dailymotion.com 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>dailymotion.com</key>
    <dict>
      <key>NSIncludesSubdomains</key>
      <true/>
      <key>NSExceptionAllowsInsecureHTTPLoads</key>
      <true/>
    </dict>
  </dict>
</dict>

Feedback

We are relying on the GitHub issues tracker for feedback. File bugs or other issues http://github.com/dailymotion/dailymotion-sdk-objc/issues

Need the API SDK?

NOTE: This is version 2.9.0 and higher of the Dailymotion SDK. This version no longer supports the API SDK.

Check out released tag 2.0.2 for the latest API SDK version: https://github.com/dailymotion/dailymotion-sdk-objc/releases/tag/2.0.2.

If you need iOS 3+ support, please check out https://github.com/dailymotion/dailymotion-sdk-objc/tree/1.8.

Warning: This library is up-to-date and maintained if you want to use the Dailymotion Player on your native iOS apps. However, the API SDK is not maintained anymore and will be totally replaced in the coming future. Be sure to check this page again to know when the new version of the API SDK will be available.

dailymotion-player-sdk-ios's People

Contributors

akhenakh avatar zedenem avatar jangorman avatar dharfr avatar bernikovich avatar pbernery avatar readmecritic avatar chipp avatar

Watchers

James Cloos avatar  avatar Sergei Mikhan avatar  avatar Aleksei Alekseev avatar  avatar Netco CI avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.