-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any way to put the camera view underneath the HTML? #133
Comments
What you want is similar to setClickable from Google Maps plugin https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Map#mapsetclickable Very useful |
Thanks for the reply; I ended up putting the layer displaying the camera view underneath the webView. |
@devand123 do you have and willing to share some code on this? |
Hi @devand123 & @felquis! Any codes or techniques that you can share? I'm having the same issues. Thanks! |
@byronalfonso You could go through the commits of @devand123 his commits on his own fork of this plugin: devand123@11754ae. Maybe that will help you. |
@mark-veenstra I tried to add the @devand123 plugin but it doesn't works. Did you could add layers over the video ? |
@rafaelcmrj for which platform are you testing? |
@devand123 Cordova for iOS and Android |
video doesn't shown but the xcode console says it's alright (successful connected) |
Ah – do you have this in your css?
|
uhmmmm no... let me try it |
The webview needs to be completely transparent in order to see the video which is layered below it. |
and can I add any dom element over it ? |
Basically, the entire cordova application is over the camera/video view. So yes, anything your application displays is over the video. |
@devand123 the video is shown right now, but how can I set the position ? I'm trying to set the css but it doesn't works... #webcam { the video still on top 0,0 |
video is shown but still on top..any param do send to background ? |
So the video is a native element, so you would have to either extend the cordova API to edit the width/height of the video layer natively. As mentioned previously it should be completely behind the entire webview. |
@devand123 but your code don't put the video behind the webview ? I thought so... |
It does. |
:S I'm really confused right now... what should I do to send the video to background ? |
It should automatically just happen – if you are using my plugin. |
yeah, I'm using but video still showing on top: Javascript
HTML
CSS
|
@devand123 worked.. I tested use * { bg transparent } and worked... something is setting background-color (maybe ion-panel)... I'll figure out it and fix.. thanks |
@devand123 it's almost done... couldn't us remove the 'play' button over the video ? |
I think that would be done through html attributes. iirc its something like controls="false" on the video element
Or something with the opentok API, checkout their docs. |
doesn't works :/ |
I've changed how the plugin work to put all video below the webview. I can't show the actual cordova project but here is my forked project |
I had these changes pulled into my own fork and after that updated my app and tested, but I only have black screens and no cams loaded. |
I'm using that in an app and its working nicely with the controls overlaid on the video. Ensure you have all the backgrounds to transparent. The plugin draws black squares in the webview and then creates another layer with the video in roughly the same place. These may be blocking the actual video layers when you put it below the webview. |
Hi! Does anyone have any solution for this problems? |
@Fifcyk have you tried going through each comment in this thread? |
Sorry @devand123 I see I didn't read this thread carefully enough. |
No worries – my modification of the plugin should help you get there. Also, follow along this thread to see a couple of other little things you may have to do in conjunction to just using my modification. |
Thank's I'll try and write later if I succeed or no. |
@devand123 I have tried your plugin but it didn’t work for me (it didn’t compile, maybe because I use XCode8 and iOS10 and also your plugin uses Opentok SDK 2.3.1, songz's is 2.5.0). Because that cordova changed a little bit in version 4.0 this method:
didn’t work i found information that it should be moved to pluginInitialize (https://github.com/apache/cordova-ios/blob/master/guides/API%20changes%20in%204.0.md)
I didn’t know where to put all this code but after i made this, plugin run again and as you said it place video under the cordova app (so after making all background’s to transparent i can see it under my menu). But, I have some bug in the video streams behavior…
Problem is that the Publisher stream is displaying in full size of window and what i think it covers Subscriber stream. |
I found bug, the couse was in TB.updateViews(); |
Is there any way to put the native camera view (whether its publisher, or subscriber) under the cordova app, instead of having it overlap?
I need to have HTML buttons overlayed, so that user's can perform certain actions.
The text was updated successfully, but these errors were encountered: