跳转到内容
EN

Content API

(待译)

Content is the merchant’s publication record for a video: a content names one asset of a Media library, its access and player settings, and its description, and every save makes an immutable version while publishing makes one of them live. The record follows Shopify products and their variants (a product with published variants, one live at a time), and the playback capability follows signed-URL delivery, so those experiences apply. Differences: a content is always signed, so every playback takes an end-user token and an admission and there is no public mode; access settings take effect at once while source and player take effect on the next publish; creating a content or changing its source starts Media’s transcoding itself; and the manifest address is served from Content’s own host (https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8), carrying neither the library nor the merchant’s ids. Start with praxis.content.contents.create using a library_id and asset_id from praxis.media, then publish it and open a playback session for the Kit.