tencent_flutter_txcloud 0.0.1 copy "tencent_flutter_txcloud: ^0.0.1" to clipboard
tencent_flutter_txcloud: ^0.0.1 copied to clipboard

A new Flutter package. Encapsulated the process of getting the signature ,could request data from tencent cloud service

tencent_flutter_txcloud #

*A new Flutter package. *This project is a starting point for a Dart

主要功能 #

  • dart版本的腾讯云的云点播服务的SDK,可以直接调用RequestVideoData类中的相应的 方法从腾讯云中获得相应的录播数据。包里封装了计算签名(使用的v3签名方法),HTTP的 post方法请求数据,以及对请求到的数据进行解析的过程。

  • 对于请求数据和解析数据部分只是针对腾讯云的云点播服务,如果需要请求其他服务的数据 需要重写计算签名方法即RequestVideoData类中的_getPostSignature()方法,具体做法 就是将方法中的service字段和host字段替换成相应的服务对应的字段,例如:云点播服务对 应的service字段为vod。除了充血计算签名方法外还需要自己解析返回的请求数据。

注意事项 #

要请求数据,需要先申请一对安全凭证; 申请安全凭证的具体步骤如下: 1。登录 腾讯云管理中心控制台。 2。前往 云API密钥 的控制台页面。 3。在 云API密钥 页面,单击【新建密钥】即可以创建一对密钥。

由于刚实习不久,所以目前水平较低,代码里难免会有错误或不规范的地方,如果发现敬请斧正!

1
likes
15
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package. Encapsulated the process of getting the signature ,could request data from tencent cloud service

License

Apache-2.0 (LICENSE)

Dependencies

crypto, dio, flutter, hex, intl

More

Packages that depend on tencent_flutter_txcloud