google / google/ExoPlayer

can't set elevation when use two StyledPlayerView in android 7

Open
#10,424 4 comments 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
bug needs triage
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### ExoPlayer Version

2.17.1

### Devices that reproduce the issue

* any devices of android 7

### Devices that do not reproduce the issue

_No response_

### Reproducible in the demo app?

Yes

### Reproduction steps

I have two StyledPlayerView, which one of them for the main video and another for the playback advertisement.
while playing the main movie we want to play an advertisement over the main film(when playing the advertisement we paused the main video), but the StyledPlayerView of the advertisement playing behind the StyledPlayerView of the main video in the android 7 version, while on another android device is correct. To solve this problem I became changed the visibility of StyledPlayerViews, which came a new problem on all android versions.
the new problem is: change the bottom margin after any time gone and visible StyledPlayerView of the main video, while I don't have logic for change margins.

please guide me

### Expected result

I expect to StyledPlayerView of advertisement over StyledPlayerView of the mani video in all android versions.

### Actual result

```

...

```
-------------------------------------------------------------------------------------------------------

exo_playback_control_view :
```

...

```

### Media

vmap link : https://castqqq.free.beeceptor.com/test01

the main video has a token that has expired time.

### Bug Report

- [ ] You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.

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.