import 'package:fis_jsonrpc/services/device.m.dart';

const String VINNO_DEVICE_CODE = "VINNO_FIS";

/// 设备直播来源信息
class DeviceLiveSourceInfoModel {
  DeviceLiveSourceInfoModel({
    required this.httpFlvUrl,
    required this.rtmpUrl,
    required this.width,
    required this.height,
  });

  /// HTTP-FLV 拉流地址
  final String httpFlvUrl;

  /// rtmpUrl 拉流地址
  final String rtmpUrl;

  /// 宽度
  final int width;

  /// 高度
  final int height;
}

/// 设备直播显示信息实体
class DeviceLiveDisplayInfoModel {
  DeviceLiveDisplayInfoModel({
    required this.useMerge,
    required this.mergeWidth,
    required this.mergeHeight,
    required this.sources,
    required this.isOldPlatform,
  });

  /// 是否合图
  final bool useMerge;

  /// 合图宽度
  final int mergeWidth;

  /// 合图高度
  final int mergeHeight;

  /// 直播源列表
  final List<DeviceLiveSourceInfoModel> sources;

  /// 是否是老平台超声机
  final bool isOldPlatform;

  JoinDeviceLiveRoomResult? dto;
}
