From 9d3646c9787124ca732adde650023bb0a81caca2 Mon Sep 17 00:00:00 2001 From: reza-kharestani <53730255+reza-kharestani@users.noreply.github.com> Date: Mon, 9 Nov 2020 01:31:07 +0330 Subject: [PATCH] First of all too much Brackets! next we need to send the channel id to the create method in Vide class to make it work in the right way --- README.md | 54 ++++++++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index d0c0bfa..f5beaec 100644 --- a/README.md +++ b/README.md @@ -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', [