Repository navigation
Conversation
Kodi plays FairPlay Streaming itself on Apple platforms, for HLS, and reports that with the System.HasFairPlay condition. With a FairPlay drm argument check_inputstream() returns that condition without dialogs, so add-ons can use it to choose between a FairPlay and a Widevine stream. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 30, 2026
|
5 of 10 tasks
Author
|
Withdrawing this for now. It only wraps a one-line call add-ons can make themselves ( |
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.



What this does
Adds
fairplay,com.apple.fpsandcom.apple.fairplayas accepteddrmarguments.With a FairPlay argument
check_inputstream():System.HasFairPlay;hls;Background
There is no Widevine CDM for macOS, iOS or tvOS that Kodi can use, so protected streams from add-ons do not play there. The services behind those add-ons also offer FairPlay Streaming, which Safari and the native apps use.
FairPlay cannot be handled the way Widevine is. Only Apple's media pipeline can decrypt it, and the pipeline only accepts an HLS URL plus answers to its key requests; an app cannot hand it samples it demuxed itself without a private entitlement. So the linked Kodi draft adds a player core that plays FairPlay HLS through
AVPlayer, and reads the sameinputstream.adaptive.drmproperty add-ons already set for Widevine:The one thing an add-on cannot do well on its own is decide which of the two streams to request. Testing
System.Platform.OSXis wrong on a Kodi that has no FairPlay support, and wrong again when support changes. This PR gives add-ons the question they already ask for Widevine.Choices made here
System.HasFairPlay. The Kodi draft adds that condition. A Kodi that does not know it answers false, as it does for any unknown condition, so there is no version or platform table to maintain in this module.Questions
check_inputstream()unchanged.drmproperty, or should it stay a capability check?Tested
System.HasFairPlayitself was checked in a running Kodi built from the linked draft.🤖 Generated with Claude Code