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.

referencesdata-tracks-ios.md

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

Data tracks and raw media consumers — iOS (Swift)

Shared semantics (names agreed out of band, TrackDelivery modes, self-broadcast filtering, shared upstream latency) are in SKILL.md.

Publish a data track

let emitter = DataTrackEmitter()               // retain it — it's your send handle
let publisher = try Publisher()
publisher.addDataTrack(name: "chat", source: emitter)
try await session.publish(path: "chat/room-1", publisher: publisher)
try await publisher.start()
try emitter.send(JSONEncoder().encode(message)) // silent no-op before start / after stop; throws only on a live write failure

High-frequency sends are fine — the demo's MoQBoy controller sends held-button JSON every 10 ms.

Subscribe to a data track

let track = try broadcast.subscribeTrack(name: "chat", delivery: .arrival)
for try await object in track.objects {        // TrackObject: payload, groupSequence, objectIndex
    let msg = try JSONDecoder().decode(ChatMessage.self, from: object.payload)
}
// track.close() when done (also closes on deinit and stream termination)

MediaTrack — raw compressed frames

Bypass the player and receive encoded media frames (e.g. to feed your own decoder or remux):

let media = try broadcast.subscribeMedia(
    MediaTrackRequest(name: trackName, container: .cmaf(initializationData: initData),
                      targetBuffering: .milliseconds(100)),
    options: MediaTrackOptions(bufferingPolicy: .bufferingNewest(30)))
for try await frame in media.frames { … }      // MediaFrame: payload, timestampUs, keyframe

Containers: .legacy, .cmaf(initializationData:), .loc. Buffering policy: .unbounded or .bufferingNewest(limit). Watch media.state (.idle/.active/.closed/.error(String)); close() when done.

AudioDataStream — decoded PCM

Decoded audio samples for processing (metering, transcription, effects) — this does not play audio:

let stream = try AudioDataStream(catalog: catalog, trackName: audioTrack,
                                 format: AudioDataFormat(sampleFormat: .float32))
for try await audio in stream.audio { … }      // AudioData: bytes, sampleFormat, timestampUs, sampleRate, channelCount, frameCount

Formats: .float32 / .int16, optional resample (sampleRate) and channel-count conversion. Bounded buffer — a slow consumer gets the newest data. Close it like every other consumer.

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