Ejemplo n.º 1
0
        // Submit video for analysis
        // Returns the URL that can be used to retrieve status/result
        private async Task <string> SubmitVideo(string url)
        {
            HttpResponseMessage rec = await Cli.PostResponseAsync("https://api.projectoxford.ai/emotion/v1.0/recognizeinvideo?outputStyle=perFrame", "{\"url\":\"" + url + "\"}");

            log.Text += "Done";
            string opurl = null;

            foreach (var k in rec.Headers)
            {
                if (k.Key == "Operation-Location")
                {
                    opurl = k.Value.First();
                }
            }

            return(opurl);
        }