toJson method

  1. @override
Map<String, dynamic> toJson()
override

转换为可用于播放器的配置映射

Convert to a configuration map that can be used by the player

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'sourceType': sourceType.toString(),
    'vid': vid,
    'accessKeyId': accessKeyId,
    'accessKeySecret': accessKeySecret,
    'securityToken': securityToken,
    'region': region,
  };
}