Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

z-index not respected #194

Open
fpcuriosity opened this issue Sep 29, 2020 · 0 comments
Open

z-index not respected #194

fpcuriosity opened this issue Sep 29, 2020 · 0 comments

Comments

@fpcuriosity
Copy link

I'm using the plugin to build an Ionic application with Cordova 9.

I'm having troubles getting the z-index set in the css to be respected. What it seems to me is that the last stream to connect to the session will always go on top of the other already existing streams.

My setup is very simple and I'm trying to have the publisher stream always on top of the subscriber stream. The code goes like this.

About CSS:

#videos {
  position: relative;
  width: 100%;
  height: 100%;
}

#publisher {
  position: absolute;
  height: 360px;
  width: 240px;
  bottom: 10px;
  left: 10px;
  z-index: 10;
}

#subscriber {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: 20;
}

About HTML:

<div id="videos">
    <div id="subscriber"></div>
    <div id="publisher"></div>
</div>

Thanks for your support!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant