在自定义电影播放器​​中滑动滑块指示器后如何恢复播放?

发布于 2024-09-08 14:09:59 字数 302 浏览 0 评论 0原文

在我的自定义电影播放器​​中,我使用 [player setInitialPlaybackTime:playSlider.value]; 为了使电影在我滑动到时恢复播放,但出现了这种情况: 指示器返回到影片的开头,然后转到时间 playSlider.value 。同时,影片视图到达影片的起始视图,然后恢复播放时的视图playSlider.value,从开始到滑动到最后的正确时间缓冲后播放。 其实我不喜欢这种情况,我想让指示器直接到我滑动到的地方,视图也一样,缓冲后继续播放。 有什么想法吗? 先感谢您。

In my custom movie player ,i use [player setInitialPlaybackTime:playSlider.value];
to make the movie resume playing at the time i slide to,but it has this situation:
the indicator returns to the start of the movie,then go to the time playSlider.value .At the same time, the view of movie get to the starting view of movie then resume the view at the time of playSlider.value, playback after buffering from the starting to the right time i slide to finally.
Actually,i do not like this situation,i'd like to let the indicator go to where i slide to directly,so does the view,and continue playback after buffering.
Is there any idea ?
thank you in advance.

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

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

发布评论

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

评论(1

往日 2024-09-15 14:10:00

我已经解决了,需要

[player setInitialPlaybackTime:playSlider.value];
    [player stop];
    [player play];

I've solved it.It needed

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