How would you go about using android.media.projection APIs with the AppRTCDemo?

96 views
Skip to first unread message

Benjamin Hamrick

unread,
Nov 19, 2015, 4:32:37 PM11/19/15
to discuss-webrtc
I have been trying to implement screen capture in WebRTC by modifying the AppRTCDemo. However I am having a lot of problems figuring out how the VideoCapturerAndroid class works. I am trying to create my own custom implementation by extending VideoCapturer but I don't understand how it works. Can someone point me to some better documentation? Here is the only thing I found.

Also since VideoCapturerAndroid is part of the JAR, do I need to put my class in the JAR as well? I would prefer having all the java not be inside of a library so I can edit it.

Sojharo Mangi

unread,
Nov 19, 2015, 5:45:21 PM11/19/15
to discuss-webrtc
Hi,

This question on Quora was asked by me. The answer there seems realistic but I found it really difficult and time consuming to implement it. However, I am doing it some different way. I just continuously capture images from android screen by using MediaProjection API and send them to other peer using DataChannel. Other peer is responsible to render these images on the screen. It would give the feeling of screen being shared.

I have discussed in details about this on your other question in this group. Kindly, look into that. Also, please let me know if you plan to implement the solution given in answer of Quora question and you get successful. Due to tough job timings, I could not spend time on that.

On Fri, Nov 20, 2015 at 1:55 AM, Benjamin Hamrick <bent...@gmail.com> wrote:
I have been trying to implement screen capture in WebRTC by modifying the AppRTCDemo. However I am having a lot of problems figuring out how the VideoCapturerAndroid class works. I am trying to create my own custom implementation by extending VideoCapturer but I don't understand how it works. Can someone point me to some better documentation? Here is the only thing I found.

Also since VideoCapturerAndroid is part of the JAR, do I need to put my class in the JAR as well? I would prefer having all the java not be inside of a library so I can edit it.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/a18c49eb-bfc9-4dfd-84ee-e037f2eb2848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
 
Sojharo


Reply all
Reply to author
Forward
0 new messages