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.
我想暂停播放器。但在代码中只执行启动和停止。我们如何暂停播放器。
检查开始按钮中的代码。它可能会调用 setMediaTime(0) 或其他东西。Vivart 是正确的,因为 stop() 是暂停——它只是停止,它对播放器内部的 MediaTime 无话可说。
我认为 player.stop() 会暂停播放器。根据黑莓文档。
公共无效停止() throws MediaException Stops the Player. It will pause the playback 在当前的媒体时间。
公共无效停止()
throws MediaException Stops the Player. It will pause the playback
在当前的媒体时间。