iPhone SDK:自定义视频播放器控件 [英] iPhone SDK: Custom video player controls

查看:100
本文介绍了iPhone SDK:自定义视频播放器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iPhone应用程序中,我设计了一个自定义视频播放器,目前它只是一个播放暂停和停止按钮非常基本,
但我希望用户能够擦洗,(我想那是正确的话)视频就像你可以用苹果的原创媒体播放器一样。
因此对于实例我希望能够使用UISlider并让它控制视频播放的当前位置,如果你理解我的意思。哦,加入你的好奇,我暂停的方式 / 播放 / 停止视频是使用这段简单的代码 [self.theMovie play]; [self.theMovie stop]; [self.theMovie pause]; 麻烦的是我不知道如何擦洗视频。
任何帮助表示赞赏。

In my iPhone app I have designed a custom video player, currently it is very basic with just a play pause and stop button, but I would like the user to be able to scrub, (I think thats the right word) the video like you can do with apple's original media player. So for Instance I would like to be able to take a UISlider and have it control the current postiion of the videos playback if you get what I mean. Oh and incase your curious, the way I pause/play/stop the video is by using this simple piece of code [self.theMovie play]; [self.theMovie stop]; [self.theMovie pause]; The trouble is I don't know how to scrub the video. Any help appreciated.

推荐答案

我问了同样的问题:自定义quicktime iphone MPVideoPlayer添加/删除按钮

I've asked the same question: customize quicktime iphone and here MPVideoPlayer add/remove buttons

它必须具备以下功能:


  1. 您可以在主窗口中添加视图。可在此处找到示例: MoviePlayer示例

  2. 您可以遍历视图,找到所需视图和添加/删除视图。我不知道苹果喜欢/不喜欢这种方法。

这篇关于iPhone SDK:自定义视频播放器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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