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

[MUXSDKPlayerBinding buildError:domain:code:message:] crash #9

Open
nestor-huma opened this issue Dec 18, 2017 · 0 comments
Open

[MUXSDKPlayerBinding buildError:domain:code:message:] crash #9

nestor-huma opened this issue Dec 18, 2017 · 0 comments

Comments

@nestor-huma
Copy link

SDK crashes when we try but fail to play DRM protected live streams. More specifically, it tries to insert nil into NSDictionary.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'

image

The crash can be easily reproduced by implementing AVAssetResourceLoaderDelegate like this:

func resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) -> Bool {
  DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
    loadingRequest.finishLoading(with: nil)
  }
  return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant