live.dart 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import 'package:fis_i18n/types.dart';
  2. /// 直播模块
  3. class LiveModule extends ModuleBase {
  4. LiveModule._({
  5. required this.deviceLive,
  6. required this.clickToViewOtherDeviceLive,
  7. required this.deviceLiveList,
  8. required this.maxViewCountOfDeviceLive,
  9. required this.limitOfMaxLiveSourceCount,
  10. required this.tipsOfDeviceOffline,
  11. required this.scanQrCodeToShareLive,
  12. });
  13. static const ModuleName = "live";
  14. factory LiveModule(Map<String, dynamic> map) {
  15. return LiveModule._(
  16. deviceLive: map.pick("deviceLive"),
  17. clickToViewOtherDeviceLive: map.pick("clickToViewOtherDeviceLive"),
  18. deviceLiveList: map.pick("deviceLiveList"),
  19. maxViewCountOfDeviceLive: map.pick("maxViewCountOfDeviceLive"),
  20. limitOfMaxLiveSourceCount: map.pick("limitOfMaxLiveSourceCount"),
  21. tipsOfDeviceOffline: map.pick("tipsOfDeviceOffline"),
  22. scanQrCodeToShareLive: map.pick("scanQrCodeToShareLive"),
  23. );
  24. }
  25. /// 超声云视
  26. final FTrStr deviceLive;
  27. /// 点击选择观看其他超声直播
  28. final FTrStr clickToViewOtherDeviceLive;
  29. /// 超声机直播列表
  30. final FTrStr deviceLiveList;
  31. /// 超声直播同屏显示最大数量
  32. final FTrStr maxViewCountOfDeviceLive;
  33. /// 超过平台限制的最大直播流数量!
  34. final FTrStr limitOfMaxLiveSourceCount;
  35. /// 设备不在线,请刷新列表重试
  36. final FTrStr tipsOfDeviceOffline;
  37. /// 扫描二维码,分享直播画面
  38. final FTrStr scanQrCodeToShareLive;
  39. @override
  40. getProp(String propName) {
  41. // TODO: implement getProp
  42. throw UnimplementedError();
  43. }
  44. }