Seven Qiniu storage-seven kn PHP SDK upload transcoding problem

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.