I'm not going to use the SDK. Sincerity Circle
Ask the great God for guidance
vendor('Qiniu.io'); vendor('Qiniu.rs'); $bucket = 'icunzai-voice'; $key = $filename; $client = new \Qiniu_MacHttpClient(null); $putPolicy = new \Qiniu_RS_PutPolicy("$bucket:$key"); $putPolicy->CallbackUrl = U('/Wechat/Bottle/voic_allback','','',true); //回调地址 $putPolicy->CallbackBody = 'key=$(key)&hash=$(etag)'; $upToken = $putPolicy->Token(); $putExtra = new \Qiniu_PutExtra(); list($ret, $err) = Qiniu_Put($upToken, $key, $media["mediaBody"], $putExtra); if ($ret !== null) { return $ret; }else{ return $err; }
Now the upload is successful but how do I upload and transcode at the same time?
Ask the great God for a little guidance.
And the official demo is 7.0 but customer service recommended 6.113
I'm using 6.113.
Reply content:
I'm not going to use the SDK. Sincerity Circle
Ask the great God for guidance
vendor('Qiniu.io'); vendor('Qiniu.rs'); $bucket = 'icunzai-voice'; $key = $filename; $client = new \Qiniu_MacHttpClient(null); $putPolicy = new \Qiniu_RS_PutPolicy("$bucket:$key"); $putPolicy->CallbackUrl = U('/Wechat/Bottle/voic_allback','','',true); //回调地址 $putPolicy->CallbackBody = 'key=$(key)&hash=$(etag)'; $upToken = $putPolicy->Token(); $putExtra = new \Qiniu_PutExtra(); list($ret, $err) = Qiniu_Put($upToken, $key, $media["mediaBody"], $putExtra); if ($ret !== null) { return $ret; }else{ return $err; }
Now the upload is successful but how do I upload and transcode at the same time?
Ask the great God for a little guidance.
And the official demo is 7.0 but customer service recommended 6.113
I'm using 6.113.
There is a 6.x version of the demo Https://github.com/jemygraw/qiniu-lab-php/blob/v6/demos/upload/video_u ... Upload the time to specify the transcoding operation of the demo, modified under PersistentOps
the processing parameters can be.
The first use of seven cows is not very understanding
The official demo is 7.0 and the local 6.113 doesn't match up
The main features you want to implement are
The. AMR audio file downloaded from the interface is transcoded. MP3 from the Web