Video / Voice Chat Web Application with Java - java

I am trying to add a voice / video chat feature to my web-based chat application developed in JavaEE.
I have not found any tutorials on how to achieve that with both Server and Client written in Java (no javascript allowed).
Is there any tutorials that can help me (using websockets for example) ?

You might check out the github project Jitsi. I don't know exactly what tech they are using, but there is a Java version and the code is available for inspection. They may have a forum. I have only taken a cursory look but was reminded of the project by your question.

Related

How to program a video calling application in Vaadin 14

I'm new to Vaadin. I want to create an application that will allow a user to make video calls from an Android device to a Desktop/Laptop. I tried searching for examples on YouTube but could not find anything. i want to implement this on Vaadin 14 spring boot and java project. Please help with an example to do this kind of project.
Your question is quite wide topic and in the borderline can it be answered according to StackOverflow policies.
My general advice is to study WebRTC for peer to peer communications. I would recommend to use the application only as a broker of the connection. I have seen proof of concept demo made about this on Vaadin 8.
Vaadin framework itself does not provide official WebRTC using components, libraries at the moment. However there was add-on made for earlier Vaadin 8. It is using 3rd party JavaScript library. Just noting, that there are couple of libraries to choose from.
https://vaadin.com/directory/component/webrtc-add-on

Google App Engine backend service(module) with Java

I am a newbie in Google App Engine. I am trying to create a service (previously called "modules") in Eclipse in Java. I didn't find any resources which shows a step-by-step guide to create a service for app-engine in eclipse or any other IDE. What are the configuration files I need to take care of?
I have tried to find docs on cloud platform and everything says about having front-end. There are articles about micro-service architecture and migrate an existing app. But I don't have an existing app. Every tutorial talks about cloning an hello world app and deploying it which shows hello world with appspot url. But didn't found anything for the service(module).
The service I am trying to create does not have a front-end. It just runs in the background and watch the database and sends emails and notifications to the users based on database change. This is not an API and there isn't any request-response architecture.
How can I achieve this?
Any reference material or samples which can guide me to the right direction?
To set up an App Engine project you could have a look at Romin Irani tutorials which are very good (https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.qclm8gyd9).
There is also a free MOOC on Udacity which covers Endpoints with Eclipse: https://www.udacity.com/course/developing-scalable-apps-in-java--ud859
Both cover the building of Endpoints and querying them from front-ends, which I understand is not your goal. But the Udacity course covers Cron jobs and sending of emails (both in Lesson 5), which is what you would use for your needs. See also https://cloud.google.com/appengine/docs/java/config/cron#creating_a_cron_job which is very good Google documentation.
So in a nutshell: I would start by Romin's tutorial to understand Eclipse set-up and main concepts, then follow Udacity MOOC (especially part on Cron and mail) and then dive into the Google doc for the fine tuning of your development.
Last but not least, for sending emails, nowadays, Google advice to use Sengrid. But I think it worth following the Udacity lesson on sending email, even if you switch from native email sending to Sendgrid later on. Again, the doc is complete and clear.
Hope this helps!

How to use WebRTC in GAE/J Project

I want to start Video Session on a specific date and time between two users of my application.The Application is written in Java on Google App Engine.
I know about the Twilio SMS/Voice Services ,but GAE docs don't mention about how to have Video Calls.
I have looked into TOKBOX API, which seems a good fit, but what i want to know is , is there a better way to have a Scheduled Video Call in Google App Engine. Is there any bundled service i can use.
Thank You
TokBox has created a Starter Kit called ScheduleKit that has about the same purpose. The UI is modeled like a customer support application, and it also emails a reminder for the video chat. The sample code is built in PHP, but it can easily be ported to work with Java. Take a look at the OpenTok Java SDK.

Websocket on Java SE?

I want to make real time chat and I want to use Java SE with websockets on server side and html/JS on client side. It's very hard to find websocket library that works with Java SE (or I'm looking at wrong places). Is using Java SE for websocket application at all good solution?
I followed this tutorial:
https://spring.io/guides/gs/messaging-stomp-websocket/
but imports are not working well for me:
The import org.springframework.boot.autoconfigure cannot be resolved
Is this because Java EE is required?
Please give mu URL of some (working) tutorial/youtube video. I'm using Eclipse and I'm not too experienced with it, so "for dummies" rated article will be more suitable.
I know that question is not very precise, but I'm desperate - wasted days, tried few different libraries, but nothing works, so I just need to get it running.
Jetty is a very lightweight library that helps JavaSE developer with all kind of network communication for client and server. Chat applications have been the 'hello world' for such a kind of library. I would recommand any good tutorial on this (just type websocket chat jetty in your favorite browser). If your main goal is to LEARN how it works, instead of copy/paste, I would recommand a simpler tutorial like this one.

Write Windows Phone 8 app using Java API?

I am looking to develop a Windows Phone 8 application based on a Java API but I'm not sure how to proceed. The developer of the original java application said he doesn't have enough demand for a WP8 version, so all that's available is the API. Unfortunately, I don't have any experience in interoperability of these two.
How can I call the java functions from WP8? My guess is that I must have a server in the middle to make the connection?
Thank you
The only way this would work is if you create a web service on top of the Java API (I assume its a library you're referring to). Then have the WP8 app call the web service. There should be plenty of pages online showing you how to consume web services from WP

Categories