暂停播放器

发布于 2024-09-11 02:34:57 字数 39 浏览 0 评论 0原文

我想暂停播放器。但通过代码只执行启动和停止。我们如何暂停播放器。

i want to pause the player. but over code only perform start and stop. how we pause the player.

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

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

发布评论

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

评论(2

嘿咻 2024-09-18 02:34:57

我认为player.stop()会暂停播放器。根据黑莓文档。

公共无效停止()

 抛出 MediaException 停止播放器。它将暂停播放

在当前媒体时间。

i think player.stop() will pause the player. according to blackberry docs.

public void stop()

      throws MediaException Stops the Player. It will pause the playback

at the current media time.

潇烟暮雨 2024-09-18 02:34:57

检查开始按钮中的代码。它可能调用 setMediaTime(0) 或其他东西。 Vivart 是正确的,因为 stop() 是暂停——它只是停止,与播放器内的 MediaTime 没有任何关系。

Check the code in your start button. It probably calls setMediaTime(0) or something else is. Vivart is correct in that stop() is pause-- it just stops, it has nothing to say about the MediaTime inside the player.

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