【发布时间】:2013-07-26 06:43:53
【问题描述】:
我正在使用 OpenTok 录制和生成视频,它成功了。也创建存档。但是,当从亚马逊下载该视频时,它给了我以下错误消息。 我还捕获了堆栈跟踪。
错误:无法解析远程名称:'s3.amazonaws.com' body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top:-5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt ;color:maroon } pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .marker {font-weight:大胆的;颜色:黑色;文本装饰:无;} .version {颜色:灰色;} .error {margin-bottom:10px;} .expandable { 文本装饰:下划线;字体粗细:粗体;颜色:海军蓝;光标:手; } @media screen and (max-width: 639px) { pre { width: 440px;溢出:自动;空白:预包装; word-wrap:断词; } } @media screen and (max-width: 479px) { pre { width: 280px; } }
“/”应用程序中的服务器错误。
无法解析远程名称:'s3.amazonaws.com'
1 个过滤器,ActionDescriptor actionDescriptor, IDictionary2 参数)在 System.Web.Mvc.Controller.ExecuteCore() 在 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) 在 System.Web 的 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) .Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) 在 System.Web.Mvc.MvcHandler.c_DisplayClass6.c_DisplayClassb.b_5( ) 在 System.Web.Mvc.Async.AsyncResultWrapper.c_DisplayClass1.b_0() 在 System.Web.Mvc.Async.AsyncResultWrapper.c_DisplayClass81.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult 1.End() 在 System.Web.Mvc.MvcHandler.c_DisplayClasse.b_d() 在 System.Web.Mvc.SecurityUtil.b__0(Action f) 在 System.Web.Mvc System.Web.Mvc.MvcHandler.E 处的 .SecurityUtil.ProcessInApplicationTrust(Action action) ndProcessRequest(IAsyncResult asyncResult) 在 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult 结果) 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web。 HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)-->
我正在尝试在以下 URL 下载我的测试视频:
https://s3.amazonaws.com/tokbox.com.production/12415002/fd5be7ac-0b63-4daa-8430-4fe2e0aefde7/dcbce387-ca13-4b6a-9b04-1b4074dc0042.flv?Signature=gXECOvWqjJKJTBXFEwU4usutV9k%3D&Expires=1374818871&AWSAccessKeyId=AKIAI6LQCPIXYVWCQV6Q
下面是下载视频的功能:
private Stream getContent(string url)
{
//string buffer;
WebRequest request = WebRequest.Create(url);
request.Credentials = CredentialCache.DefaultCredentials;
WebResponse response = request.GetResponse();
Stream stream = response.GetResponseStream();
//StreamReader reader = new StreamReader(stream);
//buffer = reader.ReadToEnd();
//stream.Dispose();
//reader.Dispose();
//return (buffer);
return stream;
}
有人对此有想法吗?
谢谢。
【问题讨论】:
标签: amazon-web-services opentok