using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using DG.Tweening; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using UnityEngine; using RenderHeads.Media.AVProVideo; using UnityEngine.Networking; using UnityEngine.UI; using UnityEngine.UIElements; using Button = UnityEngine.UI.Button; using UnityAsync; public class ObsPlayerPanel : MonoBehaviour { public MediaPlayer obsPlayer; private Button closeButton; private Text titleText; private string obsName; private Button captureButton; private ExtendedButton_ObsDirCtrl _upButtonObsDirCtrl; private ExtendedButton_ObsDirCtrl _downButtonObsDirCtrl; private ExtendedButton_ObsDirCtrl _leftButtonObsDirCtrl; private ExtendedButton_ObsDirCtrl _rightButtonObsDirCtrl; private ExtendedButton_ObsDirCtrl _upRightButtonObsDirCtrl; private ExtendedButton_ObsDirCtrl _downRightButtonObsDirCtrl; private ExtendedButton_ObsDirCtrl _upLeftButtonObsDirCtrl; private ExtendedButton_ObsDirCtrl _downLeftButtonObsDirCtrl; private RectTransform centerImg; private Vector3 oriPos; private ObsCtrlType currentDonwType; private string currentChannelId=""; private string currentDeviceId=""; private string _targetName; private void Awake() { obsPlayer = this.transform.Find("AVProVideo").GetComponent(); titleText = this.transform.Find("Title").GetComponent(); closeButton = this.transform.Find("CloseButton").GetComponent