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-ios.md

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

Screen capture — iOS

Pick the right variant first: in-app ScreenCapture runs in the host app process, so frame delivery can stop once the app backgrounds — don't rely on it surviving an app switch. Full-device capture across apps requires the ReplayKit Broadcast Upload Extension path.

In-app ScreenCapture

Captures the app's own screen via RPScreenRecorder:

let screen = ScreenCapture()
try await screen.start()
publisher.addVideoTrack(name: "screen", source: screen.videoSource)
publisher.addAudioTrack(name: "screen-audio", source: screen.audioSource)
// … session.publish + publisher.start() as usual; later: await screen.stop()

ReplayKit Broadcast Upload Extension (full-device)

The extension runs out-of-process and opens its own relay connection; the host app hands it the relay URL and path through App Group UserDefaults.

Requirements:

  • A Broadcast Upload Extension target (NSExtensionPointIdentifier = com.apple.broadcast-services-upload, principal class = your handler).
  • A real, provisioned App Group (com.apple.security.application-groups) on both the host app and the extension — ReplayKitBroadcastDescriptorStore throws .invalidAppGroup if the container isn't accessible.
  • NSMicrophoneUsageDescription in the extension too if the mic button is offered.

Extension — the whole thing can be three lines:

final class SampleHandler: MoQReplayKitBroadcastSampleHandler {
    override var replayKitAppGroupIdentifier: String? { "group.com.example.app" }
}

MoQReplayKitBroadcastSampleHandler reads the descriptor, runs a ReplayKitBroadcastPipeline (connect → publish → encode screen/app-audio/mic samples), and handles pause/resume/finish. Override makeReplayKitBroadcastConfiguration(setupInfo:) to customize track names or encoder configs (ReplayKitBroadcastConfiguration: videoTrackName = "screen", appAudioTrackName = "screen-audio", micAudioTrackName = nil by default).

Host app — write the descriptor before the user starts the broadcast, then show the system picker:

try ReplayKitBroadcastDescriptorStore(appGroupIdentifier: "group.com.example.app")
    .save(ReplayKitBroadcastDescriptor(relayURL: relayURL, broadcastPath: "live/screen"))
// RPSystemBroadcastPickerView wrapped for SwiftUI; the USER starts the broadcast from it
let picker = RPSystemBroadcastPickerView()
picker.preferredExtension = "com.example.app.broadcast" // extension bundle id
picker.showsMicrophoneButton = true

Clear the descriptor (store.clear()) when the feature is turned off so a stale URL isn't picked up later.

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