Baseflow / XamarinMediaManager

Cross platform Xamarin plugin to play and control Audio and Video
https://baseflow.com
MIT License
762 stars 305 forks source link

Fix/814 ns internal inconsistency exception #825

Closed jamsoft closed 2 years ago

jamsoft commented 2 years ago

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Bug fix

:arrow_heading_down: What is the current behavior?

SIGABRT: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Cannot remove an observer <NSKeyValueObservance 0x281ff9440> for the key path "currentItem.status" from <AVQueuePlayer 0x281647980>, most likely because the value for the key "currentItem" has changed without an appropriate KVO notification being sent.

:new: What is the new behavior (if this is a feature change)?

No crash

:boom: Does this PR introduce a breaking change?

No

:bug: Recommendations for testing

Try iOS Playback

:memo: Links to relevant issues/docs

https://github.com/Baseflow/XamarinMediaManager/issues/814

:thinking: Checklist before submitting