Questions tagged [mediaprojection]
20 questions
4
votes
1 answer
System audio streaming on Android over Webrtc
I am trying to build a screensharing application on Android using Webrtc. I am able to share the screen using mediaprojection+webrtc but not able to share the system audio. Mediaprojection added support to capturing system audio from API 29 (Android…

prashanthns
- 339
- 2
- 12
3
votes
0 answers
how two android apps use MediaProjection at the same time?
I need two apps to use the MediaProjection API to record the screen at the same time.
When the second app starts to record the screen, I found that the first one not working.
---code--- and what I found:
I use
var projectionManager =
…

zhengyitian
- 61
- 5
2
votes
1 answer
MediaProjectionManager.getMediaProjection( ) problem in android 12
I create a screenshot application and that work good in all of the android devices.
But I have a problem with take screenshot in android 12 (Xiaomi 11t) I'm using static intent and result code and then clone intent and pass it to this function…

reza r h
- 21
- 3
2
votes
0 answers
Android Media Projection Screen Capture Works Differently On Real Device
When I Run The Code Below, Continuous Screen Recording Is Working In The Virtual Device And Capturing The Pictures.
However, when the code is run on the real device, they are all the same, except for a few of the captured images (with the exception…

İpek Yener
- 83
- 5
2
votes
0 answers
AudioPlaybackCapture android 10 with MediaProjection screen capture not working
I am trying to capture screen using MediaProjections screen capture api with AudioPlaybackCapture in android 10. but i am unable to do that. please help me here.
AudioPlaybackCapture api repository i am following this AudioPlaybackCapture api code…

Black4Guy
- 641
- 11
- 28
2
votes
1 answer
BufferQueue has been abandoned when using Mediaprojection
Does anyone know what it is?
BufferQueue has been abandoned
I am using the Mediaprojectoin class to take a Screenshot. My app works well but in Logcat I have many lines that say "BufferQueue has been abandoned".I don't know What it is and what I…

boss_17
- 71
- 1
- 5
2
votes
1 answer
MediaProjection for screen capture - How to change resolution?
Take this block of example code:
// from window manager
val recordWidth = screenWidth
val recordHeight = screenHeight
val projection: MediaProjection = // retrieved from API
val mediaRecorder = MediaRecorder().apply {
setVideoSource(SURFACE)
…

afollestad
- 2,929
- 5
- 30
- 44
1
vote
0 answers
How to detect when capturing a screen using (MediaProjection, VirtualDisplay) if the window or an app has SECURE_FLAG in Android?
I'm trying to capture screenshots in my android app using MediaProjection by creating VirtualDisplay. It's working fine except in some banking or streaming apps where I get a black screen. I know that it's because in those apps SECURE_FLAG is…

Divyang M
- 101
- 1
- 5
1
vote
0 answers
Media Projection and Image Reader duo not working on Netflix/Youtube on Android TV
Media Projection and Image Reader duo not working on Netflix/Youtube on Android TV.
I am trying to get image from android TV with Media Projection and Image Reader.
On the log side, a warning catches my eye; probably because Image Reader uses…

Pınar
- 81
- 4
1
vote
0 answers
Crash: ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION
I've got a video streaming app that has been running well for a number of years but I recently upgraded to
targetSdkVersion 28
I'm now seeing the following error...
java.lang.SecurityException: Media projections require a foreground service of type…

Dan Eiref
- 101
- 1
- 5
1
vote
1 answer
Error MediaProjection when targetSdkVersion 29
I am building a screen recording application. But it only works on targetSdkVersion 28, when passing targetSdkVersion 29 requested by google, the error
Code
@SuppressLint("MissingSuperCall")
@Override
public void onActivityResult(int…

Bửu Hoàng
- 31
- 1
- 4
1
vote
1 answer
Is there a way to record system sound with MediaRecorder in android?
I have a media recorder, and i want to take screen capture without mic audio, only with the system sound.
Is there some solution to disable my mic and to capture system…

Arinton Akos
- 145
- 2
- 10
0
votes
0 answers
How to detect if any app is using MediaProjection permission?
I am using Media Projection permission in my application and its running all time but if any apps like teamviewer or any other screencasting applications my application mediaprojection is disabled and i written code for if mediaprojection permission…

Karthick
- 1
0
votes
0 answers
Media Projection in Service on Delphi
I get user permision in main Activity:
procedure TForm1.Button3Click(Sender: TObject);
var MPObj: JObject;
begin
FMessageSubscriptionID := TMessageManager.DefaultManager.SubscribeToMessage( TMessageResultNotification, HandleActivityMessage );
MPObj…

Pavel
- 1
- 1
0
votes
0 answers
getMediaProjection freezes in Delphi
This is my code:
unit Unit1;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Controls.Presentation,
…

Pavel
- 1
- 1