Index of every page on this site: llms.txt
All skills
Run it yourself

Software Mansion's moq-kit — native Swift (iOS) and Kotlin (Android) SDKs for Media over QUIC (moq-lite) live streaming: sub-second-latency playback, camera/microphone/screen publishing, and realtime data tracks over a MoQ relay. MUST USE before writing, reviewing, or debugging ANY code that imports MoQKit (Swift) or com.swmansion.moqkit (Kotlin); for React Native apps use the react-native-moq skill instead. Trigger on: 'moq-kit', 'MoQKit', 'Media over QUIC', 'moq-lite', 'MoQ relay', 'moq-ffi', 'BroadcastSubscription', 'DataTrackEmitter', 'CameraCapture', 'MicrophoneCapture', 'MultiCameraCapture', 'ScreenCapture', 'TrackSubscription', 'AudioDataStream', 'MoQReplayKitBroadcastSampleHandler', or a Session/Player/Publisher/Catalog from moq-kit.

Use this Skill: https://skilld.dev/gh/software-mansion-labs/skills/moq-kit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesscreen-capture-android.md

≈485 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Screen capture — Android

MediaProjection with three moving parts: the consent intent, a mediaProjection-typed foreground service, and ScreenCapture itself. Video-only — unlike iOS there is no app-audio source; add a MicrophoneCapture track if the broadcast needs sound.

Manifest:

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<service android:name=".ScreenCaptureService"
         android:foregroundServiceType="mediaProjection"
         android:exported="false" />

Flow (Android 14+ requires the foreground service to start from inside the consent result callback):

val launcher = rememberLauncherForActivityResult(StartActivityForResult()) { result ->
    if (result.resultCode == Activity.RESULT_OK) {
        // MUST happen here on Android 14+
        context.startForegroundService(Intent(context, ScreenCaptureService::class.java))
        viewModel.publishScreen(result.data!!, result.resultCode)
    }
}
launcher.launch(context.getSystemService(MediaProjectionManager::class.java).createScreenCaptureIntent())
// In the service: startForeground(id, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION)
// In the view model, once the service reports it is running:
val screen = ScreenCapture(intent = data, resultCode = resultCode, width = 1280, height = 720, frameRate = 30)
screen.start(context) // suspend; foreground service must already be running
publisher.addVideoTrack(name = "screen", source = screen, config = videoConfig)

Wait for the service to actually be in the foreground before screen.start() — the demo's service exposes isRunning: StateFlow<Boolean> plus a suspend fun awaitStarted() and the publish flow wraps it in withTimeout(5_000). Stop order: publisher.stop() → screen.stop() → stop the service.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning26d3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    The moq-kit skill is a developer resource providing documentation and code samples for Software Mansion's Media over QUIC (MoQ) SDKs for iOS and Android. No security risks or malicious behaviors were identified; the skill strictly provides legitimate integration guidance for mobile developers.

  • Socket26d

    No alerts

  • Snyk3mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 43cde80. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 months ago

README badge

README badge for software-mansion-labs/skills/moq-kit