public void UploadVideo(AudioUoW audio, OauthTokenModel otm, VideoUploadedEventArgs videoUploaded = null)
 {
     try
     {
         _vns.UploadVideo(audio, otm, new List<VideoUploadedEventHandler>());
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message, ex);
     }
 }
        private void VideoUploaded(object sender, VideoUploadedEventArgs e)
        {
            try
            {
                var session = _sessions[e.Audio.SessionId];
                session.Count--;

                if (session.Count > 0) return;

                session.AllVideosUploaded(this, EventArgs.Empty);
                //_sessions.Remove(e.Audio.SessionId);
            }
            catch (Exception ex)
            {
                Log.Error(ex.Message, ex);
            }
        }
Ejemplo n.º 3
0
 private void VideoUploaded(object sender, VideoUploadedEventArgs e)
 {
     try
     {
         AppendToLog("Upload complete! " + e.Audio.Title);
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message, ex);
     }
 }