Webrtc app develop, web and android - javascript

I have a study project which consists in using the webrtc for a web audio video chat application and also its mobile version android ios. I have seen many different tutos, but I have to build my own server and use it locally. So you have some tutorial or technical advice? thank you

If you want to make an hybrid app means in cordova then try this link in this u can get all your answers
https://www.webrtc-experiment.com/
and if u want to make a native app in android and ios then you should try this links
https://tokbox.com/
https://github.com/webrtc/apprtc

Take a look at this repo: webrtc as well as this boilerplate: https://github.com/webrtc/apprtc - helped me a quite a lot.

Related

Why my project doesn't find some images when downloading it as a progressive web app in a mobile phone?

I'm working on a test project to start learning about service workers and progressive web apps.
This project is hosted on github in https://github.com/Pablo-No/Privado1, however, when I download it as a progressive web app in a mobile phone some images aren't loaded correctly and alt text is shown instead, I don't know how to fix it, probably because I don't know how service workers and progresive web apps work, and that's why I'm working on this project.
In my computer it works perfectly, even when the app is downloaded without connection to internet (thanks to the service worker, I think). I've seen some similar issues, but I think they're different, however I may not be correct and I'm sorry if this issue has been answered yet.
I've used Chrome and Chrome mobile with the desktop and the mobile phone (the mobile phone uses android).
Actually I've made it works properly by using code in https://codelabs.developers.google.com/codelabs/your-first-pwapp . I hope this question and answer helps other people if they have the same issue.

Storing video clips for react/phonegap app

So I have an idea for an app that'll include numerous short video clips. 1st question, is it possible to publish a React/NodeJs/MongoDb application on the android app store using PhoneGap/Cordova? 2nd question, assuming that the first question is possible, how and where would I store/call these video clips for the app?
I've never developed on this scale, any and every tip is appreciated!
Thank you.
I have worked on an application where i had to store small intro videos and pictures of a product, here is what i did and what you can do as well (of course you can choose other technology stacks)
What i did was use native Android Development(Java) for the android app and use PHP(Lumen) for backend where i store my videos on Cloud Storage on GCP.
You can build & publish your android app with PhoneGap(or Cordova choose which ever you are familiar with) and send the videos to your server for storage, your server can be built with NodeJS and MongoDB.
But if you haven't yet checked out Firebase i highly recommend it since it will remove many of the backend work(like uploading a video etc) and make development faster

using webrtc code on my cordova app

Im trying to use webRTC API such as getUserMedia and RTCPeerConnection for my app which is built with the cordova framework.
I am wondering if its possible for webRTC to work on both Android and iOS since my video chat app is a hybrid app (js and html) which is supposed to manage the entire p2p video chat by itself, unlike pc versions which require a web browser for the webRTC communication.
Yes, It is possible to get them to work. Keep in mind, the architecture of cordova application is reliant on a Web View rendering of your application. That web view will need to provide the WebRTC APIs to consume in JavaScript. This thread suggest the web view in iOS 11 does not support it. In fact, it is pretty new to Safari all together. This documentation says that the latest versions of Android Web Views do have support. WebRTC is a collection of technologies that enables RTC, and there are native libraries for accomplishing this. I have seen a couple of plugins for Cordova that enable access to native code so you are not as reliant on the Web View.
cordova-plugin-iosrtc
phonertc
Good luck!

Node.js app into an iOS app?

I have a Node.Js app running on a publicly accessible server.
I want to make it possible for users to access it as a native iOS app.
Is there a simple way of simply making an iOS app and having it show my Node.Js app running from the server? Or it's more complicated than that?
I looked into PhoneGap but maybe some other recommendations also?
Thanks!
PS I know the question is broad but that's why I'm asking – to focus my question and to know what to do next.
Node.js - this is a server side application. So you need to build client application which can communicate with your node.js server by Rest api or so...
As you mentioned you can build hybrid html5/js app with PhoneGap, Cordova, Ionic "wrappers/libraries" which will pack it into native iOS/Android/... application and that app can talk to your node.js server and transfer data you need.
Also, as Daniel Larsson mentioned for some specific pages you can use webview to display page straight from the web, but webview can be a part of your application but not an entire application, because Apple will reject it during review process.
If you want to port your existing web-app over to being a native app on the app store, I can positively recommend PhoneGap having developed multiple apps with it after completing the same research you are doing now.
As NYS said, you'll need to package all your web-app design (HTML/CSS+images/JS) inside the PhoneGap app, any other way simply wouldn't be responsive enough.
As for what to do next, I would dive straight into creating a PhoneGap application and see how your app runs inside the Cordova wrapper out of the box. The issues I faced were with scrolling on divs holding content, and non-responsive click events, both were easily solved with javascript libraries.
Cheers Chris!
You may use Socket.io for native option.
http://socket.io/blog/socket-io-on-ios/
https://github.com/socketio/socket.io-client-swift/
https://github.com/pkyeck/socket.IO-objc/
https://github.com/square/SocketRocket/

File transfer in phonegap using bluetooth

i am new to phonegap, i would like to know is that possible to transfer text file from one device to another device using bluetooth in phonegap. i have gone through many example but i couldn't find any relevant answer to this.
I had seen few example which can detect nearest bluetooth devices but not about file transfer using bluetooth. Does anyone have any ideas? Thanks in advance
I'm assuming it is possible with bluetooth, but I haven't seen any examples. I'm trying to do the same thing. Also, none of the cordova bluetooth plugins I've seen support Android, IOS, Windows Phone 8.x and Windows 8.x

Categories