Exemplo n.º 1
0
    public void loadVideo(string videoName)
    {
        resultContainer = manager.getContainerWithKey(videoName);

        downloader.DownloadVideoAsync(resultContainer)
        .Then(mContainer => {
            resultContainer = mContainer;
            Debug.Log(resultContainer.AssetLocalFilePath);
        })
        .Catch <System.OperationCanceledException> (e => {
            Debug.Log(e);
            Debug.Log(resultContainer.AssetLocalFilePath);
        })
        .Catch(e => {
            Debug.LogException(e);
        });
    }