Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 26 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,36 +121,34 @@ $getVideo = $video->showAll('********-****-****-****-********'); //VideoId

// POST (convert an uploaded file / upload with an address (URL)
$newVideo = $video->create([
[
'title' => 'string',
'description' => 'string',
'video_url' => 'string', // should be null or removed if file_id is exist
'file_id' => 'string',
'convert_mode' => 'auto/manual/profile',
'profile_id' => 'string',
'parallel_convert' => false,
'thumbnail_time' => 0,
'watermark_id' => 'string',
'watermark_area' => 'CENTER', // required if watermark_id is set
'convert_info' => [ // required if convert_mode is manual
[
'audio_bitrate' => 0,
'video_bitrate' => 0,
'resolution' => 'string'
],
[
'audio_bitrate' => 0,
'video_bitrate' => 0,
'resolution' => 'string'
],
[
'audio_bitrate' => 0,
'video_bitrate' => 0,
'resolution' => 'string'
]
'title' => 'string',
'description' => 'string',
'video_url' => 'string', // should be null or removed if file_id is exist
'file_id' => 'string',
'convert_mode' => 'auto/manual/profile',
'profile_id' => 'string',
'parallel_convert' => false,
'thumbnail_time' => 0,
'watermark_id' => 'string',
'watermark_area' => 'CENTER', // required if watermark_id is set
'convert_info' => [ // required if convert_mode is manual
[
'audio_bitrate' => 0,
'video_bitrate' => 0,
'resolution' => 'string'
],
[
'audio_bitrate' => 0,
'video_bitrate' => 0,
'resolution' => 'string'
],
[
'audio_bitrate' => 0,
'video_bitrate' => 0,
'resolution' => 'string'
]
]
]);
], channelId);

// PATCH (update video or audio. Only title and description are editable)
$updatedVideo = $video->update('video_id', [
Expand Down