Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option dictionary to the AVURLAsset. #68

Closed
jorgenhenrichsen opened this issue Jun 26, 2019 · 0 comments · Fixed by #71
Closed

Add option dictionary to the AVURLAsset. #68

jorgenhenrichsen opened this issue Jun 26, 2019 · 0 comments · Fixed by #71
Labels
enhancement New feature or request

Comments

@jorgenhenrichsen
Copy link
Owner

Is your feature request related to a problem? Please describe.
Add a way to supply option key-values to the AVURLAsset by using init(url:options:).

Describe the solution or feature you would like
Should be able to supply these values to the AudioPlayer, which will pass it down to the AVPlayerWrapper that initializes the AVURLAsset.

Describe alternatives you've considered
A protocol that AudioItems can conform to in order to supply relevant options.

Additional context
A result of PR #64, that was adding auth headers to the asset by supplying headers in the option dictionary with the AVURLAssetHTTPHeaderFieldsKey key, but this is a private API. The feature described here offers a way for developers to use this at their own risk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant