阿里云直播推流設(shè)置教程
第一步:開通阿里云直播
https://www.aliyun.com/product/live
第二步:打開阿里云直播域名管理,添加 推流域名 + 播流域名
(域名要重新解析2個二級域名,不能用同城域名,比如你的同城域名是 www.baidu.com ,那么你可以解析 推流域名:tlive.baidu.com 播流域名:blive.baidu.com 這樣的)
https://live.console.aliyun.com/#/domain/list
域名解析參考如下:
點(diǎn)開 播流域名 》 域名配置 》 關(guān)聯(lián) 推流域名
點(diǎn)開 播流域名 》 設(shè)置 HTTP 頭 (解決推流成功,不能播放的問題)
(1)設(shè)置同城域名,要 http https 開頭 ,比如 https://www.baidu.com 不要最后的 /
(2)設(shè)置 POST,GET
第三步:打開 域名配置,獲取 推流域名鑒權(quán)Key 和 播放域名鑒權(quán)Key
第四步:配置 播流域名 https
https://yundun.console.aliyun.com/?p=cas#/certExtend/free
(1)、使用播流域名 創(chuàng)建免費(fèi)阿里云證書
(2)創(chuàng)建成功證書后,點(diǎn)擊部署
(3)選擇資源列表,視頻直播 類型,然后直接部署證書
第五步:填寫同城后臺參數(shù)
第六步:獲取推流地址
第七步:阿里云直播推流APP下載
https://help.aliyun.com/document_detail/455182.html
使用注意:要點(diǎn)下面這個 開始推流 才會進(jìn)行直播推流的