视频直播 LIVE-主入口(HWLLSPlayer):on

时间:2025-04-27 16:16:54

on

on(event: string, handler: function, withTimeout?: boolean): void

功能说明

注册客户端对象事件回调接口。

请求参数
  • event:必选,string类型,事件名称, 注册Error事件,监听打点或者日志上传的错误信息。
  • handler:必选,function类型,事件处理方法。

    handler方法会传参errorInfo,errorInfo是一个对象,其定义如下所示:

    {

    code:必选,number类型,错误码。

    message:必选,string类型,错误描述。

    appid:必选,string类型,错误日志标识。

    }

  • withTimeout:选填,boolean类型,是否超时报错。

返回参数

support.huaweicloud.com/llsdk-live/live_19_0009.html
提示

您即将访问非华为云网站,请注意账号财产安全