AVPlayer无法在iOS 11中播放

S R*_*yak 8 avfoundation ios avplayer swift3

我在iOS 11中面临AVPlayer的问题.相同的代码在iOS 10上完美运行.我使用DRM播放视频.

我收到以下警告:

  2017-11-22 20:48:09.237095+0530 AppName[9113:3782887] [] <<<< 
  AVOutputDeviceDiscoverySession (FigRouteDiscoverer) >>>> -
  [AVFigRouteDiscovererOutputDeviceDiscoverySessionImpl 
  outputDeviceDiscoverySessionDidChangeDiscoveryMode:]: Setting device 
  discovery mode to DiscoveryMode_None (client: AppName)
  2017-11-22 20:48:09.266561+0530 AppName[9113:3782887] Presenting view 
  controllers on detached view controllers is discouraged 
  <Nettkino.PlayerViewController: 0x103f0a4b0>.
  2017-11-22 20:48:09.272713+0530 AppName[9113:3782887] [framework] 
  CUICatalog: Invalid asset name supplied: '(null)'
  2017-11-22 20:48:09.272730+0530 AppName[9113:3782887] [framework] 
  CUICatalog: Invalid asset name supplied: '(null)'
  2017-11-22 20:48:09.285772+0530 AppName[9113:3782887] [] <<<< 
  AVOutputDeviceDiscoverySession (FigRouteDiscoverer) >>>> -
  [AVFigRouteDiscovererOutputDeviceDiscoverySessionImpl 
  outputDeviceDiscoverySessionDidChangeDiscoveryMode:]: Setting device 
  discovery mode to DiscoveryMode_Presence (client: AppName)
Run Code Online (Sandbox Code Playgroud)

请指导我.我在过去3天内无法解决此问题.如果您需要有关我使用的应用程序的更多信息,请告诉我,我会更新我的问题.

小智 0

无需代码,我们就可以获得准确的错误描述。请发布播放器的创建以及您用于播放该文件的步骤。然后只有我们会执行并回复您。

  • 您应该对问题发表评论,而不是发布带有代码请求的答案 (5认同)