void Start()
        {
            // player = GetComponent<YoutubePlayer>();
            videoSpawner = GameObject.FindObjectOfType <DynamicImgVideoSpawner>();
            canvasObject = GameObject.Instantiate <GameObject>(canvasPrefab);
            //first child of this canvas is slider which we were using to show video length progress bar
            videoLengthSlider = canvasObject.GetComponent <VideoUI>().videoProgressSlider;
            hud_Manager       = GameObject.FindObjectOfType <HUDManager>();
            hud_Manager.TurnOffScanPanel();
            //  player.OnVideoFinished.AddListener( TurnOnRedirectTemplate);
            //  player.OnVideoStarted.AddListener(OffVideoLoadingIndicator);
            //  newVideoPlayer.loopPointReached += OnVideoEnded;

#if !UNITY_EDITOR
            // GameObject.FindObjectOfType<ImageTargetUrlGetter>().UnityStateEvent += SetCanPlay;

            GameObject.FindObjectOfType <ARTrackedImageManager>().trackedImagesChanged += ARFoundationVIdeoPlayer_trackedImagesChanged;
#endif
        }
 // Start is called before the first frame update
 protected override void Start()
 {
     base.Start();
     videoSpawner = GameObject.FindObjectOfType <DynamicImgVideoSpawner>();
     GameObject.FindObjectOfType <ARTrackedImageManager>().trackedImagesChanged += ARFoundationVIdeoPlayer_trackedImagesChanged;
 }