FisMediaInstance.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using fis.media.Managers;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace fis.media
  8. {
  9. /// <summary>
  10. /// 音视频实例
  11. /// </summary>
  12. public class FisMediaInstance
  13. {
  14. public FisMediaInstance()
  15. {
  16. DeviceManager = DeviceManager.Instance;
  17. ChatRoomManager = ChatRoomManager.Instance;
  18. CurrentLanguageCode = "en-US";
  19. }
  20. public void Init(string languageCode)
  21. {
  22. CurrentLanguageCode= languageCode;
  23. }
  24. /// <summary>
  25. /// 设备管理者
  26. /// </summary>
  27. public DeviceManager DeviceManager { get; private set; }
  28. /// <summary>
  29. /// 聊天室管理者
  30. /// </summary>
  31. public ChatRoomManager ChatRoomManager { get; private set; }
  32. /// <summary>
  33. /// 当前语言代码
  34. /// </summary>
  35. public static string CurrentLanguageCode { get; private set; }
  36. }
  37. }