Ejemplo n.º 1
0
    public void Init_Works()
    {
        uploader.Init("xtokenx", 10000);

        Assert.IsNotNull(uploader.chunks);
        Assert.AreEqual(uploader.token, "xtokenx");
        Assert.AreEqual(uploader.maxChunkSize, 10000);
    }
 public void _Before()
 {
     // Setup only uploader
     uploaderObj = new GameObject();
     uploader    = uploaderObj.AddComponent <VimeoUploader>();
     uploader.Init(VALID_RECORDING_TOKEN);
     uploaded = false;
 }
Ejemplo n.º 3
0
 public void _Before()
 {
     uploaderObj = new GameObject();
     uploader    = uploaderObj.AddComponent <VimeoUploader>();
     uploader.Start();
     uploader.Init("xtokenx");
     testFile = new FileInfo(TEST_IMAGE_PATH);
 }
Ejemplo n.º 4
0
        public void Init(VimeoRecorder _recorder, int _chunkSize = 1024 * 1024 * 128)
        {
            recorder = _recorder;

            if (m_vimeoUploader == null)
            {
                m_vimeoUploader = gameObject.AddComponent <VimeoUploader>();
                m_vimeoUploader.Init(recorder.GetVimeoToken(), _chunkSize);

                m_vimeoUploader.OnUploadProgress  += UploadProgress;
                m_vimeoUploader.OnUploadComplete  += UploadComplete;
                m_vimeoUploader.OnNetworkError    += NetworkError;
                m_vimeoUploader.OnRequestComplete += OnUploadInit;
                m_vimeoUploader.OnError           += ApiError;
            }
        }