通过手势控制视频

发布于 2024-10-08 02:08:27 字数 103 浏览 0 评论 0原文

我有一个视频,播放相机围绕 3D 模型旋转。我希望能够从左到右滑动以向前播放视频,从右到左滑动以向后播放视频。

这可以在 iOS 4 上完成吗?如何实现?

干杯

I have a video playing a camera rotating around a 3D model. I want to be able to sweep left to right to play the video forwards and right to left to play the video backwards.

Can this be done on iOS 4 and how?

Cheers

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

歌入人心 2024-10-15 02:08:27

将 UISwipeGestureRecognizer 添加到保存视频的视图中,并对其进行配置。

Add a UISwipeGestureRecognizer to the view that holds the video, and configure it.

决绝 2024-10-15 02:08:27

只需在视频顶部添加一个新的透明视图并捕获该层中的触摸操作

just add a new transparent view on top of your video and catch touch actions in that layer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文