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