Latest 0.2.0
Homepage https://github.com/Chris-Perkins/TwitchPlayer
License MIT
Platforms ios 8.0
Frameworks WebKit
Authors

TwitchPlayer

CI Status
Version
License
Platform

THIS IS AN UNOFFICIAL, FAN-MADE WRAPPER. IT IS IN NO WAY ENDORSED BY TWITCH.TV

What is It?

Twitch Player is a library that helps you embed Twitch Streams, Clips, Videos, and Collections into your application easily. You can embed directly from the Storyboard or programmatically.

Example Usage

From the storyboard, drag a WKWebView onto a ViewController. Set it’s subclass to TwitchPlayer (for Stream, Video, or Collection playing) or TwitchClipPlayer (for Clip playing)

TwitchPlayer

You can then modify the variables directly from the Storyboard.

TwitchPlayer

NOTE: This library uses WKWebView to display libraries. As a result, you cannot use any Twitch Player from the Storyboard before iOS 11.0.

Example Project

TwitchPlayer

An example project is provided with this project that shows the storyboard-creation of a Clip Player, Stream Player, and Video Player

To run the example project, clone the repo, and run pod install from the Example directory. After that, open the resulting .xcworkspace file and go nuts!

Documentation

Documentation available here

  • If the documentation is not loading, clone this repository and open docs/index.html.

Installation

  1. Install CocoaPods
  2. Add this repo to your Podfile

    target 'Example' do
        # IMPORTANT: Make sure use_frameworks! is included at the top of the file
        use_frameworks!
    
        pod 'TwitchPlayer'
    end
  3. Run pod install in the podfile directory from your terminal
  4. Open up the .xcworkspace that CocoaPods created
  5. Done!

License

TwitchPlayer is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TwitchPlayer",
    "version": "0.2.0",
    "summary": "Embed Twitch Videos, Clips, Streams, and Collections.",
    "description": "TwitchPlayer is a library that is used to help you integrate Twitch Videos, Streams, Clips, and Collections directly into your application without you having to worry about any of the details.",
    "homepage": "https://github.com/Chris-Perkins/TwitchPlayer",
    "screenshots": [
        "https://github.com/Chris-Perkins/TwitchPlayer/raw/master/Readme_Imgs/StreamPlay.png",
        "https://github.com/Chris-Perkins/TwitchPlayer/raw/master/Readme_Imgs/ClipPlay.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Chris Perkins": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Chris-Perkins/TwitchPlayer.git",
        "tag": "0.2.0"
    },
    "social_media_url": "https://www.linkedin.com/in/chrispperkins/",
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.2",
    "source_files": "TwitchPlayer/Classes/**/*",
    "frameworks": "WebKit"
}

Pin It on Pinterest

Share This