Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

sanity-media-library-mux-playback

النجوم١٦
التفرعات٧
آخر تحديث٧ يوليو ٢٠٢٦ في ١٦:٢٥

Display Sanity Media Library videos in a frontend using Mux Player. Covers the recommended GROQ `documents::get()` pattern for fetching playback id + aspect ratio in a single query, the alternative `client.mediaLibrary.video .getPlaybackInfo()` runtime call, schema setup with `defineVideoField`, signed playback handling, and common pitfalls (library-id regex strictness, TypeGen returning `unknown` for cross-resource projections, response shape confusion). Use when adding video playback to an SDK app or web frontend, building a `VideoPlayer` component, fetching `videoAsset` data from a Media Library video field, debugging "Invalid video asset instance identifier" errors, or wiring `@mux/mux-player-react` to Sanity content.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly