Skip to content
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

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

Open
ahadcove opened this issue Apr 3, 2017 · 11 comments
Open

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

ahadcove opened this issue Apr 3, 2017 · 11 comments

Comments

@ahadcove
Copy link

ahadcove commented Apr 3, 2017

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
Copy link
Contributor

Check out the crosswalk-webview plugin: Crosswalk Project.

@ahadcove
Copy link
Author

ahadcove commented Apr 3, 2017

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
Copy link
Contributor

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?

@victor-torres victor-torres changed the title Trying to implement webrtc with verto Trying to implement verto on mobile devices with Apache Cordova Apr 3, 2017
@StefanYohansson
Copy link
Contributor

StefanYohansson commented Apr 3, 2017

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

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

@ahadcove
Copy link
Author

ahadcove commented Apr 3, 2017

@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

@italorossi
Copy link
Member

@StefanYohansson are you a stack overflow bot?

@StefanYohansson
Copy link
Contributor

@italorossi Something like that. haha 🥇

@ahadcove
Copy link
Author

ahadcove commented Apr 4, 2017

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

@StefanYohansson
Copy link
Contributor

StefanYohansson commented Apr 4, 2017

@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
Copy link
Contributor

@ahadcove any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants