|
@@ -1073,6 +1073,29 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public void test() {
|
|
|
+ try {
|
|
|
+ // Initialize Minio client
|
|
|
+ MinioClient minioClient = MinioClient.builder()
|
|
|
+ .endpoint(endpoint)
|
|
|
+ .credentials(accessKey, secretKey)
|
|
|
+ .build();
|
|
|
+
|
|
|
+ // Bucket name
|
|
|
+ String bucketName = this.bucketName;
|
|
|
+
|
|
|
+ // List all objects in the bucket
|
|
|
+ Iterable<Result<Item>> results = minioClient.listObjects(ListObjectsArgs.builder().bucket(bucketName).recursive(true).build());
|
|
|
+ for (Result<Item> result : results) {
|
|
|
+ Item item = result.get();
|
|
|
+ log.info(item.objectName());
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("Error occurred: " + e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
// // 创建一个集合
|