Simple tvOS App to showcase FairPlay Encryption
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…
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
.
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