API | Operation | Description |
GenerateMediainfo | Getting media file information | Queries the details of a media file in a bucket |
public MediaInfoResponse generateMediainfo(MediaInfoRequest request);
Parameter | Description | Type | Required |
bucketName | String | Yes | |
object | Location information of the object queried by input.obget in the bucket | String | Yes |
CosClientException
or CosServiceException
exception. For more information, see Troubleshooting.//1. Create a media information request objectMediaInfoRequest request = new MediaInfoRequest();//2. Add request parameters as detailed in the API documentationrequest.setBucketName("examplebucket-1250000000");request.getInput().setObject("1.mp3");//3. Call the API to get the media information response objectMediaInfoResponse response = client.generateMediainfo(request);
Was this page helpful?