Communitygithub.com

Meishe iOS Streaming SDK

Build, integrate, troubleshoot, and explain iOS apps that use the Meishe NvStreamingSdkCore Streaming SDK for camera capture, recording, Timeline editing, LiveWindow preview, captions, stickers, transitions, audio, filters, themes, asset packages, AR Scene, beauty, makeup, human detection, templates, compilation, breakpoint-continuation export, media tools, and custom effects.

What is Meishe iOS Streaming SDK?

This AI agent skill is designed to assist developers in building, integrating, troubleshooting, and explaining iOS applications that leverage the Meishe NvStreamingSdkCore Streaming SDK. It supports a comprehensive range of features including camera capture, recording, Timeline editing, LiveWindow preview, captions, stickers, transitions, audio, filters, themes, asset packages, AR Scene, beauty, makeup, human detection, templates, compilation with breakpoint-continuation export, media tools, and custom effects. The skill can be used for both English and Chinese requests mentioning Meishe iOS SDK, 美摄 iOS SDK, NvStreamingSdkCore, NvsStreamingContext, NvsTimeline, capture, timeline, compile, export, 断点续导, caption, sticker, transition, beauty, makeup, AR Scene, template, or Objective-C/Swift API validation. It provides detailed rules for API usage, project generation, resource management, and verification to ensure robust and correct implementation.

Works with~Claude Code~Codex CLI~Cursor
npx skills add MeisheSDK1/video-editor-sdk-ios-streaming-skills

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does Meishe iOS Streaming SDK do?

Use this skill to explain SDK APIs, generate an iOS application or additive integration patch, and diagnose runtime behavior. Treat Objective-C public headers from the user's framework as signature truth. Use the official iOS documentation for semantics and technical topics when bundled references are insufficient.

Priority Rules

  • Use only Streaming SDK entry points exposed by NvStreamingSdkCore.framework. Do not introduce a separate effects runtime or its lifecycle.
  • Generate a new UIKit application in Swift by default. Use Objective-C only when the user explicitly requests it or an existing host contract requires it; Objective-C public headers remain API signature truth in both cases.
  • Treat NvStreamingSdkCore.framework as the user-supplied dynamic SDK artifact, not a package dependency. Do not produce a dependency list or infer private third-party dependencies.
  • Keep NvsStreamingContext public calls on the main thread unless a public header explicitly documents an exception.
  • Verify the SDK license before obtaining the singleton. Keep initialization flags stable for the singleton lifetime.
  • Confirm that the supplied SDK license authorizes the generated app's bundle identifier before device QA. Treat The current app is not authorised! as a license-to-app-identity mismatch, not as a framework, signing, Timeline, or preview failure.
  • A Timeline width must be divisible by 4 and height by 2. Without NvsStreamingContextFlag_Support4KEdit, require width * height <= 1920 * 1080; with the flag, require width * height <= 3840 * 2160. Return or report failure when createTimeline yields nil.
  • A custom compile height requires setCustomCompileVideoHeight: before compileTimeline, with NvsCompileVideoResolutionGradeCustom. Treat the delegate as final success or failure evidence.
  • Every resumable Timeline compile must pass both NVS_COMPILE_ENABLE_BREAKPOINT_CONTINUATION = true and a non-empty writable NVS_COMPILE_CACHE_FILE_PATH through the compileConfigurations overload. The caller owns that cache directory: clear stale cache before a non-resume compile, retain it only for a background-interrupted resume, and clear it after final success, failure, or user cancellation.
  • Pass PHAsset.localIdentifier directly to NvsVideoTrack append/insert/add methods for Photos assets. Check permissions, asset availability, identifier emptiness, and the returned NvsVideoClip.
  • When calculating a video's display size, do not use getVideoStreamDimension alone. Require a valid video stream, read getVideoStreamPixelAspectRatio, validate den != 0, multiply the stored width by num / den, and then swap width and height for NvsVideoRotation_90 or NvsVideoRotation_270. Use this corrected display size for aspect selection, preview layout, crop geometry, and export geometry; use the uncorrected dimension only when stored pixel dimensions are explicitly required.
  • Before adding an ordinary HTTP or HTTPS media URL as a clip path, preheat it on a worker queue with NvsStreamingContext.getAVFileInfo. Remote metadata retrieval can be slow. Continue only when it returns non-nil, then switch to the main thread for the Track append/insert/add call and check the returned clip. Call every SDK API on the main thread unless its public documentation explicitly marks a thread exception. getAVFileInfo is one such documented exception; never generalize it to another SDK API. Treat M3U8 separately: download the .m3u8 file locally before adding it, and accept only the Meishe-specific extended format. Never infer, synthesize, or auto-convert private extensions; direct unknown format details to Meishe technical support.
  • Install asset packages only through installAssetPackage(_:license:type:sync:assetPackageId:); there is no completion-closure overload. Before an asynchronous install, retain an object conforming to NvsAssetPackageManagerDelegate and assign it to the manager's weak delegate. Treat the immediate return as start/validation status and wait for didFinishAssetPackageInstallation(_:filePath:type:error:) before using the package ID. Template packages install asynchronously regardless of the sync argument. Coordinate delegate ownership in an existing host instead of silently replacing its delegate.
  • A generation plan is not implementation evidence. Every module reported as emitted must have dependency-closed source, target membership, required permissions/resources, a callable integration entry, observable failure states, and cleanup. If output remains a placeholder or contract_only, report that scope instead of claiming the module was generated.
  • When --framework or --license is explicitly supplied for a new app, copy only those user-supplied inputs into the output project. Embed and sign the dynamic framework, copy the license under a stable app resource name, and add it to the target's Resources phase. Never retain the source path in reusable skill data.
  • Do not infer runtime or visual success from generation, static validation, compilation, Xcode build, package installation, setter success, or callback registration. Use the exact evidence level recorded in the verification matrices.
  • The skill bundles no framework, license, model, media, font, shader, or asset package. Never invent credentials, private endpoints, material services, or protected resources.
  • Hand off a filled build command by default. Run Xcode builds, simulator/device actions, or screenshot validation only when the user explicitly asks.

Workflow

  1. Classify the request as initialization, complete editor, import, Timeline editing, preview, capture, effects, AR/beauty, captions/stickers, asset packages, audio, export, templates, media tools, or custom rendering.
  2. Read standalone-workflow.md. For project work also read execution-and-qa-handoff.md.
  3. For complete editors read editor-architecture.md and editor-runtime-pitfalls.md. Implement import -> aspect ratio -> persisted Timeline state -> LiveWindow -> child tools -> export.
  4. Run scripts/search_skill_index.py --compact "<request>" before opening broad references. Treat matches as routing, not runtime proof.
  5. For an app, broad feature set, or host integration, run scripts/compose_modules.py --compact or scripts/create_ios_project.py --dry-run-plan. Use the dependency-closed plan.
  6. Resolve user-supplied resources through resource-requirements-index.md. Do not retain absolute external roots in registries or documentation.
  7. For packaged materials read asset-center-workflow.md and material-application-matrix.md. Keep installation, application, property editing, instance removal, and package uninstallation separate.
  8. For vague requests read capability-catalog.md. For broad ordering use feature-priority-map.md and api-priority-map.md.
  9. For exact APIs use api-usage-index.md, sdk-signature-map.json, and the routed class-family reference.
  10. Before implementation read the routed dependency, constraint, constant, and call-order maps. Preserve guards, return checks, callback gates, state conflicts, and teardown order.
  11. Use official-docs-index.md only when the local summary is insufficient or the user requests source detail. Actual public headers win for signatures.
  12. Read runtime-verification.md for evidence levels and claim boundaries. Coverage, build, runtime, and production-resource matrices belong to the separate maintenance package and are not runtime skill dependencies; do not claim their results unless the maintenance evidence is explicitly available.
  13. Generate implementation only from simple-code-registry.json units whose state permits emission. Never render a contract_only unit as completed code.
  14. Reconcile the generation plan with emitted source, Xcode target membership, Build Phases, resources, callable UI or host entry points, and failure states. Downgrade the manifest when any planned unit remains a shell.
  15. Treat an existing Xcode project as incremental-integration with --mode incremental. Only use a product blueprint when the skill owns the new output directory.
  16. Keep skill artifacts, comments, CLI help, and default template copy in English. The default new-app template and executable validation flow use Swift. Localize generated app UI only when the user requests a different language.
  17. Generate the smallest sufficient permissions, resources, controllers, callbacks, and lifecycle integration. Exclude signing identities, private services, analytics, and distribution settings.
  18. After implementation provide a filled build command. Execute builds, installation, device flows, or visual QA only with explicit authorization.
  19. Keep retrieval compact: inspect matched references and exact symbols rather than dumping full indexes or header trees.

Reference Routing

Class-family routing

Request or public classRead
Context, license, singleton, capture, playback, seek, compilenvs-streaming-context.md
LiveWindow, preview, fill mode, coordinate mappingnvs-live-window.md
Timeline, tracks, themes, Timeline-level objectsnvs-timeline.md
VideoTrack, VideoClip, Photos identifiers, trim, speednvs-video-track-clip.md
AudioTrack, AudioClip, music, voiceovernvs-audio-track-clip.md
Captions, modular captions, compound captions, spansnvs-caption.md
Animated stickers, transforms, animation, Z ordernvs-animated-sticker.md
Capture/Clip/Track/Timeline/Audio effectsnvs-fx.md
Video or audio transitionsnvs-transition.md
Asset package installation and statenvs-asset-package-manager.md
Adaptive, standard, and AE templates; template install/apply/post-process/editnvs-templates.md
Human detection, AR Scene, beauty, shaping, makeupnvs-ar-scene.md
AR Scene builtin-effect full parameter table (key/type/range/default)builtin_effects/ar-scene.md
File information, frame retrievers and receiversnvs-media-info-retriever.md
Thumbnails, icons, waveform generationnvs-generators.md
Media and passthrough conversionnvs-convertors.md
Custom video/audio effects and transitionsnvs-custom-effects.md
Graph, storyboard, mask, mesh, 3D compositionnvs-advanced-composition.md
Structures, time, resolution, enums, flags, keysnvs-common-types.md

Specialized Routing And Feature Guards

  • Determine whether an effect belongs to Capture, Clip, Track, Timeline, or Audio before choosing an API. Built-in names and packaged IDs are different identities.
  • Stop conflicting playback, seek, capture, or compile operations before structural Timeline mutation or removal.
  • For media import, classify the input before appending: local path, Photos local identifier, ordinary HTTP/HTTPS media URL, or M3U8. For ordinary remote media, perform the slow first getAVFileInfo lookup on a worker queue, require a non-nil result, and return to the main thread to append. Localize M3U8 first and reject unconfirmed standard playlists.
  • A complete capture flow includes permission gates, LiveWindow connection, device/camera controls as supported, start return checks, recording callbacks, and teardown.
  • A complete editor is not a preview shell. It includes import, resolution/aspect choice, persisted state, Timeline reconstruction, LiveWindow, child editors, applied-material state, and compile/export.
  • Material installation is not application. Collect required u

Related Skills