EvoluxBR / verto-docs

Verto jQuery library documentation.
http://evoluxbr.github.io/verto-docs/
Other
53 stars 25 forks source link

Trying to implement verto on mobile devices with Apache Cordova #20

Open ahadcove opened 7 years ago

ahadcove commented 7 years ago

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.

victor-torres commented 7 years ago

Check out the crosswalk-webview plugin: Crosswalk Project.

ahadcove commented 7 years ago

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?

victor-torres commented 7 years ago

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 commented 7 years ago

@AhadCove Check this http://stackoverflow.com/a/31212843/2770500

and this: https://github.com/cesterlizi/vertortc

ahadcove commented 7 years ago

@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 commented 7 years ago

@AhadCove http://stackoverflow.com/questions/40035794/crosswalk-error-about-request-was-denied-for-security#42254117

italorossi commented 7 years ago

@StefanYohansson are you a stack overflow bot?

StefanYohansson commented 7 years ago

@italorossi Something like that. haha 🥇

ahadcove commented 7 years ago

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

StefanYohansson commented 7 years ago

@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.

victor-torres commented 6 years ago

@AhadCove any update?