| 程序包 | 说明 |
|---|---|
| com.github.binarywang.wxpay.bean.media | |
| com.github.binarywang.wxpay.service | |
| com.github.binarywang.wxpay.service.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
static VideoUploadResult |
VideoUploadResult.fromJson(String json) |
| 限定符和类型 | 方法和说明 |
|---|---|
VideoUploadResult |
MerchantMediaService.videoUploadV3(File videoFile)
通用接口-视频上传API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/merchant/media/video_upload
|
VideoUploadResult |
MerchantMediaService.videoUploadV3(InputStream inputStream,
String fileName)
通用接口-视频上传API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/merchant/media/video_upload
注意:此方法会将整个视频流读入内存计算SHA256后再上传,大文件可能导致OOM,建议大文件使用File方式上传
|
| 限定符和类型 | 方法和说明 |
|---|---|
VideoUploadResult |
MerchantMediaServiceImpl.videoUploadV3(File videoFile) |
VideoUploadResult |
MerchantMediaServiceImpl.videoUploadV3(InputStream inputStream,
String fileName) |
Copyright © 2026. All rights reserved.