如何在iPhone模拟器上推送视频? [英] How To Push Video on iPhone Simulator?

查看:109
本文介绍了如何在iPhone模拟器上推送视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将视频推入iPhone模拟器,以测试UIImagePickerController中的视频选择。有可能吗?如果可能的话,你能否给我一些建议?

I would like to push a video into iPhone simulator to test video picking in UIImagePickerController. Is it possible to do that? And if it possible, could you please provide me with some advices?

谢谢。

推荐答案

您可以继承 UIImagePickerController 来覆盖其行为并提供您自己的视图。如果你这样做,你可以调用 imagePickerController:didFinishPickingMediaWithInfo:并提供你自己预先录制的视频。如果您包含从iPhone 3GS实际录制的视频,您获得的行为将非常类似于实际设备。

You can subclass UIImagePickerController to override its behaviour and provide your own view. If you do this, you can then call imagePickerController:didFinishPickingMediaWithInfo: and supply your own pre-recorded video. If you include a video actually recorded from an iPhone 3GS, the behaviour you get will be pretty damn similar to that of the actual device.

当然,始终始终在发货之前在真实设备上进行测试!

Of course, always always always test on a real device before shipping!

我们以非常类似的方式使用 CLLocationManager 的子类来提供更好的位置模拟。

We use a subclass of CLLocationManager in a very similar fashion to give a better location simulation.

这篇关于如何在iPhone模拟器上推送视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆