Updated on 2024-08-05 GMT+08:00

SDK Overview

You can integrate the Live server SDK provided by Huawei Cloud to call Live APIs for quick operations. Currently, the Live SDK is available in Java, Python, Go, and PHP, as shown in Table 1.

For details about known SDK security vulnerabilities, fixed versions, and workarounds, click the GitHub address of the desired SDK language in Table 1.

Table 2 lists the Live APIs supported by the SDK. The SDK will be upgraded to support all Live APIs.

Table 2 Mapping between the SDK and APIs

Java SDK

Python SDK

Go SDK

API Reference

createDomain

create_domain

CreateDomain

Creating a Domain Name

deleteDomain

delete_domain

DeleteDomain

Deleting a Domain Name

updateDomain

update_domain

UpdateDomain

Modifying a Domain Name

showDomain

show_domain

ShowDomain

Querying a Domain Name

createDomainMapping

create_domain_mapping

CreateDomainMapping

Mapping Domain Names

deleteDomainMapping

delete_domain_mapping

DeleteDomainMapping

Deleting a Domain Name Mapping

createTranscodingsTemplate

create_transcodings_template

CreateTranscodingsTemplate

Creating a Transcoding Template

updateTranscodingsTemplate

update_transcodings_template

UpdateTranscodingsTemplate

Modifying a Transcoding Template

deleteTranscodingsTemplate

delete_transcodings_template

DeleteTranscodingsTemplate

Deleting a Transcoding Template

showTranscodingsTemplate

show_transcodings_template

ShowTranscodingsTemplate

Querying Transcoding Templates

createStreamForbidden

create_stream_forbidden

CreateStreamForbidden

Disabling a Push Stream

updateStreamForbidden

update_stream_forbidden

UpdateStreamForbidden

Modifying the Attribute of a Disabled Stream

deleteStreamForbidden

delete_stream_forbidden

DeleteStreamForbidden

Resuming a Push Stream

listStreamForbidden

list_stream_forbidden

ListStreamForbidden

Querying Disabled Streams

listLiveSampleLogs

list_live_sample_logs

ListLiveSampleLogs

Obtaining Live Streaming Logs

createRecordRule

create_record_rule

CreateRecordRule

Creating a Recording Template

listRecordRules

list_record_rules

ListRecordRules

Querying Recording Templates

updateRecordRule

update_record_rule

UpdateRecordRule

Modifying a Recording Template

deleteRecordRule

delete_record_rule

DeleteRecordRule

Deleting a Recording Template

showRecordRule

show_record_rule

ShowRecordRule

Querying a Recording Template

runRecord

run_record

RunRecord

Submitting a Recording Command

createRecordCallbackConfig

create_record_callback_config

CreateRecordCallbackConfig

Creating a Recording Callback

listRecordCallbackConfigs

list_record_callback_configs

ListRecordCallbackConfigs

Querying the List of Recording Callbacks

updateRecordCallbackConfig

update_record_callback_config

UpdateRecordCallbackConfig

Modifying a Recording Callback

showRecordCallbackConfig

show_record_callback_config

ShowRecordCallbackConfig

Querying a Recording Callback

deleteRecordCallbackConfig

delete_record_callback_config

DeleteRecordCallbackConfig

Deleting a Recording Callback

listDomainBandwidthPeak

list_domain_bandwidth_peak

ListDomainBandwidthPeak

Querying Peak Bandwidth

listDomainTrafficSummary

list_domain_traffic_summary

ListDomainTrafficSummary

Querying Total Traffic

listQueryHttpCode

list_query_http_code

ListQueryHttpCode

Querying HTTP Status Codes for Pulling Live Streams

listTranscodeData

list_transcode_data

ListTranscodeData

Querying the Duration of Transcoded Outputs

listRecordData

list_record_data

ListRecordData

Querying Recording Channels

listSnapshotData

list_snapshot_data

ListSnapshotData

Querying the Number of Snapshots

showUpBandwidth

show_up_bandwidth

ShowUpBandwidth

Querying Upstream Bandwidth

showStreamCount

show_stream_count

ShowStreamCount

Querying the Number of Pushed Streams by Domain Name

listHistoryStreams

list_history_streams

ListHistoryStreams

Querying the Historical Stream List

showStreamPortrait

show_stream_portrait

ShowStreamPortrait

Querying the Playback Profile

listSingleStreamFramerate

list_single_stream_framerate

ListSingleStreamFramerate

Querying the Stream Push Frame Rate

listSingleStreamBitrate

list_single_stream_bitrate

ListSingleStreamBitrate

Querying the Stream Push Bitrate

listLiveStreamsOnline

list_live_streams_online

ListLiveStreamsOnline

Querying an Ongoing Stream