0

ビデオの記録と生成に OpenTok を使用していますが、正常に実行されます。アーカイブも作成中。しかし、Amazon からそのビデオをダウンロードしているときに、以下のエラー メッセージが表示されます。スタック トレースも取得しました。

エラー: リモート名を解決できませんでした: '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: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} . 展開可能 { テキスト装飾:下線; font-weight:太字; カラー:ネイビー; カーソル:手; } @media screen and (max-width: 639px) { pre { width: 440px; オーバーフロー: 自動; 空白: プレラップ; ワードラップ: ブレークワード; } } @media screen and (max-width: 479px) { pre { width: 280px; } }

「/」アプリケーションでサーバー エラーが発生しました。

リモート名を解決できませんでした: 's3.amazonaws.com'

1 フィルター、ActionDescriptor actionDescriptor、IDictionary2 パラメーター) System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) で System.Web.Mvc.Controller.ExecuteCore() で System.Web.Mvc.ControllerBase.Execute(RequestContext) requestContext) で System.Web.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() at System.Web.Mvc.Async.AsyncResultWrapper.<>c _DisplayClass8 1.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult1.End() at System.Web.Mvc.MvcHandler.<>c_ DisplayClasse .b_d() で System.Web.Mvc.SecurityUtil.b__0 (アクション f) で System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(アクション アクション) で System.Web.Mvc.MvcHandler.EndProcessRequest(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 ステップ、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;
    }

誰でもこれについて考えがありますか?

ありがとうございました。

4

1 に答える 1