Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Support for MediaProjection permission request. #225

Open
forlayo opened this issue Nov 16, 2018 · 0 comments
Open

Support for MediaProjection permission request. #225

forlayo opened this issue Nov 16, 2018 · 0 comments

Comments

@forlayo
Copy link

forlayo commented Nov 16, 2018

Expected behaviour

In order to use MediaProjection you need to request for a permission in this way:

mMediaProjectionManager = (MediaProjectionManager) activity.getSystemService(Context.MEDIA_PROJECTION_SERVICE);
startActivityForResult(
                    mMediaProjectionManager.createScreenCaptureIntent(),
                    REQUEST_MEDIA_PROJECTION);

And then you're going to receive at
onActivityResult(int requestCode, int resultCode, Intent data)

The "data" you need to start mediaprojection; it would be great if this fantastic library add support for this, specially while using it from C++ side, where makes the things a lot easier.

Actual behaviour

No way to do this.

Steps to reproduce

No way to do this.

Version of the library

5.0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant