I need to record only specific view and child views inside that view but to exclude other views on the Activity/Screen. Currently I'm working on one project and a thought that I can solve the problem with MediaProjection API. As I said, I need to record a specific view inside the activity.
I found an answer on similar thread: Capturing a part of the screen
But it said that it is not possible with MediaProjection API.
Does the Google provide other solution or does someone has a similar issue or maybe even some solution to the problem?
Thanks
Related
I came across many solutions on how to preview camera in Activity. But, they all use the deprecated hardware.camera for display.
How to do this using camera2? Any example for this available?
Your natural starting point would be the overview here and set of code samples here. The Camera2Basic samples include code that you wouldn't need if you only want a preview (for example it also contains code necessary for saving a still image). However, I'd recommend starting there and then removing any code that you don't need for your particular purposes.
Basically, what I want to do is add some picture (and in a more advanced form, a video) to the video stream by an app like Skype on Android when one video calls someone else.
One idea can be intercepting network packets on (maybe) native layout of Android architecture so we can add our desired graphics and dispatch them out.
Another idea is override the android camera API (or any other part that involves providing picture frames to live streaming processes) in a way that we can add our desired graphic elements.
However the above two are not the ultimate ways to establish the goal.
Any idea about details on intercepting network packages or overriding camera will be appreciated.
Thanks in advance.
Do you mean this?
This can be achieved by placing a Surface View and making it's size match parent then another above it Use Relative Layout.
I have searched on google/stackoverflow and tried many different solutions but none of them seem to work.
Okay here's what i wanna do:
I want to have a background service which displays a visible surfaceview with a camerapreview inside of it, like outside of the application i want to see myself (by using the front camera) in the surfaceview.
I know that is possible because i have seen other apps do that and i think it's really cool.
How would i do that?
Thank you for any help! THANKS ALOT :)
Here's a sample implementation by an awesome googler Alex Lockwood
I am working on an android app that will require the camera. I know that I can use the built in camera app to take photos. However, I would like to have a more custom look (probably another UI and some extras).
Can someone of you guys give me a general approach on how to achieve that? That would be awesome, thank!
Here is a nice tutorial to accomplish it.
Camera Integration with Surface View
You can make your custom changes on the SurfaceView according to your requirements.
Im wondering if is possible to do this. Anywhere on my view I want to see a list of videos (from my youtube channel or just a playlist created by me), this way the user can click in any of them and using the youtube player API would be visualizated in the bottom of the screen for example.
Is this possible to do and if so, how complicated could be? (im really a beginner in android, not in programming). Ive read about Youtube DATA APi but it seems is used with the youtube app so its not what I want to do.
Thanks a lot.
Editing 21/05/2014
Adding information just in case someone in the future is interested in doing this (after one year, but better later than never). I uploaded an exemplary app that shows how to do this. It can be found in the following GitHub repository: https://github.com/Rafagf/HealthTube
Have you taken a look at the examples in the documentation? That's the best place to get started. I don't think anyone is going to be able to provide you with more complete code than what's available there.