How to enable AVPlayer to play AES-128 encrypted streams?

Searching for hours, but I haven't found any exact information on how to enable AVPlayer to play AES-128 encoded video. There is an old xcode project from Apple that is said to concern this, but it's hard to follow, it doesn't really explain much what it actually is doing. I need something for Swift 3.