AVPlayer无法在iOS 11中播放

时间:2017-11-22 15:28:15

标签: ios swift3 avfoundation avplayer

我在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)

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

1 个答案:

答案 0 :(得分:0)

如果没有代码,我们可以获得确切的错误说明。请发布播放器创建和您用来播放文件的步骤。然后我们才会执行并回复你。