also looking at this
meemalabs/laravel-media-converter
Configure Renovate
#27
8 files
+52
-44
| @@ -7,8 +7,8 @@ interface Converter | ||
| 7 | 7 | /** |
| 8 | 8 | * Sets the path of the file input. |
| 9 | 9 | * |
| 10 | * @param string $path | |
| 11 | * @param string|null $bucket | |
| 10 | * @param string $path | |
| 11 | * @param string|null $bucket | |
| 12 | 12 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 13 | 13 | */ |
| 14 | 14 | public function path(string $path, $bucket = null); |
| @@ -23,12 +23,12 @@ interface Converter | ||
| 23 | 23 | /** |
| 24 | 24 | * Sets the settings required to generate the proper amount of thumbnails. |
| 25 | 25 | * |
| 26 | * @param int $framerateNumerator | |
| 27 | * @param int $framerateDenominator | |
| 28 | * @param int $maxCaptures | |
| 29 | * @param int|null $width | |
| 30 | * @param string|null $nameModifier | |
| 31 | * @param int $imageQuality | |
| 26 | * @param int $framerateNumerator | |
| 27 | * @param int $framerateDenominator | |
| 28 | * @param int $maxCaptures | |
| 29 | * @param int|null $width | |
| 30 | * @param string|null $nameModifier | |
| 31 | * @param int $imageQuality | |
| 32 | 32 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 33 | 33 | */ |
| 34 | 34 | public function withThumbnails(int $framerateNumerator, int $framerateDenominator, int $maxCaptures, $width = null, $nameModifier = null, $imageQuality = 80); |
| @@ -36,8 +36,8 @@ interface Converter | ||
| 36 | 36 | /** |
| 37 | 37 | * Sets the path & executes the job. |
| 38 | 38 | * |
| 39 | * @param string $s3Path | |
| 40 | * @param string|null $s3bucket | |
| 39 | * @param string $s3Path | |
| 40 | * @param string|null $s3bucket | |
| 41 | 41 | * @return \Aws\Result |
| 42 | 42 | */ |
| 43 | 43 | public function saveTo(string $s3Path, $s3bucket = null); |
| @@ -45,7 +45,7 @@ interface Converter | ||
| 45 | 45 | /** |
| 46 | 46 | * Cancels an active job. |
| 47 | 47 | * |
| 48 | * @param string $id | |
| 48 | * @param string $id | |
| 49 | 49 | * @return \Aws\Result |
| 50 | 50 | */ |
| 51 | 51 | public function cancelJob(string $id); |
| @@ -53,9 +53,9 @@ interface Converter | ||
| 53 | 53 | /** |
| 54 | 54 | * Creates a new job based on the settings passed. |
| 55 | 55 | * |
| 56 | * @param array $settings | |
| 57 | * @param array $metaData | |
| 58 | * @param int $priority | |
| 56 | * @param array $settings | |
| 57 | * @param array $metaData | |
| 58 | * @param int $priority | |
| 59 | 59 | * @return \Aws\Result |
| 60 | 60 | */ |
| 61 | 61 | public function createJob(array $settings, array $metaData, array $tags, int $priority); |
| @@ -63,7 +63,7 @@ interface Converter | ||
| 63 | 63 | /** |
| 64 | 64 | * Gets the job. |
| 65 | 65 | * |
| 66 | * @param string $id | |
| 66 | * @param string $id | |
| 67 | 67 | * @return \Aws\Result |
| 68 | 68 | */ |
| 69 | 69 | public function getJob(string $id); |
| @@ -71,7 +71,7 @@ interface Converter | ||
| 71 | 71 | /** |
| 72 | 72 | * Lists all of the jobs based on your options provided. |
| 73 | 73 | * |
| 74 | * @param array $options | |
| 74 | * @param array $options | |
| 75 | 75 | * @return \Aws\Result |
| 76 | 76 | */ |
| 77 | 77 | public function listJobs(array $options); |
| @@ -25,7 +25,7 @@ class MediaConvert implements Converter | ||
| 25 | 25 | /** |
| 26 | 26 | * Construct converter. |
| 27 | 27 | * |
| 28 | * @param \Aws\MediaConvert\MediaConvertClient $client | |
| 28 | * @param \Aws\MediaConvert\MediaConvertClient $client | |
| 29 | 29 | */ |
| 30 | 30 | public function __construct(MediaConvertClient $client) |
| 31 | 31 | { |
| @@ -54,8 +54,8 @@ class MediaConvert implements Converter | ||
| 54 | 54 | /** |
| 55 | 55 | * Sets the path of the file input. |
| 56 | 56 | * |
| 57 | * @param string $path - represents the S3 path, e.g path/to/file.mp4 | |
| 58 | * @param string|null $bucket - reference to the S3 Bucket name. Defaults to config value. | |
| 57 | * @param string $path - represents the S3 path, e.g path/to/file.mp4 | |
| 58 | * @param string|null $bucket - reference to the S3 Bucket name. Defaults to config value. | |
| 59 | 59 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 60 | 60 | */ |
| 61 | 61 | public function path(string $path, $bucket = null): MediaConvert |
| @@ -80,12 +80,12 @@ class MediaConvert implements Converter | ||
| 80 | 80 | /** |
| 81 | 81 | * Sets the settings required to generate the proper amount of thumbnails. |
| 82 | 82 | * |
| 83 | * @param int $framerateNumerator | |
| 84 | * @param int $framerateDenominator | |
| 85 | * @param int $maxCaptures | |
| 86 | * @param int|null $width | |
| 87 | * @param string|null $nameModifier | |
| 88 | * @param int $imageQuality | |
| 83 | * @param int $framerateNumerator | |
| 84 | * @param int $framerateDenominator | |
| 85 | * @param int $maxCaptures | |
| 86 | * @param int|null $width | |
| 87 | * @param string|null $nameModifier | |
| 88 | * @param int $imageQuality | |
| 89 | 89 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 90 | 90 | */ |
| 91 | 91 | public function withThumbnails(int $framerateNumerator, int $framerateDenominator, int $maxCaptures, $width = null, $nameModifier = null, $imageQuality = 80): MediaConvert |
| @@ -111,8 +111,8 @@ class MediaConvert implements Converter | ||
| 111 | 111 | /** |
| 112 | 112 | * Sets the S3 path & executes the job. |
| 113 | 113 | * |
| 114 | * @param string $s3Path | |
| 115 | * @param string|null $s3bucket | |
| 114 | * @param string $s3Path | |
| 115 | * @param string|null $s3bucket | |
| 116 | 116 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 117 | 117 | */ |
| 118 | 118 | public function saveTo(string $s3Path, $s3bucket = null): MediaConvert |
| @@ -128,7 +128,7 @@ class MediaConvert implements Converter | ||
| 128 | 128 | /** |
| 129 | 129 | * Cancels an active job. |
| 130 | 130 | * |
| 131 | * @param string $id | |
| 131 | * @param string $id | |
| 132 | 132 | * @return \Aws\Result |
| 133 | 133 | */ |
| 134 | 134 | public function cancelJob(string $id) |
| @@ -141,9 +141,9 @@ class MediaConvert implements Converter | ||
| 141 | 141 | /** |
| 142 | 142 | * Creates a new job based on the settings passed. |
| 143 | 143 | * |
| 144 | * @param array $settings | |
| 145 | * @param array $metaData | |
| 146 | * @param int $priority | |
| 144 | * @param array $settings | |
| 145 | * @param array $metaData | |
| 146 | * @param int $priority | |
| 147 | 147 | * @return \Aws\Result |
| 148 | 148 | */ |
| 149 | 149 | public function createJob(array $settings = [], array $metaData = [], array $tags = [], int $priority = 0) |
| @@ -166,7 +166,7 @@ class MediaConvert implements Converter | ||
| 166 | 166 | /** |
| 167 | 167 | * Gets the job. |
| 168 | 168 | * |
| 169 | * @param string $id | |
| 169 | * @param string $id | |
| 170 | 170 | * @return \Aws\Result |
| 171 | 171 | */ |
| 172 | 172 | public function getJob(string $id) |
| @@ -179,7 +179,7 @@ class MediaConvert implements Converter | ||
| 179 | 179 | /** |
| 180 | 180 | * Lists all of the jobs based on your options provided. |
| 181 | 181 | * |
| 182 | * @param array $options | |
| 182 | * @param array $options | |
| 183 | 183 | * @return \Aws\Result |
| 184 | 184 | */ |
| 185 | 185 | public function listJobs(array $options) |
| @@ -202,8 +202,8 @@ class MediaConvert implements Converter | ||
| 202 | 202 | /** |
| 203 | 203 | * Sets the S3 input file path. |
| 204 | 204 | * |
| 205 | * @param string $path | |
| 206 | * @param string|null $bucket | |
| 205 | * @param string $path | |
| 206 | * @param string|null $bucket | |
| 207 | 207 | */ |
| 208 | 208 | protected function setFileInput(string $path, $bucket = null) |
| 209 | 209 | { |
| @@ -13,8 +13,8 @@ class VerifySignature | ||
| 13 | 13 | /** |
| 14 | 14 | * Handle an incoming request. |
| 15 | 15 | * |
| 16 | * @param Request $request | |
| 17 | * @param \Closure $next | |
| 16 | * @param Request $request | |
| 17 | * @param \Closure $next | |
| 18 | 18 | * @return mixed |
| 19 | 19 | */ |
| 20 | 20 | public function handle(Request $request, Closure $next) |
| @@ -31,9 +31,9 @@ class CreateVideoConversion implements ShouldQueue | ||
| 31 | 31 | /** |
| 32 | 32 | * Create a new job instance. |
| 33 | 33 | * |
| 34 | * @param array $jobSettings | |
| 35 | * @param array $tags | |
| 36 | * @param int $mediaId | |
| 34 | * @param array $jobSettings | |
| 35 | * @param array $tags | |
| 36 | * @param int $mediaId | |
| 37 | 37 | */ |
| 38 | 38 | public function __construct($jobSettings, $tags = [], $mediaId = null) |
| 39 | 39 | { |
formatting only · 8 hidden lines
| @@ -13,7 +13,7 @@ class MediaConverterManager extends Manager formatting only | ||
| 13 | 13 | /** |
| 14 | 14 | * Get a driver instance. |
| 15 | 15 | * |
| 16 | * @param string|null $name | |
| 16 | * @param string|null $name | |
| 17 | 17 | * @return mixed |
| 18 | 18 | */ |
| 19 | 19 | public function engine($name = null) |
| @@ -25,6 +25,7 @@ class MediaConverterManager extends Manager | ||
| 25 | 25 | * Create an Amazon MediaConvert Converter instance. |
| 26 | 26 | * |
| 27 | 27 | * @return \Meema\MediaConverter\Converters\MediaConvert |
| 28 | * | |
| 28 | 29 | * @throws \Exception |
| 29 | 30 | */ |
| 30 | 31 | public function createMediaConvertDriver(): MediaConvert |
formatting only · 10 hidden lines
| @@ -43,8 +44,8 @@ class MediaConverterManager extends Manager formatting only | ||
| 43 | 44 | /** |
| 44 | 45 | * Sets the MediaConvert client. |
| 45 | 46 | * |
| 46 | * @param array $config | |
| 47 | * @param Credentials $credentials | |
| 47 | * @param array $config | |
| 48 | * @param Credentials $credentials | |
| 48 | 49 | * @return \Aws\MediaConvert\MediaConvertClient |
| 49 | 50 | */ |
| 50 | 51 | protected function setMediaConvertClient(array $config, Credentials $credentials): MediaConvertClient |
formatting only · 8 hidden lines
| @@ -59,7 +60,7 @@ class MediaConverterManager extends Manager formatting only | ||
| 59 | 60 | /** |
| 60 | 61 | * Get credentials of AWS. |
| 61 | 62 | * |
| 62 | * @param array $credentials | |
| 63 | * @param array $credentials | |
| 63 | 64 | * @return \Aws\Credentials\Credentials |
| 64 | 65 | */ |
| 65 | 66 | protected function getCredentials(array $credentials): Credentials |
| @@ -18,6 +18,7 @@ use Illuminate\Support\Str; | ||
| 18 | 18 | * @property int|null $percentage_completed |
| 19 | 19 | * @property \Illuminate\Support\Carbon|null $created_at |
| 20 | 20 | * @property \Illuminate\Support\Carbon|null $updated_at |
| 21 | * | |
| 21 | 22 | * @method static \Illuminate\Database\Eloquent\Builder|MediaConversion newModelQuery() |
| 22 | 23 | * @method static \Illuminate\Database\Eloquent\Builder|MediaConversion newQuery() |
| 23 | 24 | * @method static \Illuminate\Database\Eloquent\Builder|MediaConversion query() |