using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Video; public class UrlVideoPlayer : MonoBehaviour { private RawImage rawImage; private VideoPlayer videoPlayer; // Use this for initialization void Start() { //rawImage = this.GetComponent(); videoPlayer = this.GetComponent(); videoPlayer.url = "http://shvber.com:5028/Download/AttachFiles/Train/Camp/3a9541b69788b1cd5518a31bf4a882f0-210817232854225.mp4"; videoPlayer.Play(); } // Update is called once per frame void Update() { //rawImage.texture = videoPlayer.texture; } }