-
Notifications
You must be signed in to change notification settings - Fork 80
z-index not working as expected #128
Comments
I'm basically trying to achieve this - But like I said this only works in some cases, depending on who enters the room first. |
There is already an issue about this #86 |
Thanks @youssmak, I tried using https://github.com/msach22/cordova-plugin-opentok and it didn't help. |
@youssmak talkspiritlab fork works great! Thank you very much. |
@youssmak This works great on android. Does this work for you guys? |
@sagivf Did you add the transparent CSS rules? |
@wolfenrain I did. If I set up a plain Ionic app, could you have a look? |
Hello, I have the same error, but in my case I am trying to show another view on the video. my code: none(){
}else } .html } .none { } .block { } #publisher { #screen-preview { |
@sagivf I was able to achieve that layout by just this code
|
I also have the same problem |
Please when can you add z-index support for ANDROID and IOS ? Thank you. |
@mmubasher |
Hן @vikaskonsam , But all the HTML overlay elements are not visible in Android and IOS |
@Shtibel For android we are just making use of the https://static.opentok.com/v2/js/opentok.min.js and this seems to work. |
HI @vikaskonsam , That is what we did at first but when I talked to tokBox support about other problems they say that in hybrid cordova application (like Ionic) we should use only the plugin cordova-plugin-opentok because the app can brake if you use the opentok.min.js and the performance will be pure and the device will heet. So we need this fix for android as well and ASAP! |
@Shtibel Unfortunately, I do not have a solution for overlaying buttons on top of native views that hold the streamed videos. Problem is, these native views are rendered on the screen and HTML with any z-index gets rendered behind them. I have created a sample project here. |
Hi @msach22 |
@Shtibel -
this.session.publish(this.publisher); if (OT.updateViews) { OT.updateViews(); document.getElementById("publisher").innerHTML = ""; }
this.session.on({ streamCreated: event => { this.subscribed = true; this.session.subscribe(event.stream, "subscriber", { insertMode: "append", width: "100%", height: "100%", style: { buttonDisplayMode: "on", audioLevelDisplayMode: "on" } }); if (OT.updateViews) { OT.updateViews(); document.getElementById("subscriber").innerHTML = ""; } }) Have had success with this on Android 7, but not Android 8 You may also want to look at this file and see if you can do some changes there. Try looking at the lines where addView and setTranslationZ functions are used. |
Hey folks, sorry for not being able to get to this. I understand this is quite important - I have been investigating further, but I don't have a 100% solution at this time. I'll update the issue once I have more details. Let me see if @wolfenrain has any ideas? |
Yes I think this has to do with how the current native views behave. The plugin by default uses I made an implementation #86 a while ago that uses |
Hi all, This is a full description on how it works: LINK They managed to put the native google maps element behind the webview (IOS and Android) !!! Hope I helped you. |
@Shtibel Thanks for this - I will check it out and let you know! |
Hi @msach22 , Waiting for your check results :-) |
Hello @msach22, Any updates on this, It is critical for our company to overlay HTML over the publisher and subscriber video. If any help is needed I would be happy to contribute to your branch. Kind Regards |
How did you implement it to work? I removed the old plugin and installed this pull request but it doesn't build, I don't know what should I change in my code. |
any update on this? Is this the repository are u using https://github.com/talkspiritlab/cordova-plugin-opentok? any how is this repo fix the z-index issue in ios?. |
I was able to get controls to overlay the native code (only tested on iOS so far) using https://github.com/talkspiritlab/cordova-plugin-opentok (and they are clickable) @msach22 Whey aren't these changes merged back into this repo? Is there some other issue with them? I don't want to be on an unsupported/unofficial fork if I can avoid it. @bimix I ended up using the following CSS because I only want the app to be transparent when using the video feature: body.video-session-in-progress .page.page-current,
body.video-session-in-progress,
body.video-session-in-progress .OT_root,
body.video-session-in-progress #app {
background: transparent !important;
}
.OT_root video,
body.video-session-in-progress .page.page-previous {
display: none;
} when a video session is started, I added the "video-session-in-progress" class to the body, which hides or makes transparent a number of elements. When the user exits the video session, I remove the class and the app goes back to normal. |
It is 2020, any update on this? |
Unfortunately. |
Hi there? Been fighting up with this issue for some time now. Is there any update on this? |
HI all, We are not currently maintaining this plugin so I don't have any update on this. |
Hi, what are you using? |
What should Ionic developers use? |
Thank you it worked :D |
It might help damianrejman/cordova-plugin-opentok@db1692b |
Any update on this issue, it's 2021 September TT |
I'm trying to overlay the users video (the publisher) over the user he is communicating with (the subscriber).
The order of the participants joining the session seems to affect whether this is possible or not.
I'm not sure if the z-index has any effect or if it's just inconsistent.
The issue is for IOS and Android. web works fine.
I tried a load of different CSS setups, but nothing was consistent.
I can create a project and screenshots, but I want to first see if someone has encountered this and if there is someone who can look into it.
The text was updated successfully, but these errors were encountered: