这是indexloc提供的服务,不要输入任何密码
Skip to content

StyledPlayerView.setOnClickListener doesn't work when useController=false #9605

@eneim

Description

@eneim

As the title suggests, if I set useController to false (either from XML, or code), the click listener just doesn't work.

In onTouchEvent, StyledPlayerView returns false in such a case, so I think it was implemented that way, so I guess the current design is it should not accept a custom OnClickListener if the controller is disabled. Is there any reason why? What should I do to have custom click listener without using the controller?

ExoPlayer version: 2.15.1.
Tested device: LG G7/Android 10.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions