How to send video live stream to azure cloud? - java

I search for suitable service that I can use in this case:
open camera in video mode and stream it to the azure cloud.
and from other side listen to it (also clients).
I read about Azure Media services.
but according this I Understand that it is not allow from the client side.
does have other way to workaround or other service that I can use?

Can you share more details on the use case scenario?
If I understand your request above, you are looking for a way to build an Android application that can use the local device camera and push the stream to Azure Media Services, and view it on another device?
Is that the use case scenario?
That is certainly possible, but you would need an application that is capable of sending RTMP protocol. There are a number of 3rd party libraries out there that can send RTMP.
The article that you linked to was responded to by me, and what I was pointing out there is that you should try not to store any of your Azure Media Services account credentials inside a phone app. You should use a middle tier to authenticate the app user, and provide the app with the appropriate RTMP ingest URL for a Live Event.

Related

Stream Zoom session to Azure cognitive services (APIs) to retrieve realtime text

Problem statement:
Send Zoom video stream to Azure cognitive services (API calls) to get the text in realtime.
I am a java developer, I have gone through the samples provided for Azure cognitive services. Samples take input either from microphone or from a WAV files. My requirement is send input stream directly to Azure cognitive services APIs and receive realtime text.
Is it possible. Do we have APIs for such requirement?
My plan is to use an Nginx RTMP server receive the stream from Zoom (using custom streaming service) and invoke Azure cognitive service sending stream as received.
Suggestions please.

How to implement push notification for my web application built on jsp and spring?

I want to implement fcm push notification like other websites facebook,amazon etc. for my web app built on spring and Jsp. I go through the all google docs but didn't find any. How other website ask user to send them notification and after allowing they start sending?
HTTP, which has a request-response model, is ill suited for the job. You asked how some applications do it, well the older ones create a HTTP channel which remains open for the application lifetime. The backend pushes new data to this channel as and when new events occur.
Any application that is reasonably modern uses websockets. See the WSS protocol. There are libraries built around this protocol to make it easier to consume, such as socket.io. You should read the MDN reference as well: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications

How to Return Result of AWS Lambda Function to Android App?

I have a web page where I can perform CRUD operations on a DynamoDB. This web page is written in PHP and works perfectly for performing operations on the database.
I also have a Lambda function that polls the stream every time any operation is performed through this website. It polls the stream, gets all the records and returns the data as a String.
Both the web page to update the DB and the Lambda function are working as intended. However, I also have an android app that relies on data in the DB for various things. My question is how could I access the String returned by the DynamoDB from my android app? Basically, I want the lambda function to run every time the database is updated through the web page (this is done) and then automatically return the String of updated records directly to the android app. How could I go about this?
I would implement Google's Firebase Cloud Messaging API. It is fast, well integrated into Android (and many other platforms), reliable, and you get a ton of free features out of the box. You can look here for a quick feature overview to see if it is right for you.
If I understand the above requirement correctly, you need to send notification to android application. I think this can be achieved using AWS SNS. It has the feature to send the notification to mobile device.
Amazon Simple Notification Service (SNS) is a flexible, fully managed
pub/sub messaging and mobile notifications service for coordinating
the delivery of messages to subscribing endpoints and clients. With
SNS you can fan-out messages to a large number of subscribers,
including distributed systems and services, and mobile devices.
Amazon SNS Mobile Notifications makes it simple and cost effective to
send push notifications to iOS, Android, Fire OS, Windows and
Baidu-based devices.
Refer this link for SNS Mobile Push

Web server/db online to communicate with android?

I'm new in android and i want to know if there is some server / web service online that o can use to update and communicate with my app?
example: I have the app "message" in 5 phones so I want to communicate with all of them, if the phone 1 send a message all device must receive notification.
There is something that I can use maybe free?
You have many options to accomplish this goal, and most provide some free level of support.
In general if you want to "push" notifications to android devices, you can either directly use or use some provider that uses Google Cloud Messaging.
Using this approach directly means you need some web server to send request to, which will then forward a request to Google, which will then forward your "message" to the devices you want to reach. There are many options for free hosting of (smallish) web services. IBM's BlueMix and Heroku come to mind. So if your are comfortable writing web apps, this might be a good choice. I have used both (for Ruby on Rails backends to mobile apps) and found both very good, but am currently using Bluemix.
I believe Bluemix along with Parse also offer mobile data storage and easy access to Push notifications to both Android and iOS. I am currently using Bluemix via Ruby on Rails and pushing messages directly to devices via GCM and don't have much experience with those particular offerings.

Interaction between Java and Android

I am currently trying to research how to use Android with an existing java based system. Basically, I need to communicate to/from an Android application.
The system currently passes object data from computer to computer using ActiveMQ as the JMS provider. On one of the computers is a display which shows object data to the user.
What we want to do now is use a phone (running Android) as another option to show this object data to a user with wifi/network access.
Ideally we would like to have a native application on the Android that would listen to the ActiveMQ topic and publish to another Topic and read/write/display the object data, but from some research I have done, I am not sure if this is possible.
What are some other ways to approach this problem? The android Phone needs to be able to send/receive data. I have been using the AndroidEmulator for testing.
A quick and dirty way would be to have your JMS pushes the data to a XMPP/Jabber server and use a XMPP library like Smack API on the Android to connect. The advantage of this approach is that
You can emulate the point-to-point and pub/sub in JMS.
XMPP is quite extensible so what you can do is instead of carrying your payload as 'chat' text, you can create your own namespace within the XMPP packet. For data portability, you can use a lightweight like JSON in the namespace.
XMPP will handle your presence for you so your app don't have to keep track of services if they are online.
There is a nice article here that shows you how to use Smack on Android.

Categories

Resources