wx.Media音量重置问题
达到 0 时它会静音。
我正在使用 wx.Media 开发媒体播放器应用程序,但我遇到的最大挑战是媒体 ctrl 方法的 SetVolume(new_volume) 无法正常工作,但当new_volume 来自音量滑块控件。那么处理这个问题的最佳策略是什么?
任何示例代码都会受到高度赞赏吗? 谢谢。
Am working on a media player application using wx.Media but the big challenge that i am having is that the SetVolume(new_volume) of the media ctrl method is not working properly but it mutes the sound when the new_volume reaches to 0..
The new_volume is from a volume slider control. so what is the best strategy to handle this?
any sample code will be highly appreciated?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 wx.media 创建了一个非常简单的 MP3 播放器,我不久前在博客中提到过它。它可能会帮助您弄清楚这一点: http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/
还有一个很酷的第 3 方小部件它包装了我也使用过的 mplayer: http://www.blog.pythonlibrary.org/2010/07/24/wxpython-creating-a-simple-media-player/
比较复杂,但是播放视频的次数更多可靠。不管怎样,希望这些至少能让你开始。
I created a really simple MP3 player using wx.media that I blogged about a while ago. It might help you figure this out: http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/
There's also a cool 3rd party widget that wraps mplayer that I used too: http://www.blog.pythonlibrary.org/2010/07/24/wxpython-creating-a-simple-media-player/
It's more complicated, but it plays video back more reliably. Anyway, hopefully those will get you started at least.