-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
遥控器ok键无响应 KEYCODE_DPAD_CENTER #2124
Comments
em……我不认为这个是项目的问题 |
但是我去掉播放器按ok键正常 </com.publics.video.EmptyControlVideo> |
android7.0正常 |
#1302 的代有参考过 |
em····这个还真不是很清楚 |
@pyp163 @CarGuo 2024了这个问题还是存在...原因是OK键被播放器的
或者下面这种解决办法
至于这个问题,是因为默认焦点根本不是在 |
@xwlcn demo 现在提供了 https://github.com/CarGuo/GSYVideoPlayer/blob/master/app/src/main/java/com/example/gsyvideoplayer/video/TvVideoPlayer.java 另外就像你说的,override onClick 处理 |
嗯 这个快进快退我参考了一下,并没有直接继承这个类,不知道是不是我版本太低的原因还是代码本身有点问题,经常会出现快进或快退无效:就是屏幕中心显示了最后快进或者快退的时间点,但最后实际没有快进快退或者时间对不上,最后我去掉了一些逻辑就好了。 |
问题描述:
android 9.0
布局:
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.vod.activity.Main2Activity">
</androidx.constraintlayout.widget.ConstraintLayout>
Activity:
public class Main2Activity extends BaseActivity {
}
遥控器按ok无响应:
ok键值:TvWindowManager: key event key = KEYCODE_DPAD_CENTER
按上下左右键有响应有打印Log
问题机型/系统:
某电视机顶盒子 Android9.0
GSY依赖版本
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.1'
The text was updated successfully, but these errors were encountered: