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

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

Data tracks and raw media consumers — Android (Kotlin)

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

Publish a data track

val emitter = DataTrackEmitter()
val publisher = Publisher()
publisher.addDataTrack(name = "chat", emitter = emitter)
session.publish(path = "chat/room-1", publisher = publisher)
publisher.start()
emitter.send(json.encodeToString(message).toByteArray()) // ignored before start / after stop

send() never throws — it silently drops before start() and after stop(), so gate sends on publisher state if delivery matters.

Subscribe to a data track

val track = broadcast.subscribeTrack(name = "chat", delivery = TrackDelivery.Arrival)
track.objects.collect { obj -> decode(obj.payload) }   // cold Flow, SINGLE collector
// close() the track (and the broadcast) in a finally block

TrackObject: payload: ByteArray, groupSequence: ULong, objectIndex: ULong.

MediaTrack — raw compressed frames

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

val media = broadcast.subscribeMedia(
    MediaTrackRequest(name = trackName, container = MediaContainer.Cmaf(initData),
                      targetBuffering = Duration.ofMillis(100)),
    MediaTrackOptions(bufferingPolicy = MediaTrackBufferingPolicy.BufferingNewest(30)))
media.frames.collect { frame -> … }            // MediaFrame: payload, timestampUs, keyframe; cold, SINGLE collector

Containers: Legacy, Cmaf(initializationData), Loc. Buffering policy: Unbounded or BufferingNewest(limit). Watch media.state: StateFlow<MediaTrackState> (Idle/Active/Closed/Error); close() when done.

AudioDataStream — decoded PCM

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

val stream = AudioDataStream(catalog, trackName = audioTrack,
                             format = AudioDataFormat(sampleFormat = AudioSampleFormat.Float32),
                             targetBuffering = Duration.ofMillis(100)) // default
stream.audio.collect { audio -> … }            // AudioData: bytes, timestampUs, sampleRate, channelCount, sampleFormat, frameCount

Overloads take either a trackName or an AudioTrackInfo from the catalog (unknown names throw IllegalArgumentException), or a Broadcast + AudioTrackRequest to bypass the catalog.

Single collector; bounded buffer (drops oldest when the consumer is slow). Formats: Float32 / Int16, optional resample (sampleRate) and channel-count conversion. 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