CustomInfo.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class CustomInfo
  5. {
  6. public static int mWidth = 1280;
  7. public static int mHight = 720;
  8. public static int FPS = 30;
  9. //public static string url = "apitest.shadowcreator.com";//uat测试版
  10. public static string url = "api.shadowcreator.com:443/rtcwss/";//正式版
  11. public static int POST = 443;
  12. public static string disPlayName = "";
  13. public static string RoomId = "1111";
  14. public static string roomPwd = "";
  15. public static bool isRevAllAudio = true;
  16. public static bool isRevAllVideo = false;
  17. public static bool isSendAudio = true;
  18. public static bool isSendVideo = true;
  19. public static bool isCloseView = true;
  20. public static int camIndex = 2;
  21. public static List<BaseConfig> sscList { get
  22. {
  23. List<BaseConfig> lsC = new List<BaseConfig>();
  24. SysSizeConfig ssc;
  25. for (int i = 0; i < 3; i++)
  26. {
  27. ssc = new SysSizeConfig();
  28. switch(i)
  29. {
  30. case 0:
  31. ssc.text = "超清1080P";
  32. break;
  33. case 1:
  34. ssc.text = "高清720P";
  35. break;
  36. case 2:
  37. ssc.text = "标清480P";
  38. break;
  39. }
  40. if(camIndex==(i+1))
  41. ssc.isChoose = true;
  42. else
  43. ssc.isChoose = false;
  44. lsC.Add(ssc);
  45. }
  46. return lsC;
  47. } }
  48. }