使用 Js 在 Windows 移动应用程序中捕获视频
Video capturing in Windows mobile app using Js
在我使用 Js 的 Windows 移动应用程序中,我想捕获视频,压缩它并将其发送到服务器(如果我搜索了前置摄像头可用的前置摄像头,但我没有找到任何适合 js 的文档。
您可以使用 Windows.Media.Capture API 从 JavaScript 或 .Net 在 Windows Phone 运行时应用程序中捕获视频。有关完整的 JavaScript 示例代码,请参阅 Quickstart: capturing video using the MediaCapture API and the Media capture sample。
录制视频后,您可以使用 Windows.Web.Http.HttpClient API 将其上传到网络服务。有关演练,请参阅 How to connect to an HTTP server using Windows.Web.Http (HTML)。
在我使用 Js 的 Windows 移动应用程序中,我想捕获视频,压缩它并将其发送到服务器(如果我搜索了前置摄像头可用的前置摄像头,但我没有找到任何适合 js 的文档。
您可以使用 Windows.Media.Capture API 从 JavaScript 或 .Net 在 Windows Phone 运行时应用程序中捕获视频。有关完整的 JavaScript 示例代码,请参阅 Quickstart: capturing video using the MediaCapture API and the Media capture sample。
录制视频后,您可以使用 Windows.Web.Http.HttpClient API 将其上传到网络服务。有关演练,请参阅 How to connect to an HTTP server using Windows.Web.Http (HTML)。