Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 iOS 中,我完全熟悉按下按钮后如何播放本地视频。我的问题:是否可以让该按钮在视频中播放特定时间或分钟/秒标记?
例如,在 Youtube 上,您可以通过在 URL 末尾添加“&t=31m08s”来链接到视频的特定部分。有没有办法在 iOS 中做到这一点?
如果您使用的是 MPMoviePlayerController,则需要采用 MPMediaPlayback 协议,其中包括方法 currentPlaybackTime。来自参考:“更改此属性的值会将播放头移动到新位置。”
这是MPMediaPlayback 协议的参考。