如何捕捉事件时点击暂停/播放上的MediaController按钮 [英] How to catch event when click pause/play button on MediaController

查看:380
本文介绍了如何捕捉事件时点击暂停/播放上的MediaController按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何捕捉事件时点击暂停/播放上的MediaController按钮。

How to catch event when click pause/play button on MediaController.

我尝试安其,onTouch - 然后我点击暂停/播放按键上的MediaController做了什么都没有发生。

i try onKey,onTouch - and then i click on pause/play button on MediaController did nothing happened.

推荐答案

一晚的答案一点,但我张贴解决相同的问题,<一个href=\"http://stackoverflow.com/questions/7934556/event-for-videoview-playback-state-or-mediacontroller-play-pause/8046523#8046523\">overhere,如果你还在寻找(或其他人也许碰到这个...)

A bit of a late answer, but I posted a solution to an identical question overhere, in case you're still looking (or others that perhaps bump into this...)

//编辑:UPS,没注意到有人已经发布一个链接的评论...

// ups, didn't notice someone already posted a link as comment...

这篇关于如何捕捉事件时点击暂停/播放上的MediaController按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆