Code problem
I have this here code:
<html> <head> <meta charset="utf-8"> <meta content="stuff, to, help, search, engines, not" name="keywords"> <meta content="What this page is about." name="description"> <meta content="Display Webcam Stream" name="title"> <title>Display Webcam Stream</title> <style>#container { margin: 0px auto; width: 500px; height: 375px; border: 10px #333 solid; }#videoElement { width: 500px; height: 375px; background-color: #666; } </style> </head> <body> <div id="container"> <video autoplay="true" id="videoElement"> </video> </div> <script> var video = document.querySelector("#videoElement"); if (navigator.mediaDevices.getUserMedia) { navigator.mediaDevices.getUserMedia({video: true}) .then(function(stream) { video.srcObject = stream; }) .catch(function(err0r) { console.log("Something went wrong!"); }); } </script> </body> </html>
I put the code in both RAW and HTML blocks and neither works. If I make an independent HTML page off UNA - it works.
Why does it not work with UNA?
-
- · Pethol
- ·
I could just Iframe it, like I do with wordpress plugins. Just a shame that UNA become just a good-looking shell...
-
- · Cem
- ·
Pethol tis is a full page code, solution may be putting the code inside an iframe.
As UNA is already giving the header and body tags for the page, so this code will not work.
For iframes: both the container page and the page inside the iframe should be either with sll or not.
If your una site is with https:// the page in the iframe should start with https also otherwise it will not work in many browsers. -
- · Pethol
-
·
In reply to Cem
- ·
No SSL on my site. So I only have the http://
Yes I made an individual page outside of UNA to see if it worked and I posted the full code for that.
In UNA I only put the relevant code without header and footer. Still no luck.
Iframe works though. but that is a little bit sad, that everything I do has to be by Iframe. Sometimes I wonder how UNA feels about it.
I worry that she begin to develop Multiple Personality Disorder... -
- · Baloo
-
·
In reply to Pethol
- ·
I believe that you are on a bad track with your iframes and wordpress, will make things complicated and not necessarily very functional. Also will you ask your users to register twice? if you are missing some features in Una, why not ask for a two custom apps for you, and maybe for everyone if they are likely to interest other people? It seems to me that it would be much simpler ....
-
- · Pethol
-
·
In reply to Baloo
- ·
I can do it without user registration. It actually works quite nicely. The whole educational part runs on a WP plugin designed for the purpose. The WP business directory plugin with anonymous reviews runs fine. Each plugin has a dedicated subdomain. So far I have 5 WP subdomains in the works. The thing is, that with WP I can easily import the spreadsheets I get from people. With UNA it is a more lengthy and delicate process. In the future I would like to have a person hired to add data sheets. But I dont want the person to fiddle with the SQLdb. Thats another reason to use WP. UNA is not geared for multiple people adding data easily and there are currently no modules available for that kind of mid-level work.
The only issue I have(apart from the SSL issue, which should not be my issue as a user), is the online medical consultation. It has two parts. One is for pure medical consultation. The other is an online therapy system(like for people with UNA syndrome). Long time ago I did it with PhPbb. However for security and privacy, the users are required to create a secondary profile. Different username and password than UNA. This is kind of data is sensitive stuff and I dont want leaks of any kind. The data will be part of a national medical db(which I also have to build), which doctors can access to get medical history of people. I hope I will be able to use UNA for this as well... Or maybe I should leave it to be an independent system in a subdomain. I have to test different options. -
- · Pethol
- ·
Also - the UNA team seems to have plenty to do already, so the chance of seeing heavy high-quality modules in the future is not good. If there is a heavy workload, it is not unusual to rush certain tasks and the consequence is lower quality.