Field | Type | Required | Description | Example |
---|---|---|---|---|
id |
str | ✔️ | N/A | 09F8B46C-61A0-4254-9875-F71F4C605BC7 |
source |
components.Source | ✔️ | N/A | |
name |
str | ✔️ | The name of the asset. This is not necessarily the filename - it can be a custom name or title. |
filename.mp4 |
type |
Optional[components.AssetType] | ➖ | Type of the asset. | video |
playback_id |
Optional[str] | ➖ | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb |
user_id |
Optional[str] | ➖ | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F |
playback_url |
Optional[str] | ➖ | URL for HLS playback. It is recommended to not use this URL, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). | https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8 |
download_url |
Optional[str] | ➖ | The URL to directly download the asset, e.g. https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video . It is not recommended to use this for playback. |
https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video |
playback_policy |
OptionalNullable[components.PlaybackPolicy] | ➖ | Whether the playback policy for an asset or stream is public or signed | |
creator_id |
Optional[components.CreatorID] | ➖ | N/A | |
profiles |
List[components.TranscodeProfile] | ➖ | Requested profiles for the asset to be transcoded into. Configured on the upload APIs payload or through the stream.recordingSpec field for recordings. If not specified, default profiles are derived based on the source input. If this is a recording, the source will not be present in this list but will be available for playback. |
|
storage |
Optional[components.AssetStorage] | ➖ | N/A | |
status |
Optional[components.AssetStatus] | ➖ | Status of the asset | |
project_id |
Optional[str] | ➖ | The ID of the project | aac12556-4d65-4d34-9fb6-d1f0985eb0a9 |
created_at |
Optional[float] | ➖ | Timestamp (in milliseconds) at which asset was created | 1587667174725 |
created_by_token_name |
Optional[str] | ➖ | Name of the token used to create this object | |
size |
Optional[float] | ➖ | Size of the asset in bytes | 84934509 |
hash |
List[components.Hash] | ➖ | Hash of the asset | |
video_spec |
Optional[components.VideoSpec] | ➖ | Video metadata |