예제 #1
0
        protected void GetVideosInFolder(VimeoFolder folder)
        {
            var settings = target as VimeoSettings;

            if (!settings.Authenticated())
            {
                return;
            }
            InitAPI();

            settings.vimeoVideos.Clear();
            settings.vimeoVideos.Add(
                new VimeoVideo("Loading...", null)
                );

            api.OnRequestComplete += GetVideosComplete;
            api.OnError           += OnRequestError;

            api.GetVideosInFolder(folder);
        }
예제 #2
0
        public void GetVideosInFolder()
        {
            var settings = target as VimeoSettings;

            if (!settings.Authenticated())
            {
                return;
            }
            InitAPI();

            settings.vimeoVideos.Clear();
            settings.vimeoVideos.Add(
                new VimeoVideo("Loading...", null)
                );

            api.OnRequestComplete += GetVideosComplete;
            api.OnError           += OnRequestError;

            api.GetVideosInFolder(settings.currentFolder, "name,uri,description"); // conserve description
        }