Android MediaProjection screen mirroring to Web browser over USB - android

I want to mirror Android Screen to desktop web browser. I am able to capture the screen using MediaProjection - thanks to sample app.
But next part is hard one - sending captured data to desktop! I know the technique to establish HTTP connection to desktop program by ADB port forwarding but I guess FPS will be very low.
How can I stream this captured screen data to desktop? What sort of connection would I need and what codecs would I need on Android side to ensure speed?
Thanks

Related

Stream video from raspberry pi to andriod unity app?

At school, we are busy with a project where we need to have 2 camera input's connected to an android phone with a unity application running.
At the moment we have the idea to use some USB webcams and plug those into a raspberry pi. This has been done before. But the part that we are not really sure about is how we can connect the raspberry pi to an android phone and transfer the video.
Here is a schematic of what I want to achieve. The idea is that we want to simulate different kinds of vision of animals in a google cardboard experience.
The part I'm not sure about is the connection to the android phone and unity. The USB webcams to raspberry shouldn't make a problem.
I hope someone can give an answer or point me in the right direction.
Many thanks in advance,
Bastien Olivier Dijkstra
This sounds like a neat project. Are you setting it up so each camera gives the view for each eye (hence the 3D aspect)?
For starters, if you simply want static images, you can try to SCP or FTP the resultant video files to your android.
AndFTP does a pretty good job of FTP for Android devices.
On the other hand, if you want to watch a live stream of the video from the RaspiCam, you can do that also with a myriad of other apps, but I personally use IP Cam Viewer to view the RTSP stream.
You will basically be viewing each RTSP stream independently. You may need to adjust the viewing resolution so it doesn't overload your RPi, but Unity can deal with up to eight cameras and up to eight viewing 'screens'.

Getting live video on an android app from a wireless camera

I am trying to make a system wherein I need to send live video covered on an external wireless camera (not phone camera) to an android app I am going to make. The camera's I searched for only send videos to their own apps. So, is it possible in some way to design an app which will be able to take that live video? The camera is connected to the phone through Wifi. I need to process the video for some real time application, so I will need the live video only and not after it gets saved through their app. I have no prior experience in android, so any help will be appreciated. Thanks.

How to use android cam as security surveillance cam for live video streaming like IP Cam app

I wanna build an app that will use android camera video and stream it to another android phone or on the web. I don't wanna do it through my Wifi, but i want the cam streaming to be broadcast live anywhere in the world.
Can anyone help me getting an overview of the android classes or APIs that will be helpful doing this task?
You can't stream live video from a phone directly to another phone, there are just too many possible differences between any two given devices.
To do this you will need to have a publicly accessible server, (that you have control of) running a streaming engine, such as Woza: https://www.wowza.com/products/streaming-engine The source phone sends video to the server, and the destination phone receives video from the server.

Android App to Stream IP Camera using P2P mode over Mobile port?

I am trying to stream the video via IP camera on an Android App. I have been successful to get the video using the following:
RTSP using Media Player and Surface View.
RTSP using Video View.
Redirecting to VLC for streaming the video.
Redirecting to Native
Video Player for streaming the video.
Now, all these cases are working but with a lag of 7-8 seconds on average even over the local network.
I see some apps that steam without any lag even on remote network, that use mobile port (18600). This port is normally associated with P2P mode on a camera.(This assumption is purely based on my understanding as per the following settings available on my camera set up interface, which shows: Mode- P2P, Port - 18600, RealTime - Normal).
Can someone help me understand how we can connect to mobile port of the IP camera on P2P mode? and How this mode does not show lag where as RTSP does?
Thanks in advance.

Live streaming from webcam to Android Device

Would it be possible to attain video from a webcam, and display it on an android device? Say, the webcam is displayed on a computer, and the android device streams the live video feed from the computer to the Android Device?
Can someone guide me on how do I do this?
Yes, it can.
You will have to code your own simple server which captures the raw bytes from the webcam and turns them into Bitmap.
The server will then listen for phones to connect on a specific port (greater than 1024) and then send the Bitmaps to them.
On the phone, you will have to make an app that connects to that port, gets the data, decodes it and then displays it on the screen.
Basically, you are sending a lot of Bitmap over the wire and at a very fast rate.
Or, you can look into YAWCam, or android-eye for video streaming. The choice is yours.
I've done this couple years ago using motion software (on the linux computer) and tinyCam on the android smartphone. Motion does require a few configurations, but it very simple and straightforward, although via text. You will also need to open and forward ports on your router.

Categories

Resources