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.
Related
How to use Camera2 and CameraX libraries to open android phone cameras faster using java programing language?
I'm using this lib implementation 'androidx.camera:camera-core:1.2.1'
I'm trying to implement camera functionality to open my phone camera using a latest library of google on the latest devices and open faster.
I am running a JavaFX application on a Raspberry Pi that is on the same network as my Wansview NBC540W ip camera. At the moment I simply would like to see the output of the ip camera in the JavaFX application. Any suggestions or working examples?
If you look at this link: https://www.ispyconnect.com/man.aspx?n=wansview you can see that the video stream from that camera is an .asf stream.
Here is some information on streaming in Java applications: How to play radio live stream .asx video/x-ms-asf?
I am using the android sdk of qmunicate. I can call just fine between android and android but if I want to call to web or to IOS it just don't come through. In the IOS log I can see that someone is calling or at least connecting but it won't come through on the phone.
We recommend you to download the latest version of Android WebRTC SDK (2.2.6) as it has most audio and video calling issues fixed.
You can download it and check out the framework changelog here:
http://quickblox.com/developers/Android#Framework_changelog
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.
I am learning android on API-8 (Froyo), but the problem is the emulator is also for Froyo which doesn't include the facility of sending email from app or capture a picture from webcam.
I was wondering if I download the emulator for ICS 4.0 in order to run my Froyo apps, will this emulator provides the following features:
Sending email
Supports computer's webcam for capturing pictures
Ok so first of all:
The Android Emulator is always the same for a given SDK version.
It is the system that runs on it that differ.
Android emulator documentation
Then, to send email from the emulator please reffer to How can i configure gmail in Android emulator?
And finally to capture a webcam's video, check:
How to use web camera in android emulator to capture a live image?
http://www.inter-fuser.com/2009/09/live-camera-preview-in-android-emulator.html