Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (19 loc) · 1.33 KB

File metadata and controls

30 lines (19 loc) · 1.33 KB

Demo App

Simple tvOS App to showcase FairPlay Encryption

Warning/Notes

This demo app does use the old AVAssetResourceLoaderDelegate approach. There is also a newer AVContentKeySession approach. You find a Demo of it in Apples FairPlay Streaming Server SDK.

Due to the scope of the bachelor thesis, the getAuthToken method is unimplemented. It is quite straigthforward to implement though…

Building/Running

Just run it like any Xcode project… There are two schemes, one for localhost communication and one for remote URLs.

If you don't want to type an URL on the Apple TV Remote every time, you can provide the app with a default URL in ViewController.swift in the viewDidLoad() method.

You can specify your remote server URLs in Default.xcconfig.

Linting

The project is set up with pre-commit.

To activate it for a project run:

pre-commit install

The next time you commit, it is going to lint and check your files. Sometimes you need to review the changes and do the commit again. If you want to commit without checks

git commit --no-verify