google / google/ExoPlayer

When I set a gray filter globally in my app, the video played without picture but with sound

Open
#10,199 0 comments 0 reactions 1 assignee Assigned to @oceanjules View on GitHub
needs triage question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hello,When I set a gray filter globally in my app, the video played without picture but with sound. This is the code that I set up

`fun init() {
mGrayPaint = Paint().apply {
ColorMatrix().apply {
setSaturation(0F)
}.let {
colorFilter = ColorMatrixColorFilter(it)
}
}
}

fun setLayerGrayType(view: View) {
init()
view.setLayerType(View.LAYER_TYPE_HARDWARE, mGrayPaint)
}`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.