mediaremoted 在 iOS5 中给出属性列表错误

发布于 2024-12-12 09:46:16 字数 830 浏览 0 评论 0原文

我有一个正在迁移到 iOS5 的应用程序,在模拟器中运行时,我看到大量这样的消息:

10/25/11 10:34:43.002 AM mediaremoted: Property list invalid for format: 200 (property lists cannot contain NULL)
10/25/11 10:34:43.003 AM mediaremoted: Property list invalid for format: 200 (property lists cannot contain NULL)

在我使用以下代码将电影加载到 MPMoviePlayerViewController 后立即发出:

if (moviePath)
{
  movieURL = [NSURL fileURLWithPath:moviePath];

  // this next line will throw these messages
  MPMoviePlayerViewController *mpvc = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];

  [view presentMoviePlayerViewControllerAnimated:mpvc];
  [(AppDelegate *)[[UIApplication sharedApplication] delegate] setMoviePlayerVC:mpvc];

}

我根本不清楚什么“属性列表”是导致此错误消息的原因,因为此时似乎没有读取任何内容。我倾向于相信这可能是一个转移注意力的事情。任何想法都会有帮助

I have an app I'm migrating to iOS5, when running in the simulator, I see a slew of messages like this:

10/25/11 10:34:43.002 AM mediaremoted: Property list invalid for format: 200 (property lists cannot contain NULL)
10/25/11 10:34:43.003 AM mediaremoted: Property list invalid for format: 200 (property lists cannot contain NULL)

being issued right after I load a movie into a MPMoviePlayerViewController with the following code:

if (moviePath)
{
  movieURL = [NSURL fileURLWithPath:moviePath];

  // this next line will throw these messages
  MPMoviePlayerViewController *mpvc = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];

  [view presentMoviePlayerViewControllerAnimated:mpvc];
  [(AppDelegate *)[[UIApplication sharedApplication] delegate] setMoviePlayerVC:mpvc];

}

it's not at all clear to me what "property list" is responsible for this error message, as none seems to being read at this point. I'm inclined to believe that this may be a red-herring. Any thoughts would be helpful

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文