【问题标题】:Capture phone direction / location whilst recording video在录制视频时捕获手机方向/位置
【发布时间】:2016-11-22 11:04:24
【问题描述】:

我需要为移动应用程序构建一个原型,该应用程序将允许用户录制视频并同时捕获有关手机的数据,例如手机指向的方向,即 x、y、z 坐标和地理位置.

理想情况下,我希望能够在用户录制视频时每 2 秒捕获一次此数据。

有谁能告诉我这是否可行。 Xamarin 或其他跨平台技术能否捕获此类数据?

任何文章链接将不胜感激...

谢谢

理查德

【问题讨论】:

  • 是的,你可以。图像的地理标记也是如此。

标签: android ios mobile xamarin video-capture


【解决方案1】:

这是一篇关于使用 Geolocator 插件的博客: https://blog.xamarin.com/geolocation-for-ios-android-and-windows-made-easy/

还有 Geolocator NuGet 包: https://www.nuget.org/packages/Xam.Plugin.Geolocator/

这只会获取您的位置,而不是用户面向的方向(或者更确切地说是手机面向的方向)。为此,请尝试使用 Compass 插件: https://github.com/JarleySoft/Xamarin.Plugins/tree/master/Compass

在 Nuget 上: https://www.nuget.org/packages/Plugin.Compass

披露:我是一名 xamarin 支持工程师。上述插件部分由 Xamarin 传播者 James Montemagno 创建。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-04-11
  • 2011-10-13
  • 1970-01-01
相关资源
最近更新 更多