Esempio n. 1
0
        async void SetClip(VideoPlayer player)
        {
            if (clip == null)
            {
                player.clip = clip;
                return;
            }

            if (useProxy && !ProxyClip)
            {
                await VideoEncoder.EncodeProxy(clip);

                AssetDatabase.Refresh();
            }

            player.clip = useProxy ? ProxyClip : clip;

            SetTimelineClipLength();
        }