Funky errors using MPMoviePlayerViewController

扶醉桌前 提交于 2019-12-04 02:44:48

HDA is an audio format (http://en.wikipedia.org/wiki/Intel_High_Definition_Audio). Since the Mac uses different audio and video drivers, there have been certain situations where types of audio or video won't play in the simulator since it doesn't actually implement the full software stack found on device. In this case, it looks like the driver for the HDA audio your videos use isn't available on Mac.

This doesn't mean your Mac can't play HDA audio just that the exact plugin that iOS is looking for isn't available. So it just disables the audio portion of the video and goes ahead and plays what it can.

Historically you used to not be able to play YouTube videos in the simulator while they would work fine on device. This again was a case of a missing plugin. Newer versions of the iOS simulator have a stub plugin that translates between the Mac's abilities and how the simulator wants to access them.

Did you add the mentioned frameworks in the build settings of your project?

To me it looks like the frameworks are referenced without being present in your binary.

To add the required frameworks you can do the following steps:

  1. Open your project in Xcode
  2. Click the root item in the project navigator
  3. Select your target
  4. Go to Build Phases and expand Link with libraries
  5. Make sure the mentioned frameworks are listed here.
  6. If they are not present add them and rebuild your App

I hope this helps

The volume bar is supposed to go away - it's behaving as if it's connected to a crude line-out dock device. Make sure your computer's sound is on, too...

As for the errors - I have a similar issue with my app, which despite getting a similar slew of errors, isn't having any real problems. The rule of thumb is that if it works on the device, you're fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!