问题标签 [expo-camera]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
react-native - 为什么 expo-camera 和 vue-native 没有捕获图片?
我正在尝试学习 vue-native 并创建一个练习应用程序来使用相机和捕捉图像。在文档中,他们使用一些ref
将相机分配给它,但我不知道在 vue-native 中传递 ref 的确切方法。我做了很少的功课,在 git 上发现了这个问题,但它也没有帮助。
参考: https ://github.com/GeekyAnts/vue-native-core/issues/88
文档(vue-native): https ://vue-native.io/docs/device-apis.html#Camera
文档(世博相机): https ://docs.expo.io/versions/latest/sdk/camera/#takepictureasync
代码片段是:
当我单击捕获按钮时,我收到一个camera
未定义的错误。我认为我没有ref
正确使用。有人可以建议使用它的正确方法vue-native
吗?谢谢
reactjs - 世博相机不保存视频
我在我的应用程序中使用了 expo-camera 并且我已经完全实现了它;记录和停止它的过程正常工作,但是当我点击时stopRecording()
没有文件被返回;我想知道有什么问题?
这是我的代码如下:
javascript - React Native - camera.getSupportedRatiosAsync() 不是函数
expo-camera
使用该库编写 React Native 应用程序。我需要将受支持的相机纵横比与屏幕尺寸相匹配,但expo-camera 文档getSupportedRatiosAsync()
中的函数返回此错误:
这是代码的最小示例:
此功能是否已弃用?我应该以不同的方式导入它吗?
expo - React-Native: How to include location details while capturing the image using expo-camera
Developing a react-native app in that application accessing the Camera via expo-camera
package, able to capture the image,
While accessing the the asset info of the captured image via MediaLibrary.getAssetInfoAsync(asset)
the location field in the return object is null
is there any way to add the location details to the image or including the location information while capturing the image.
javascript - 如何在 react native expo 中访问相机应用程序中拍摄的照片?
我用 expo 相机模块制作了一个相机应用程序,我现在正试图访问这个应用程序中的特定相册,就像它发生在移动原生相机应用程序中一样。我尝试按照我看到的一些模糊说明创建一个类似的函数,但我不知道这是正确的路径。
image - 如何将 Expo Camera(在 React Native 中)拍摄的图像存储到我桌面上的文件夹中并在数据库中记录
我正在尝试将从 expo 相机拍摄的图像保存在我的本地文件夹中。我得到 Uri,Base64 作为回报,并且 base64 字符串有时会很大。
将图像存储在我的桌面并将其记录在数据库中的最佳方法是什么
以下是我的代码:
javascript - React Native 世博相机风景视频
我正在以不同的方向(横向和纵向)录制一些视频,但我的应用程序被迫通过配置处于纵向模式。问题是每条记录的结果都是纵向保存的。
有没有办法在不更改配置的情况下决定结果方向?
这是我的相机组件:
react-native - 执行 doInBackground() 时出错 - Expo Barcode Scanner
我正在处理弹出流,并尝试使用 expo 条码扫描仪。但是,每隔一段时间我就会收到这个错误https://sentry.io/share/issue/f61de236a0cd49e0bf8f49cfc0c1fd6a/在我添加这个库之前甚至没有发生过一次错误。哦,即使 BarCodeScanner 甚至不在活动屏幕上(或者用户还没有导航到嵌入 BarCodeScanner 的屏幕,也会发生错误。
(来自上面哨兵链接的日志)
javascript - React Native Expo-Camera 录制视频发现问题用户拒绝需要音频权限
我在用 expo-camera 录制视频时遇到问题。用户拒绝了需要的音频权限。有人遇到过这样的问题吗??如果有人告诉我解决问题的方法,我还添加了 expo install expo-permissions。但是它仍然无法通过重新编码视频来解决问题...这是我的代码。