feat(android): capture screens through shared Rust media owners
Keep MediaProjection consent and playback audio on the page-owned capture lease. Reuse native frame admission, encoding outputs, cancellation and room routes; normalize normal pre-frame cancellation without platform-specific UI rules.
This commit is contained in:
1 parent
e12271e307
commit
d112a3ef2e
47 files changed
+3009
-200
No files matched your search
@@ -4,14 +4,17 @@
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE"/>
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION"/>
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
|
||||
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
|
||||
<uses-feature android:name="android.software.leanback" android:required="false"/>
|
||||
<application android:label="@string/app_name" android:icon="@drawable/piik" android:theme="@style/PiikTheme" android:usesCleartextTraffic="true" android:allowBackup="false">
|
||||
<activity android:name=".MainActivity" android:exported="true" android:configChanges="orientation|screenSize|keyboardHidden" android:resizeableActivity="true">
|
||||
<intent-filter><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/><category android:name="android.intent.category.LEANBACK_LAUNCHER"/></intent-filter>
|
||||
<intent-filter><action android:name="android.intent.action.VIEW"/><category android:name="android.intent.category.DEFAULT"/><category android:name="android.intent.category.BROWSABLE"/><data android:scheme="piik" android:host="app"/></intent-filter>
|
||||
<intent-filter><action android:name="android.intent.action.VIEW"/><category android:name="android.intent.category.DEFAULT"/><category android:name="android.intent.category.BROWSABLE"/><data android:scheme="piik" android:host="media"/></intent-filter>
|
||||
</activity>
|
||||
<service android:name=".AppRuntimeService" android:foregroundServiceType="specialUse" android:exported="false">
|
||||
<service android:name=".AppRuntimeService" android:foregroundServiceType="specialUse|mediaProjection" android:exported="false">
|
||||
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="User-started local room server and native screen-sharing companion for the user's browser; runs until the user stops Piik."/>
|
||||
</service>
|
||||
</application>
|
||||
|
||||
Reference in new issue
Block a user