我正在使用Xamarin Mono进行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;