我正在使用 Xamarin Mono for Android Google API 绑定。当我上传大于 75 MB 的视频时,我收到 HTTP 308 错误,这基本上是超时。我无法将我的 videosInsertRequest.RequestFactory 转换为 GDataRequestFactory 并设置超时。不存在 GDataRequestFactory。请求工厂的类型是 ICreateHttp,它的 create 方法返回一个 HttpWebRequest。是否有另一种方法来设置 YouTubeRequest 的超时属性或以另一种方式上传视频?
GoogleAuthenticator auth2;
YoutubeService yt = new YoutubeService (auth2);
string name = String.Format("{0} {1}", etStatusUpdate.Text, DateTime.Now.ToString());
var videosInsertRequest = yt.Videos.Insert (Helpers.MakeVideo (name, etStatusUpdate.Text), "snippet,statistics,status", MakeVideoFileStream (), VIDEO_FILE_FORMAT);
//((GDataRequestFactory)videosInsertRequest.RequestFactory).Timeout = 9999999;
videosInsertRequest.ProgressChanged += videosInsertRequest_ProgressChanged;
videosInsertRequest.ResponseReceived += videosInsertRequest_ResponseReceived;