supporting the shouldAutoPlay flag, fixing exception in iOS8