Skip to content

Commit

Permalink
darwin: media: add avf library path
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Feb 13, 2022
1 parent 1a92248 commit cdad363
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/rpcclient/rpcclient/darwin/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ def __init__(self, client):
self._load_av_foundation()

def _load_av_foundation(self):
options = ['/System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation',
'/System/Library/Frameworks/AVFAudio.framework/Versions/A/AVFAudio']
options = [
# macOS
'/System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation',
'/System/Library/Frameworks/AVFAudio.framework/Versions/A/AVFAudio',
# iOS
'/System/Library/Frameworks/AVFoundation.framework/AVFoundation'
]
for option in options:
if self._client.dlopen(option, 2):
return
Expand Down

0 comments on commit cdad363

Please sign in to comment.