Halaman ini belum tersedia dalam bahasa lokal Anda. Kami berusaha keras untuk menambahkan lebih banyak versi bahasa. Terima kasih atas dukungan Anda.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Live/ Low Latency Live Client SDK Reference/ Web SDK/ API Reference/ Client Event Notification (HWLLSClientEvent)

Client Event Notification (HWLLSClientEvent)

Updated on 2025-02-21 GMT+08:00

This section describes the HWLLSClientEvent APIs of the LLL web SDK.

Table 1 HWLLSClientEvent APIs

API

Description

media-statistic

Media statistics event.

network-quality

Network quality report event.

video-broken

Video streaming interruption event (waiting for recovery).

audio-broken

Audio streaming interruption event (waiting for recovery).

video-recovery

Video streaming resumption event (playback resumed).

audio-recovery

Audio streaming resumption event (playback resumed).

audio-start

Audio playback start event.

video-start

Video playback start event.

video-stuck

Video playback pause event.

fullscreen-status-changed

Full-screen view event.

player-changed

Playback downgrade event.

Error

Client error event.

CAUTION:

Registration listening must be canceled when the service ends. Otherwise, memory leakage may occur when there are a certain number of registration listening events.

media-statistic

[Event Description]

Media statistics event. This event is used together with the streamStatistic method.

[Callback Parameters]

StatisticInfo: media statistics. The value type is StatisticInfo.

StatisticInfo is defined as follows: {

  • video: {

    mediaType: media type

    frameRate: video frame rate. The type is number.

    width: video width. The type is number.

    height: video height. The type is number.

    jitter: jitter. The type is number.

    bitRate: bitrate (in kbit/s). The type is number.

    bytesReceived: number of received bytes. The type is number.

    packetsReceived: number of received packets. The type is number.

    packetsLost: number of lost packets. The type is number.

    }

  • audio: {

    mediaType: media type

    jitter: jitter. The type is number.

    bitRate: bitrate (in kbit/s). The type is number.

    bytesReceived: number of received bytes. The type is number.

    packetsReceived: number of received packets. The type is number.

    packetsLost: number of lost packets. The type is number.

    }

}

network-quality

[Event Description]

Network quality report event.

[Callback Parameters]

NetworkQualityTypes: network quality details. The type is NetworkQualityTypes.

The enumerated values of NetworkQualityTypes are as follows:

  • NETWORK_QUALITY_UNKNOW = 0: The network quality is unknown.
  • NETWORK_QUALITY_GREAT = 1: The network quality is excellent.
  • NETWORK_QUALITY_GOOD = 2: User experience is almost the same as that of value 1, but the bitrate may be slightly lower.
  • NETWORK_QUALITY_DEFECTS = 3: User experience is defective but the watching is not affected.
  • NETWORK_QUALITY_WEAK = 4: The network quality is poor and the video is not smooth.
  • NETWORK_QUALITY_BAD = 5: The network quality is so poor that user experience is severely affected.
  • NETWORK_QUALITY_DISCONNECT = 6: The network quality is poor and even disconnection occurs. The video cannot be watched.

video-broken

[Event Description]

Video streaming interruption event (waiting for recovery).

[Callback Parameters]

None

audio-broken

[Event Description]

Audio streaming interruption event (waiting for recovery).

[Callback Parameters]

None

video-recovery

[Event Description]

Video streaming resumption (non-EOF) event (playback resumed).

[Callback Parameters]

None

audio-recovery

[Event Description]

Audio streaming resumption (non-EOF) event (playback resumed).

[Callback Parameters]

None

audio-start

[Event Description]

Audio playback start event.

[Callback Parameters]

None

video-start

[Event Description]

Video playback start event.

[Callback Parameters]

None

video-stuck

[Event Description]

Video playback pause event.

[Callback Parameters]

Boolean value. True indicates paused, and False indicates not paused.

fullscreen-status-changed

[Event Description]

Full-screen view event.

[Callback Parameters]

  • isFullScreen: indicates whether to enable full-screen display
  • isPause: indicates whether to stop playback

player-changed

[Event Description]

Playback downgrade event.

[Callback Parameters]

Indicates the downgrade information. The value is a string.

  • webrtc: LLL playback
  • hls: HLS playback
  • flv: FLV playback

Error

[Event Description]

This event is triggered when an unrecoverable client error occurs.

[Callback Parameters]

errorInfo: (mandatory) error information. The value is of the HwLLSError type.

errorInfo is defined as: {

code: (mandatory) error code. The type is number.

message: (mandatory) error description. The type is string.

getCode (): (mandatory) returned error code. The type is number.

getMsg (): (mandatory) returned error description. The type is string.

}

CAUTION:

If the network firewall is restricted (UDP port restriction) or playback fails on LLL for multiple times, you can downgrade the playback based on the specified error code (HWLLS_MEDIA_NETWORK_ERROR or HWLLS_PLAY_WEBRTC_RETRY_FAILED). For details, see SDK Usage.

Kami menggunakan cookie untuk meningkatkan kualitas situs kami dan pengalaman Anda. Dengan melanjutkan penelusuran di situs kami berarti Anda menerima kebijakan cookie kami. Cari tahu selengkapnya

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback