cancel
Showing results for 
Search instead for 
Did you mean: 

Media Projection is disabled on v44

alphasystems
Explorer
We are developing VR device management system that can monitor VR viewers' screens.
we are implementing mirroring function using MediaProjection API, and it worked in v43.
However, after updating to v44 it was not working and we found the following log.
 
10-13 16:41:59.750  4070  4070 E MediaProjectionPermissionActivity: Screen recording via the Media Projection Manager is disabled; canceling operation
 
It seems to be happening in MediaProjectionManager.createScreenCaptureIntent().
The expected behavior is for a permission confirmation dialog to appear, but no dialog is displayed.
 
MediaProjection is not available in the future? Is there an alternative?
We are very troubled as we consider this an important feature.
 
We are unable to post the logs for our application, 
but were able to reproduce same log with the following mirriorg application.

 

5 REPLIES 5

alphasystems
Explorer

We have also tried v46 and encountered the same problem.

doug.spahic
Honored Guest

Any resolution on this ?

ynkfish
Protege

Currently I'm getting this on Quest 2 with v65:

2024-05-31 11:30:41.788 1167-5002 ActivityTaskManager system_server I START u0 {cmp=com.oculus.vrcast/.projection.MediaProjectionPermissionActivity} from uid 10156
2024-05-31 11:30:42.394 6854-6854 MediaProje...onActivity com.oculus.vrcast E Screen recording via the Media Projection Manager is disabled; canceling operation

Similar problem on Quest 3:

2024-05-31 11:58:13.330 1077-2310 ActivityTaskManager system_server I START u0 {cmp=com.oculus.vrcast/.projection.MediaProjectionPermissionActivity} from uid 10159
2024-05-31 11:58:13.372 1077-1131 ActivityManager system_server I Start proc 6423:com.oculus.vrcast/1000 for pre-top-activity {com.oculus.vrcast/com.oculus.vrcast.projection.MediaProjectionPermissionActivity}
2024-05-31 11:58:14.130 1077-1122 ActivityTaskManager system_server W Activity top resumed state loss timeout for ActivityRecord{5564b58 u0 com.oculus.vrcast/.projection.MediaProjectionPermissionActivity t511}
2024-05-31 11:58:14.132 1077-1122 ActivityTaskManager system_server W Activity pause timeout for ActivityRecord{5564b58 u0 com.oculus.vrcast/.projection.MediaProjectionPermissionActivity t511}
2024-05-31 11:58:14.168 6423-6423 MediaProje...onActivity com.oculus.vrcast E Screen recording via the Media Projection Manager is disabled; canceling operation
2024-05-31 11:58:14.444 1077-1129 UsageStatsService system_server W Unexpected activity event reported! (com.oculus.vrcast/com.oculus.vrcast.projection.MediaProjectionPermissionActivity event : 23 instanceId : 89239242)

It seems like they have explicitly disabled the feature. Does anybody know of a way to enable it?

We identified a device property named persist.device_config.oculus_shared_os_services.vros_enable_media_projection set to false. However, attempts to change this property to true have been unsuccessful.

Did you ever receive a response via zendesk? This issue seems to be there for a while now, so they'll probably have no intention on enabling media projection again?

Hi,

I've posted a request for MediaProjection API reintroduction here on the Ideas forum:
https://communityforums.atmeta.com/t5/Ideas/Reintroduce-MediaProjection-API-for-Enhanced-Screen-Mirr...

If you are still interested in this feature, feel free to give a kudos, so it gets some traction 😉