Skip to content
No description, website, or topics provided.
Objective-C Swift C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ATVPlayer-Demo.xcodeproj
ATVPlayer-Demo
assets
docs
README.md

README.md

alt text

Video Advertising for tvOS

The tvOS SDK for VAST video ads and SRT subtitles. Monetize your apps on Apple TV.


Feature:

  • Support Objective-C and Swift 4
  • SRT Subtitle
  • multiple VAST2 video ads. (pre-roll, mid-roll and post-roll)
  • VAST3 Ad Pod with Linear Ad
  • Custom overlay channel icon
  • Callback of video and Ad events
  • Custom solution
  • Professional support

Requirements

  • Requires tvOS 10.0+
  • Requires Automatic Reference Counting (ARC)

Getting started

CocoaPods

If you use CocoaPods to manage your dependencies, simply add ATVPlayer to your Podfile:

pod 'ATVPlayer'

Manually

  1. Download ATVPlayer framework in the project folder
  2. Add the ATVPlayer framework to your XCode project.
    • Project -> General -> Add framework in to Embedded Binaries
      alt text

XCode 9 support

v2.0.1 support XCode 10 only. If you are using XCode 9, please install v2.0.0. All functions and features are same.

  1. Cocoapod
pod 'ATVPlayer', '2.0.0'
  1. Manually Download v2.0.0 framework

Strip unwanted architectures for App submission

Please add below script in "Run Script" to strip unwanted architechture. Otherwise the binary will be rejected by App store. This step is required for both Cocoapods and manual installation.

APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"

find "$APP_PATH" -name 'ATVPlayer.framework' -type d | while read -r FRAMEWORK
do
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/ATVPlayer"

EXTRACTED_ARCHS=()

for ARCH in $ARCHS
do
lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"
EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")
done

lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"
rm "${EXTRACTED_ARCHS[@]}"

rm "$FRAMEWORK_EXECUTABLE_PATH"
mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH"

done
Step 1

Select you application target, then select "Build Phases"

Step 2

In Xcode menu, click "+", then select "New Run Script Phase"
alt text

Step 3

Paste the script inside the body of "Run Script"
alt text

Import License

  1. Contact us for the license key
  2. In info.plist, add ATVVideoPlayerLicenseKey: [license key]
    alt text
  3. License key is not required in trial version. However there is a watermark overlay on screen.

Demo Project

https://github.com/zensis-ltd/atvplayer-tvos

  1. Pull this git repository.
  2. Add framwork in to project.
  3. Build and Run.

Documentation

Release Notes

Version 2.0.2 (Apr 12, 2019)

Support XCode 10.2 Re-build the library by using Swift 4.2

Version 2.0.1 (Oct 16, 2018)

Support XCode 10.
Support VAST3 Ad Pod (Linear Ad)
v2 release notes

Version 2.0.0 (Oct 16, 2018)

Same as 2.0.0. Support XCode 9 only

Version 1.0.5 (Aug 17, 2018)

Fixed potential memory issue.

Version 1.0.4 (Jun 22, 2018)

Bug Fixes

Version 1.0.3 (Jun 14, 2018)

Bug Fixes

  • Fixed crash issue when create / deallocate player
Version 1.0.2 (Nov 17, 2017)

Bug Fixes

  • Fixed issue where when submitting to App Store, iTunes would complain about bitcode
Version 1.0.1 (Nov 14, 2017)

Bug Fixes

  • Fixed an issue where completeion event is fired when Ad is error.

Contact Us

Website: https://atvplayer.zensis.com

Email: service@zensis.com

Copyright ©️ 2018 Zensis Ltd.

You can’t perform that action at this time.