コード例 #1
0
 void Awake()
 {
     m_image          = GetComponent <RawImage>();
     m_originUVRect   = m_image.uvRect;
     m_videoStreaming = GetComponent <VideoStreaming>();
     ResetTouchPos();
     m_dist      = 0f;
     m_firstMove = true;
 }
コード例 #2
0
 public VideoController enableVideo()
 {
     droneConnection.addEventListener(VideoListener.videoListener());
     droneConnection.sendCommand(VideoStreaming.enableVideoStreaming());
     return(this);
 }
コード例 #3
0
 public VideoController disableVideo()
 {
     droneConnection.sendCommand(VideoStreaming.disableVideoStreaming());
     return(this);
 }
コード例 #4
0
 public void playVideo()
 {
     videoStreaming = FindObjectOfType <VideoStreaming>();
     videoStreaming.UpdateFrame();
     debugText.text = "Playing Video";
 }