阿里云直播服务端API的坑。

使用ffmpeg 推流过程中,想通过 Aliyun 的 live API来确定流是否在线。但是当流还在推送的情况下,API返回的列表中还是有可能不包含正在推送的流的,虽然这种情形出现的几率不高。有时候推送一个90分钟的流一次都不出现,但也有的时候能出现好多次。

[2018-07-24 12:15:55][DEBUG] getPseudoLiveInfoAction
[2018-07-24 12:15:56][INFO] {"TotalPage":1,"TotalNum":1,"PageSize":2000,"RequestId":"5C91CC7C-3A9E-4B9F-B23E-E02D59F88ED7","PageNum":1,"OnlineInfo":{"LiveStreamOnlineInfo":[{"Transcoded":"no","PublishTime":"2018-07-24T04:09:02Z","StreamName":"live_010_007","PublishUrl":"rtmp:\/\/live.test200.com\/hqgc\/live_010_007","DomainName":"live.test200.com","AppName":"hqgc","PublishType":"center","PublishDomain":"live.test200.com"}]}}
[2018-07-24 12:15:56][INFO] [{"Transcoded":"no","PublishTime":"2018-07-24T04:09:02Z","StreamName":"live_010_007","PublishUrl":"rtmp:\/\/live.test200.com\/hqgc\/live_010_007","DomainName":"live.test200.com","AppName":"hqgc","PublishType":"center","PublishDomain":"live.test200.com"}]
[2018-07-24 12:15:56][DEBUG] getPseudoLiveInfoOutput

[2018-07-24 12:15:59][DEBUG] getPseudoLiveInfoAction
[2018-07-24 12:16:00][INFO] {"TotalPage":0,"TotalNum":0,"PageSize":2000,"RequestId":"84CEDC8C-C5A7-4347-B012-CC13C3224C16","PageNum":1,"OnlineInfo":{"LiveStreamOnlineInfo":[]}}
[2018-07-24 12:16:00][INFO] []
[2018-07-24 12:16:00][DEBUG] getPseudoLiveInfoOutput

[2018-07-24 12:17:09][DEBUG] getPseudoLiveInfoAction
[2018-07-24 12:17:09][INFO] {"TotalPage":1,"TotalNum":1,"PageSize":2000,"RequestId":"CBDC1279-16B1-4232-BF30-8B4E90502AF2","PageNum":1,"OnlineInfo":{"LiveStreamOnlineInfo":[{"Transcoded":"no","PublishTime":"2018-07-24T04:09:02Z","StreamName":"live_010_007","PublishUrl":"rtmp:\/\/live.test200.com\/hqgc\/live_010_007","DomainName":"live.test200.com","AppName":"hqgc","PublishType":"center","PublishDomain":"live.test200.com"}]}}
[2018-07-24 12:17:09][INFO] [{"Transcoded":"no","PublishTime":"2018-07-24T04:09:02Z","StreamName":"live_010_007","PublishUrl":"rtmp:\/\/live.test200.com\/hqgc\/live_010_007","DomainName":"live.test200.com","AppName":"hqgc","PublishType":"center","PublishDomain":"live.test200.com"}]
[2018-07-24 12:17:09][DEBUG] getPseudoLiveInfoOutput
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值