How to stream video from android camera using RTSP? - java

I have to build an android app that can stream video from phone to server using RTSP. What is the best method to implement this?

Related

Alternative to play audio during call in android

I am implementing automatic call response application in android.In my application the call is respond by the audio file which is recorded by user and that file will play when incoming call is answered automatically by program.I have searched for it to know how to do this but all are saying that this is not possible in android to play audio file during call.So, I want to know what are the alternatives that can be used for doing the same thing.
According to android official docs, it is not possible to play audio while a call.
See the docs here :https://developer.android.com/guide/topics/media/mediaplayer.html
Note: You can play back the audio data only to the standard output
device. Currently, that is the mobile device speaker or a Bluetooth
headset. You cannot play sound files in the conversation audio during
a call.
As an alternative you can use Twilio : https://www.ipragmatech.com/play-audio-file-android-call-using-twilio/

Stream Video from Raspberry Pi to Android app

I am trying to stream video from a webcam on a raspberry pi to an android application. I used motion library on the raspberry pi to stream the video. This worked fine as I can see the video on my browser by navigating to http://raspberrypiIP:8081.
Question: how do I display this video on an Android app?
I went for LibVLC, but I am on windows environment and the lib cannot be built. I wanted to try GStreamer but I am not used to native libraries.
Are there some java libraries enabling this or other easier ways that enables me to view the video on an Android phone?
I'm using Android Studio and I'm quite new to Android development.
I have not yet attempted to stream from Raspberry Pi to Android. However, I have streamed from Raspberry Pi to YouTube Live Events (https://www.youtube.com/my_live_events) which is easy to set up and get working.
I have also used the Android YouTube API Player API to play YouTube videos inside some of my Android apps (https://developers.google.com/youtube/android/player/).
So, I recommend the YouTube approach as a first line of enquiry.

Send OpenCV video to another android device

I'm trying to stream a video generated with OpenCV (using the webcam and doing some image processing) and audio to another android device over Internet. This will be similar to a video call with custom video frame.
I looked at WebRTC and could not find a way to send a custom image (OpenCV Mat object).
Could you suggest me any other way, any SDK or an approach to overcome this step (Client-server model) ?
Thanks in advance

Accessing android phone Camera thru USB from my java openCV application in real time

I'm trying to learn computer vision with OpenCV and i need camera to work with but the only camera that i have is on my android phone.
So im thinking about connecting it to my pc (via USB) and using it with my application. Is anything like that possible? Can i take information from camera connected via usb in real time?
I have no experience with something like this. I know i can just record video ,save it,put it on my pc, and use it as resource -bud i would prefer to have real time streaming of video while my application will work in background on my desktop computer.
Will i have to code some android application to get this working?Or can i simple ask for that data from my desktop application?
If you only want to experiment and learn to use OpenCV, you can get an IP Camera app for your phone and then read the image stream from your computer (here's an example of how to do that). That is the easiest "real time-ish" solution I can think of.
I found a simple way to use the a web cam (IP Webcam installed on my smartphone through Play Store) as camera using OpenCV and Java. Here is how: just copy the IP Webcam web link inside the Video Capture. Like this.
org.opencv.videoio.VideoCapture webSource = new VideoCapture("http://192.168.43.1:8080/video");
The smartphone and the laptop should be inside the same Wi-Fi.

Android - playing RTSP audio streams using MediaPlayer

I'm trying to creating radio application and one of the radio stations is using rtsp:\ protocol (rtsp:\\addres\file.sdp with mp4a codec). I was trying to play it using MediaPlayer but it doesn't want to work. Is it possible to play such audio stream using android with MediaPlayer or... other lib?
Any one :(?
Android supports for RTSP streaming. However, usually the Android Emulator have issued with playing audio or video streaming application. You should test your streaming application on real device

Categories

Resources