Beispiel #1
0
    public void LoadTestSlide(OnSlidesLoaded callback)
    {
        var testUrl = "http://magnum-force-chicken.westeurope.cloudapp.azure.com/api/convert/https%3A%2F%2Fwww.sample-videos.com%2Fppt%2FSample-PPT-File-500kb.ppt";

        _slideResourcePaths.Clear();
        _client.Get(testUrl, OnReceive);
        StartCoroutine(CheckDownloadState(callback));
    }
Beispiel #2
0
    public void LoadSlide(string slideUrl, OnSlidesLoaded callback)
    {
        _slideResourcePaths.Clear();
        var url = string.Format("{0}/{1}/{2}", BaseUrl, "convert", WWW.EscapeURL(slideUrl));

        _client.Get(url, OnReceive);
        StartCoroutine(CheckDownloadState(callback));
    }
Beispiel #3
0
    IEnumerator CheckDownloadState(OnSlidesLoaded callback)
    {
        yield return(new WaitUntil(() => _remainingSlides == 0));

        if (callback != null)
        {
            callback(_slideResourcePaths);
        }
        _remainingSlides = null;
    }
Beispiel #4
0
 public void LoadSlideWithShortURL(string shortURL, OnSlidesLoaded callback)
 {
     _slideResourcePaths.Clear();
     _client.Get(shortURL, OnReceive);
     StartCoroutine(CheckDownloadState(callback));
 }