Unable to get camera access for iPhone/iPad - opentok

Using the web (JS) version of opentok 2.14.8 with H.264 video codec in a relayed session. I am used the opentok reactJS accelerator sample app as the base.
Currently the allow access to camera/audio popup works well on Android (Chrome), PC/Mac (Chrome/Firefox/Safari). Note that I manually trigger a button to get access to the camera and show the feed.
When trying to access camera on iPhone/iPad I grab this error.
VM537:19721 OT.Publisher.onStreamAvailableError
OT_CONSTRAINTS_NOT_SATISFIED: It's not possible to satisfy one or more constraints passed into the getUserMedia function (getUserMedia error: OverconstrainedError)(anonymous function)
# VM537:19721onStreamAvailableError
# VM537:15233emit
# VM537:5669trigger
# VM537:1799(anonymous function)
# VM537:56679tryCatch
# VM537:498invokeCallback
# VM537:513publish
# VM537:487publishRejection
# VM537:428flush
# VM537:217
VM537:19721 Received connectivity event: "Failure" without "Attempt"
VM537:19721 OT.exception :: title: Unable to Publish (1500) msg:
GetUserMedia(anonymous function)
# VM537:19721handleJsException
# VM537:6811onStreamAvailableError
# VM537:15250emit
# VM537:5669trigger
# VM537:1799(anonymous function)
# VM537:56679tryCatch # VM537:498invokeCallback
# VM537:513publish # VM537:487publishRejection
# VM537:428flush
# VM537:217
VM537:19721 OT.Publisher.publish failed to getUserMedia:
OT_CONSTRAINTS_NOT_SATISFIED: It's not possible to satisfy one or more constraints passed into the getUserMedia function (getUserMedia error: OverconstrainedError)(anonymous function)
# VM537:19721(anonymous function) # VM537:16130promiseReactionJob
How can I force the 'access to camera' popup on iPhone/iPad?
Note: I have tested the https://safari.opentokrtc.com/ on the same devices and they work well.

My guess is that you are setting the resolution to a low value like 320x240. There is an issue where iOS cannot give this resolution.
https://bugs.webkit.org/show_bug.cgi?id=176349
If you update your code to use 640x480 instead for iOS you should be OK.

Related

How to configure hostapd for MACSEC?

I'm trying to configure hostapd to dynamically set up a MACSEC channel after authentication.
From the sample hostapd.conf file, there is an entire section that talks about MACSEC configuration items, which says
##### MACsec ##################################################################
# macsec_policy: IEEE 802.1X/MACsec options
# This determines how sessions are secured with MACsec (only for MACsec
# drivers).
# 0: MACsec not in use (default)
# 1: MACsec enabled - Should secure, accept key server's advice to
# determine whether to use a secure session or not.
...
...
but for whatever reason when I try to set any of these parameters in /etc/hostapd/hostapd.conf, like macsec_policy=1, hostapd fails to start with an error.
The macsec kernel module is loaded:
root#machine:~# lsmod | grep macsec
macsec 49152 0
I'm using the latest hostapd (v2.10), how do I do configure MACSEC?
I've searched a ton online and seem some similar post insinuating that they were able to do it, like this one which even has excerpts from his config file.
What I don't understand though is that this post is a year old, and I'm using the latest hostapd, but it doesn't recognize some of those parameters when I try, for example:
eapol_version=3 gives:
Line 17: invalid EAPOL version (3): '3'.
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
macsec_policy=1 gives:
Line 26: unknown configuration item 'macsec_policy'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
driver=macsec_linux gives:
Line 86: invalid/unknown driver 'macsec'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
I can't figure out why it doesn't recognize these options when there are other posts over a year old that seemed to do it just fine, hostapd has been at v2.10 since 2019 so this shouldn't be a version thing, right? What am I missing?

Seeing this error in console log using ngxs store. "Error ocurred while serializing the store value, value not updated"

Affected Package
The issue is caused by package #ngxs/storage-plugin/fesm5/ngxs-storage-plugin.js
Description
I am using ngxs store in my angular application for storage management. Recently I am seeing below weird console error in my browser when I switch between various angular components while dispatching action to store
'Error ocurred while serializing the store value, value not updated.'
I tried to explore on this but there is no proper documentation available over the internet on this.
Exception or Error
ngxs-storage-plugin.js:288 Error ocurred while serializing the store value, value not updated.
(anonymous) # ngxs-storage-plugin.js:288
push../node_modules/rxjs/_esm5/internal/operators/tap.js.TapSubscriber._next # tap.js:45
push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next # Subscriber.js:53
push../node_modules/rxjs/_esm5/internal/ReplaySubject.js.ReplaySubject._subscribe # ReplaySubject.js:67
push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe # Observable.js:43
push../node_modules/rxjs/_esm5/internal/Subject.js.Subject._trySubscribe # Subject.js:89
push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe # Observable.js:29
shareReplayOperation # shareReplay.js:42
push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe # Observable.js:24
push../node_modules/rxjs/_esm5/internal/operators/tap.js.DoOperator.call # tap.js:18
push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe # Observable.js:24
push../node_modules/rxjs/_esm5/internal/operators/catchError.js.CatchOperator.call # catchError.js:18
push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe # Observable.js:24
push../node_modules/rxjs/_esm5/internal/operators/tap.js.DoOperator.call # tap.js:18
push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe # Observable.js:24
shareReplayOperation # shareReplay.js:30
push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe # Observable.js:24
push../node_modules/#ngxs/store/fesm5/ngxs-store.js.InternalDispatcher.dispatch # ngxs-store.js:1751
dispatch # ngxs-store.js:2108
Libs:
#angular/core version: "~8.2.14",
#ngxs/devtools-plugin: "^3.7.0",
#ngxs/logger-plugin: "^3.6.2-dev.master-eaa5d86",
#ngxs/storage-plugin: "^3.7.0",
#ngxs/store: "^3.7.0",
Same issue with 3.6.2-dev version also.
I took a look at the source code for the error: https://github.com/ngxs/store/blob/2b6b81823e31f7c3d6835f4b0bec70364cb734c7/packages/storage-plugin/src/storage.plugin.ts#L62
They left this note:
// Caretaker note: we have still left the `typeof` condition in order to avoid
// creating a breaking change for projects that still use the View Engine.
Looks like you need to opt in to Ivy, and get off the View Engine perhaps. Here's the latest documentation for Ivy: https://angular.io/guide/ivy and if you are on version 8 of Angular: https://v8.angular.io/guide/ivy

I get an error when using selenium chromedriver to create a session where I am logged into my account

The code I'm using start the session doesn't seem to be working, but I don't know what is wrong with it.
I can create a session without logging in and do what I want but when I try to the use the recommended method of creating the driver with an Options object and adding a user-data-dir, I run into errors.
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('user-data-dir=C:\Users\user\AppData\Local\Google\Chrome\User Data')
driver = Selenium::WebDriver.for(:chrome, options: options)
driver.get("https://login.tripleseat.com/")
email_field = driver["login"]
email_field.send_keys("clshaps93#gmail.com")
email_field.submit
I want my program to get to the bottom section signed into my account without running into an error.
If I don't have a Chrome window already open, I end up with this error:
1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/response.rb:32:in initialize'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/response.rb:69:inassert_ok': unknown error: cannot determine loading status (Selenium::WebDriver::Error::UnknownError)
from no such execution context
If I do have Chrome window already open, I end up with this error:
1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/response.rb:32:in initialize'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/response.rb:69:inassert_ok': unknown error: Chrome failed to start: crashed (Selenium::WebDriver::Error::UnknownError)
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Other values I have tried to use for user-data-dir just end up being ignored, in that a session starts without logging me in. Is there some code I need to add somewhere to avoid these errors?

Why is my Oracle ORDS plugin not working?

I installed Oracle ORDS (with Apache) and its working fine except for the plugins.
When I use the plugins in Oracle Apex, its working fine, but
when I open the ORDS, the plugins are not showing up at all, I just have an empty region.
Can anyone help with this issue?
GET http://ictleave:85/ords/moag1/static-files-not-configured/105/files/plugin/750188890149322211/v76/jk64reportmap.min.js net::ERR_ABORTED 404
VM737:4 Uncaught ReferenceError: jk64reportmap_initMap is not defined
at <anonymous>:4:1
at r_R7869312333863101 (f?p=105:1:13096735246898::::::104)
at <anonymous>:1:1
(anonymous) # VM737:4
r_R7869312333863101 # f?p=105:1:13096735246898::::::104
(anonymous) # VM737:1
setTimeout (async)
r_R7869312333863101 # f?p=105:1:13096735246898::::::104
(anonymous) # f?p=105:1:13096735246898::::::105

"mean init" fails during admin user creation

I follow the basic installation tutorial on for the mean stack on OS X.
MongoDB is running and all dependencies are believed to be installed.
During init of my first app, the script fails when asking for the admin user password (it fails before I am allowed to input anything as my admin password):
$ mean init myApp
? What would you name your mean app? myApp
? The Mean project is currently in developer preview. To help improve the -
quality of this product, we collect anonymized data on how the mean-cli is used -
You may choose to opt out of this collection now (by choosing 'N' at the below prompt)
or at any time in the future by running the following command:
mean disable user-reporting
Do you want to help us improve the mean network (Y/n)? Y
? Please provide your email so we can create your first admin user: joe#doe.com
? Please provide your username so we can create your first admin user: admin
Cloning branch: master into destination folder: myApp
git clone --depth 1 -bmaster https://github.com/linnovate/mean.git "myApp"
Cloning into 'myApp'...
##############################################################
#
# !!! MONGOOSE WARNING !!!
#
# This is an UNSTABLE release of Mongoose.
# Unstable releases are available for preview/testing only.
# DO NOT run this in production.
#
##############################################################
DB connection successful!
Please provide password so we can create your first admin user
prompt: password: /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:246
throw message;
^
TypeError: Cannot read property 'length' of undefined
at processResults (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1581:31)
at /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1619:20
at /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1157:7
at /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1890:9
at Server.Base._callHandler (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:448:41)
at /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:481:18
at MongoReply.parseBody (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
at null.<anonymous> (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:439:20)
at emit (events.js:107:17)
at null.<anonymous> (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:201:13)
I am able to create users manually in the resulting app folder.
But the resulting application seems to be incomplete and I cannot start it.
$ mean user joe#doe.com --addRole admin;
Adding role `admin` to user `joe#doe.com`
##############################################################
#
# !!! MONGOOSE WARNING !!!
#
# This is an UNSTABLE release of Mongoose.
# Unstable releases are available for preview/testing only.
# DO NOT run this in production.
#
##############################################################
DB connection successful!
successfully updated
You need to install mongo database.
http://www.liquidweb.com/kb/how-to-install-mongodb-on-ubuntu-14-04/

Resources