简体   繁体   English

在moto设备和三星s6中第一次无法打开相机

[英]could not open camera for the first time in moto devices and samsung s6

On starting streaming using Wowza Streaming Cloud through goCoder SDK the, camera doesn't open in Moto g and Samsung s6 at that time but when I switch the camera then both camera(back and front) work properly. 在通过goCoder SDK使用Wowza Streaming Cloud开始流式传输时,相机在当时没有在Moto g和Samsung s6中打开,但是当我切换相机时,两个相机(后面和前面)都正常工作。 In other words camera doesn't open for first time(a black screen is shown). 换句话说,相机第一次不打开(显示黑屏)。

These are the attributes I am using in my xml file. 这些是我在xml文件中使用的属性。

<com.wowza.gocoder.sdk.api.devices.WOWZCameraView
android:id="@+id/camera_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"
wowza:defaultCamera="back"
wowza:frameSizePreset="frameSize1280x720"
wowza:scaleMode="fill" />

using startPreview() method of WOWZCameraView instance to start the camera in onResume method of Activity and as far as Sampleapp of wowza is concerned, I am able to start the camera without any issues. 使用WOWZCameraView实例的startPreview()方法在Activity的onResume方法中启动摄像头,就wowza的Sampleapp而言,我能够启动摄像头而没有任何问题。

Wowza has released a new SDK version and this release contains a fix for the camera preview aspect ratio and START event issues you reported. Wowza发布了一个新的SDK版本,此版本包含对您报告的相机预览宽高比和START事件问题的修复。 Download the new release and see if your problem is resolved. 下载新版本,看看您的问题是否已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM