我使用 UIWebView 在我的应用程序中渲染了视频。Youtube 视频流式传输没有问题,但来自我服务器的视频使应用程序崩溃。将 iOS 更新到 8.4 后,我遇到了这个问题。它适用于 iOS 8.3 和其他旧版本。
这是崩溃日志
NSInvalidArgumentExceptionapplicationIsAdSheet -[MPVideoView 播放状态]:无法识别的选择器发送到实例 *****
框架/CoreFoundation.framework/CoreFoundation:0
/usr/lib/libobjc.A.dylib:0objc_exception_throw
框架/CoreFoundation.framework/CoreFoundation:0
框架/CoreFoundation.framework/CoreFoundation:0
框架/CoreFoundation.framework/CoreFoundation:0CF_forwarding_prep_0
框架/MediaPlayer.framework/MediaPlayer:0
Internet Plug-Ins/QuickTime Plugin.webplugin/QuickTime Plugin:0applicationIsAdSheet
框架/MediaPlayer.framework/MediaPlayer:0
框架/MediaPlayer.framework/MediaPlayer:0
框架/UIKit.framework/UIKit:0
框架/UIKit.framework/UIKit:0
框架/UIKit.framework/UIKit:0
框架/UIKit.framework/UIKit:0
框架/UIKit.framework/UIKit:0
框架/Foundation.framework/Foundation:0_NSFireDelayedPerform
框架/CoreFoundation.framework/CoreFoundation:0
框架/CoreFoundation.framework/CoreFoundation:0
框架/CoreFoundation.framework/CoreFoundation:0
框架/CoreFoundation.framework/CoreFoundation:0CFRunLoopRunSpecific
框架/CoreFoundation.framework/CoreFoundation:0CFRunLoopRunInMode
PrivateFrameworks/GraphicsServices.framework/GraphicsServices:0GSEventRunModal
框架/UIKit.framework/UIKit:0UIApplicationMain
MyApp/main.m:16:0main
/usr/lib/system/libdyld.dylib:0
任何帮助将不胜感激