EvoluxBR/verto-docs

Trying to implement verto on mobile devices with Apache Cordova

ahadcove opened this issue · 11 comments

I am porting our web app to mobile. I am not exactly sure what cordova plugin or what I should be using to enable audio and video on mobile, any help would be appreciated.

Check out the crosswalk-webview plugin: Crosswalk Project.

I was able to implement verto using crosswalk, Now I am running into an issue where I am not receiving media streams

 There has been a problem retrieving the streams - did you allow access? Check Device Resolution, [object Object]

Call ended with cause: Device or Permission Error

Any direction on where to go next?

I have no experience implementing verto on mobile devices using Cordova, although some friends have told me to use this Crosswalk extension for other browser cross-platform issues.

@StefanYohansson @thehunmonkgroup, any insight here?

@StefanYohansson I think these permissions is what I was looking for, sadly I can't try them out just yet because i;m getting an error that I'm trying to workout:

Request was denied for security error

@StefanYohansson are you a stack overflow bot?

@italorossi Something like that. haha 🥇

Would you happend to know where the CSP (Content Security Policy) meta tag is? I can't seem to find it anywhere?

@ahadcove

Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware.

To enable CSP, you need to configure your web server to return the Content-Security-Policy HTTP header (sometimes you will see mentions of the X-Content-Security-Policy header, but that's an older version and you don't need to specify it anymore).

Alternatively, the element can be used to configure a policy, for example:

<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src https://*; child-src 'none';">

https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
https://crosswalk-project.org/documentation/manifest/content_security_policy.html
https://www.w3.org/TR/CSP/
https://www.photokandy.com/2015/11/25/cordovaphonegap-csp-quicktip/


basically, if you don't put a CSP line, you don't need to remove it, just put things on config.xml from stackoverflow link.

@ahadcove any update?