开发者社区> 问答> 正文

请问怎样利用oss c sdk开发流媒体的推送

官网上有python流推送的列子,但就是没有C语言的,我查看了oss c sdk的代码,里面也有推送流的函数,但具体怎样使用就没有象python那样详说,希望官方也给个象python那样的列子,谢谢

展开
收起
cqzj70 2017-02-17 16:08:00 3372 0
2 条回答
写回答
取消 提交回答
  • 在oss c sdk基础上有封装了一个专门做视频推送相关处理的oss media sdk,应该可以满足你的需求,以下是相关的文档和代码:
    https://help.aliyun.com/document_detail/32159.html?spm=5176.doc31890.6.814.bC4vJ1
    https://github.com/aliyun/aliyun-media-c-sdk
    2017-02-20 10:22:48
    赞同 展开评论 打赏
  • Re请问怎样利用oss c sdk开发流媒体的推送
    aos_status_t *oss_create_live_channel(const oss_request_options_t *options,
                                          const aos_string_t *bucket,
                                          oss_live_channel_configuration_t *config,
                                          aos_list_t *publish_url_list,
                                          aos_list_t *play_url_list,
                                          aos_table_t **resp_headers)



    aos_status_t *oss_put_live_channel_status(const oss_request_options_t *options,
                                              const aos_string_t *bucket,
                                              const aos_string_t *live_channel,
                                              const aos_string_t *live_channel_status,
                                              aos_table_t **resp_headers)


    aos_status_t *oss_get_live_channel_info(const oss_request_options_t *options,
                                            const aos_string_t *bucket,
                                            const aos_string_t *live_channel,
                                            oss_live_channel_configuration_t *info,
                                            aos_table_t **resp_headers)

    aos_status_t *oss_get_live_channel_stat(const oss_request_options_t *options,
                                            const aos_string_t *bucket,
                                            const aos_string_t *live_channel,
                                            oss_live_channel_stat_t *stat,
                                            aos_table_t **resp_headers)


    aos_status_t *oss_delete_live_channel(const oss_request_options_t *options,
                                          const aos_string_t *bucket,
                                          const aos_string_t *live_channel,
                                          aos_table_t **resp_headers)

    aos_status_t *oss_list_live_channel(const oss_request_options_t *options,
                                        const aos_string_t *bucket,
                                        oss_list_live_channel_params_t *params,
                                        aos_table_t **resp_headers)


    aos_status_t *oss_get_live_channel_history(const oss_request_options_t *options,
                                               const aos_string_t *bucket,
                                               const aos_string_t *live_channel,
                                               aos_list_t *live_record_list,
                                               aos_table_t **resp_headers)


    aos_status_t *oss_gen_vod_play_list(const oss_request_options_t *options,
                                         const aos_string_t *bucket,
                                         const aos_string_t *live_channel,
                                         const aos_string_t *play_list_name,
                                         const int64_t start_time,
                                         const int64_t end_time,
                                         aos_table_t **resp_headers)


    char *oss_gen_rtmp_signed_url(const oss_request_options_t *options,
                                  const aos_string_t *bucket,
                                  const aos_string_t *live_channel,
                                  const aos_string_t *play_list_name,
                                  const int64_t expires)
    以上就是oss c sdk里的流推送的函数

    -------------------------

    Re请问怎样利用oss c sdk开发流媒体的推送
    谢谢楼上的,我已经解决推送问题
    2017-02-17 16:16:29
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
一个跨平台的云服务SDK需要什么 立即下载
云存储之OSS实战进阶分享 立即下载
OSS运维进阶实战手册 立即下载