private void ApplyMediaTreatment(string path, bool isPicture)
    {
        mediaPropertiesButton.interactable = true;
        mediaPropertiesButton.onClick.RemoveAllListeners();

        if (isPicture)
        {
            Texture2D texture = NativeCamera.LoadImageAtPath(path, PICTURE_MAX_SIZE);
            if (CheckAndApplyTexture(path, texture))
            {
                mediaPropertiesButton.onClick.AddListener(() =>
                {
                    string imageName = StringUtils.GetMediaName(path);
                    propertiesPanel.ShowImageProperties(imageName, NativeCamera.GetImageProperties(path));
                });
            }

            playVideoButton.gameObject.SetActive(false);
        }
        else
        {
            Texture2D texture = NativeCamera.GetVideoThumbnail(path, PICTURE_MAX_SIZE);
            if (CheckAndApplyTexture(path, texture))
            {
                mediaPropertiesButton.onClick.AddListener(() =>
                {
                    string videoName = StringUtils.GetMediaName(path);
                    propertiesPanel.ShowVideoProperties(videoName, NativeCamera.GetVideoProperties(path));
                });
            }

            playVideoButton.gameObject.SetActive(true);
            playVideoButton.onClick.RemoveAllListeners();
            playVideoButton.onClick.AddListener(() =>
            {
                string filePath = string.Format("file://{0}", path);
                Handheld.PlayFullScreenMovie(filePath);
            });
        }
    }