Repository navigation
Conversation
FairPlay Streaming can only be decrypted by the system player of Apple platforms, so Kodi plays such streams itself there and reads the same "drm" property for the license configuration. An add-on that sets both a FairPlay and a Widevine configuration got an "unknown key system" error from here; it is now skipped with an explanation. Both the name used in this add-on (com.apple.fairplay) and the EME one (com.apple.fps) are accepted. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 30, 2026
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
5 of 10 tasks
Member
Author
|
Withdrawing this for now. It changes nothing functionally: on Apple platforms Kodi plays FairPlay items itself before this add-on is opened, so all this did was turn one log line from an error into an info message on other platforms. I would rather not add code here without a need. The question of whether you want anything changed in this add-on is asked in xbmc/xbmc#30942, and I will reopen this if you do. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
DRM::IsFairPlayKeySystem(). It is true forcom.apple.fairplay(the name this add-on already uses asKS_FAIRPLAY) and forcom.apple.fpswith or without a version suffix (the EME name, which is what Safari based players and most service APIs use).inputstream.adaptive.drmproperty is skipped with an info line that says why, instead of the errorIgnored unknown key system.plugin.video.isasamples.No decrypter is added and nothing changes for other key systems.
Motivation and context
Why FairPlay cannot be a decrypter here
This add-on already notes in
HLSTree.cppthat FairPlay key management is unsupported. That is not a gap that can be filled from inside ISA:AVSampleBufferAttachContentKeyfails with-11836without it). I tested that.AVPlayerthe HLS URL and answer its key requests throughAVContentKeySession. The stream then never passes through an inputstream add-on or VideoPlayer.What the Kodi draft does instead
xbmc/xbmc#30942 adds a player core for Apple platforms that plays such items itself. To keep the work for add-on authors small, it reads the same properties add-ons already set for this add-on:
Kodi routes an item with a FairPlay entry to its own player before any inputstream add-on is opened, so on Apple platforms ISA never sees it. It honours
server_url,server_certificate,req_headers,req_data,wrapper,unwrapper,unwrapper_params, and themanifest_headers/stream_headersproperties, with the meaning they have here.Why this PR is still needed
What I would like your view on
inputstream.adaptive.*properties is the cheapest thing for add-on authors, but it means core depends on a schema this add-on owns. Are you comfortable with that, or would you prefer neutral property names that both read?com.apple.fairplayorcom.apple.fpsin the documentation? Kodi accepts both.{SKD},{SKD-ID},{CHA-B64}and so on, described in the Kodi draft). They are additions to thelicenseobject. Do the names fit your conventions?How has this been tested?
inputstream.adaptiveplays through Kodi's player, and a ClearKey HLS item still plays through this add-on and VideoPlayer..strmwith the same configuration; it was not started from the samples plugin itself.Screenshots (if appropriate):
Types of change
Checklist:
🤖 Generated with Claude Code