Latest 0.1.0
Homepage https://github.com/johnothwolo/youtube-macos-helper
License Apache Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Platforms osx 10.11, requires ARC
Authors , , ,

YouTube-Player-macOS-Helper

Version
License
Platform

Usage

To run the example project; clone the repo, and run pod install from the Project directory first. For a simple tutorial see this Google Developers article – Using the YouTube Helper Library to embed YouTube videos in your iOS application.

Requirements

Installation

YouTube-Player-iOS-Helper is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "youtube-macos-player-helper", "~> 0.1"

After installing in your project and opening the workspace, to use the library:

  1. Drag a UIView the desired size of your player onto your Storyboard.
  2. Change the UIView’s class in the Identity Inspector tab to YTPlayerView
  3. Import "YTPlayerView.h" in your ViewController.
  4. Add the following property to your ViewController’s header file:
    @property(nonatomic, strong) IBOutlet YTPlayerView *playerView;
  5. Load the video into the player in your controller’s code with the following code:
    [self.playerView loadWithVideoId:@"M7lc1UVf-VE"];
  6. Run your code!

See the sample project for more advanced uses, including passing additional player parameters and
working with callbacks via YTPlayerViewDelegate.

Author

Latest podspec

{
    "name": "youtube-macos-player-helper",
    "version": "0.1.0",
    "summary": "Helper library for macOS developers that want to embed YouTube videos in their iOS apps with the iframe player API.",
    "description": "Helper library for iOS developers that want to play YouTube videos inntheir iOS apps with the iframe player API.nThis library allows macOS developers to quickly embed YouTube videos withinntheir applications via a custom UIView subclass, YTPlayerView.nThis library provides:n    * A managed UIWebView instance that loads the HTML code for the iframe playern    * Objective-C wrapper functions for the JavaScript Player APIn    * YTPlayerViewDelegate for handling YouTube player state changes natively innyour Objective-C code",
    "homepage": "https://github.com/johnothwolo/youtube-macos-helper",
    "license": {
        "type": "Apache",
        "text": "    Copyright 2014 Google Inc. All rights reserved.n    Licensed under the Apache License, Version 2.0 (the "License");n    you may not use this file except in compliance with the License.n    You may obtain a copy of the License atn    http://www.apache.org/licenses/LICENSE-2.0n    Unless required by applicable law or agreed to in writing, softwaren    distributed under the License is distributed on an "AS IS" BASIS,n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.n    See the License for the specific language governing permissions andn    limitations under the License.n"
    },
    "authors": {
        "Ikai Lan": "",
        "Ibrahim Ulukaya": "[email protected]",
        "Yoshifumi Yamaguchi": "[email protected]",
        "John Othwolo": ""
    },
    "source": {
        "git": "https://github.com/johnothwolo/youtube-macos-helper.git",
        "tag": "0.1.0"
    },
    "requires_arc": true,
    "platforms": {
        "osx": "10.11"
    },
    "source_files": "Classes",
    "resources": "youtube-macos-helper/Assets.bundle"
}

Pin It on Pinterest

Share This