search

Home  >  Q&A  >  body text

objective-c - ios开发 模拟器无法播放视频真机可以

同样的代码在真机下就可以播放视频,在模拟器下就不行,直接黑屏,啥都没有

某草草某草草2796 days ago737

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:21:28

    Since there is no more specific information, it is difficult to locate the problem. One possible reason is that the video playback library you use only supports real devices and does not support simulators. Because the CPU architecture corresponding to the real machine is armv7/armv7s/arm64, etc., and the CPU architecture corresponding to the simulator is i386/x86_64, etc.

    reply
    0
  • 迷茫

    迷茫2017-05-02 09:21:28

    As SamirChen said, try using the soft solution. Soft decoding has better errors and effects in most cases, as well as some smoothness, but it consumes a lot of power

    reply
    0
  • Cancelreply