xp2p_sdk library
XP2P SDK for Flutter
腾讯物联网 XP2P SDK,提供 P2P 连接功能,支持视频直播、回放、语音对讲等功能。
Classes
- AppConfig
- 应用配置 用于配置 P2P 连接的服务器和网络参数 对应 Android 的 AppConfig.java
- Command
- ConfigUtil
- 配置工具类
- DataReport
- 用于上报 P2P 连接的统计数据
- FileUtils
- FLVPacker
- LogConfig
- Logger
- 日志工具类
- SoundTouch
- SoundTouch 高级封装类
- SoundTouchSetting
- SoundTouch 设置 ID 常量
- TXLivePlayer
- V2TXLiveFlutterResult
- V2TXLiveVideoWidget
- V2TXLiveVideoWidgetState
- XP2P
- XP2P SDK 主类 提供 P2P 视频流传输的核心功能
- XP2PAppConfig
- XP2P 应用配置
- XP2PCallback
- XP2P 回调接口
Enums
- LiveStreamQuality
- LogLevel
- V2TXLivePlayerListenerType
-
Player callback notification of Tencent Cloud Live.
You can receive some callback notifications from V2TXLivePlayer, including player status, playback volume callback, audio and video first frame callback, statistics, warnings, and error messages. - XP2PCloseSubType
- XP2P 关闭子类型 用于标识服务关闭的具体类型
- XP2PErrorCode
- XP2P 错误码定义
- XP2PProtocolType
- XP2P 协议类型 用于指定 P2P 连接使用的网络协议
- XP2PType
- XP2P 事件类型 用于标识不同类型的回调事件
Constants
- DELEGATE_FLV_FAILED → const V2TXLiveCode
- PLAYER_HAS_STARTED → const V2TXLiveCode
- V2TXLIVE_ERROR_DISCONNECTED → const V2TXLiveCode
- The connection is lost
- V2TXLIVE_ERROR_FAILED → const V2TXLiveCode
- A generic error that has not yet been classified
- V2TXLIVE_ERROR_INVALID_LICENSE → const V2TXLiveCode
- The license is invalid and the call failed
- V2TXLIVE_ERROR_INVALID_PARAMETER → const V2TXLiveCode
- The parameter is invalid
- V2TXLIVE_ERROR_NOT_SUPPORTED → const V2TXLiveCode
- The current API does not support calls
- V2TXLIVE_ERROR_REFUSED → const V2TXLiveCode
- The API call was rejected
- V2TXLIVE_ERROR_REQUEST_TIMEOUT → const V2TXLiveCode
- The request server timed out
- V2TXLIVE_ERROR_SERVER_PROCESS_FAILED → const V2TXLiveCode
- The server is unable to process your request
- V2TXLIVE_OK → const V2TXLiveCode
- Success
- V2TXLIVE_WARNING_CAMERA_NO_PERMISSION → const V2TXLiveCode
- The camera device is not authorized, usually on mobile devices, and it may be that the permission has been denied by the user
- V2TXLIVE_WARNING_CAMERA_OCCUPIED → const V2TXLiveCode
- The camera is occupied, try turning on a different camera
- V2TXLIVE_WARNING_CAMERA_START_FAILED → const V2TXLiveCode
- The camera failed to turn on
- V2TXLIVE_WARNING_MICROPHONE_NO_PERMISSION → const V2TXLiveCode
- The microphone device is not authorized, usually on mobile devices, and it may be that the permission has been denied by the user
- V2TXLIVE_WARNING_MICROPHONE_OCCUPIED → const V2TXLiveCode
- The microphone is being occupied, such as when a mobile device is on a call, and turning on the microphone fails
- V2TXLIVE_WARNING_MICROPHONE_START_FAILED → const V2TXLiveCode
- The microphone failed to turn on
- V2TXLIVE_WARNING_NETWORK_BUSY → const V2TXLiveCode
- Poor network conditions: The uplink bandwidth is too small and the upload data is blocked
- V2TXLIVE_WARNING_SCREEN_CAPTURE_INTERRUPTED → const V2TXLiveCode
- The screen recording is interrupted by the system
- V2TXLIVE_WARNING_SCREEN_CAPTURE_NOT_SUPPORTED → const V2TXLiveCode
- The current system does not support screen sharing
- V2TXLIVE_WARNING_SCREEN_CAPTURE_START_FAILED → const V2TXLiveCode
- If it fails to start screen recording, if it appears on a mobile device, it may be that the permission has been denied by the user
- V2TXLIVE_WARNING_VIDEO_BLOCK → const V2TXLiveCode
- The current video is playing stuttering
Typedefs
- FLVDataCallback = void Function(Uint8List flvData)
-
OnResultListener<
T> = void Function(T result) - V2TXLiveCode = int
-
V2TXLivePlayerObserver<
P> = void Function(V2TXLivePlayerListenerType type, P? params)