HSPlayer
HSPlayer copied to clipboard
fixes memory leaks and allows for a bit more customization
Fixes memory leaks due to capturing self in NSNotificationCenter addObserver block. Also allows for more customization such as autorepeating and autoplay and not allowing the controls to be visible.
Nice pull request! When introducing the observations dict, do you think it makes sense to add all the existing notifications there as well, for nice deallocation? Or would we just skip it and have conditional removal in dealloc as well?
I actually wanted to do that but I didn't have the time. I can do it this weekend though. thanks for open sourcing this!
Waiting for that to merge then.