视频直播 LIVE-SDK概述
SDK概述
华为云提供了直播服务端SDK,您可以直接集成服务端SDK来调用直播的相关API,从而实现对直播服务的快速操作。目前 视频直播 提供了Java、Python、Go和PHP四种语言SDK供开发者使用,如表1所示。
SDK已知安全漏洞及修复版本、规避方案,请单击表1中的SDK对应语言的Github地址进行查看。
支持的直播API如表2所示,后续SDK将会持续升级,支持所有直播API。
Java SDK |
Python SDK |
Go SDK |
API参考 |
---|---|---|---|
createDomain |
create_domain |
CreateDomain |
|
deleteDomain |
delete_domain |
DeleteDomain |
|
updateDomain |
update_domain |
UpdateDomain |
|
showDomain |
show_domain |
ShowDomain |
|
createDomainMapping |
create_domain_mapping |
CreateDomainMapping |
|
deleteDomainMapping |
delete_domain_mapping |
DeleteDomainMapping |
|
createTranscodingsTemplate |
create_transcodings_template |
CreateTranscodingsTemplate |
|
updateTranscodingsTemplate |
update_transcodings_template |
UpdateTranscodingsTemplate |
|
deleteTranscodingsTemplate |
delete_transcodings_template |
DeleteTranscodingsTemplate |
|
showTranscodingsTemplate |
show_transcodings_template |
ShowTranscodingsTemplate |
|
createStreamForbidden |
create_stream_forbidden |
CreateStreamForbidden |
|
updateStreamForbidden |
update_stream_forbidden |
UpdateStreamForbidden |
|
deleteStreamForbidden |
delete_stream_forbidden |
DeleteStreamForbidden |
|
listStreamForbidden |
list_stream_forbidden |
ListStreamForbidden |
|
showBandwidth |
show_bandwidth |
ShowBandwidth |
|
listLiveSampleLogs |
list_live_sample_logs |
ListLiveSampleLogs |
|
createRecordRule |
create_record_rule |
CreateRecordRule |
|
listRecordRules |
list_record_rules |
ListRecordRules |
|
updateRecordRule |
update_record_rule |
UpdateRecordRule |
|
deleteRecordRule |
delete_record_rule |
DeleteRecordRule |
|
showRecordRule |
show_record_rule |
ShowRecordRule |
|
runRecord |
run_record |
RunRecord |
|
createRecordCallbackConfig |
create_record_callback_config |
CreateRecordCallbackConfig |
|
listRecordCallbackConfigs |
list_record_callback_configs |
ListRecordCallbackConfigs |
|
updateRecordCallbackConfig |
update_record_callback_config |
UpdateRecordCallbackConfig |
|
showRecordCallbackConfig |
show_record_callback_config |
ShowRecordCallbackConfig |
|
deleteRecordCallbackConfig |
delete_record_callback_config |
DeleteRecordCallbackConfig |
|
showTraffic |
show_traffic |
ShowTraffic |
|
showOnlineUsers |
show_online_users |
ShowOnlineUsers |
|
listBandwidthDetail |
list_bandwidth_detail |
ListBandwidthDetail |
|
listDomainTrafficDetail |
list_domain_traffic_detail |
ListDomainTrafficDetail |
|
listDomainBandwidthPeak |
list_domain_bandwidth_peak |
ListDomainBandwidthPeak |
|
listDomainTrafficSummary |
list_domain_traffic_summary |
ListDomainTrafficSummary |
|
listUsersOfStream |
list_users_of_stream |
ListUsersOfStream |
|
listQueryHttpCode |
list_query_http_code |
ListQueryHttpCode |
|
listTranscodeData |
list_transcode_data |
ListTranscodeData |
|
listRecordData |
list_record_data |
ListRecordData |
|
listSnapshotData |
list_snapshot_data |
ListSnapshotData |
|
showUpBandwidth |
show_up_bandwidth |
ShowUpBandwidth |
|
showStreamCount |
show_stream_count |
ShowStreamCount |
|
listHistoryStreams |
list_history_streams |
ListHistoryStreams |
|
showStreamPortrait |
show_stream_portrait |
ShowStreamPortrait |
|
listSingleStreamFramerate |
list_single_stream_framerate |
ListSingleStreamFramerate |
|
listSingleStreamBitrate |
list_single_stream_bitrate |
ListSingleStreamBitrate |
|
listLiveStreamsOnline |
list_live_streams_online |
ListLiveStreamsOnline |