-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera not showing or showing a black screen #22
Comments
I've had the same issue. could you please fix this issue? |
I've had the same issue. could you please fix this issue? |
When using the rtmp_broadcaster package, the camera preview does not show or shows a black screen on my Huawei Nova 3i (Android 9.0).
Steps to Reproduce:
Initialize the rtmp_broadcaster package in a Flutter application.
Set up the CameraController to preview the camera feed.
Run the app on Huawei Nova 3i (Android 9.0).
The camera preview is either not shown or shows a black screen.
Expected Behavior:
The camera preview should display the live feed from the device camera.
Actual Behavior:
The camera preview is either not displayed or shows a black screen.
Additional Information:
Device: Huawei Nova 3i
Android Version: 9.0
rtmp_broadcaster Version: 2.2.6
Flutter Version: 3.19.3
here is log output
E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] W/mali_winsys(18913): native_window_api_disconnect failed: -19 I/SurfaceView(18913): delay destroy surface control W/libEGL (18913): EGLNativeWindowType 0x7b00031010 disconnect failed E/SurfaceView(18913): surfacePositionLost_uiRtSync mSurfaceControl = null W/libEGL (18913): EGLNativeWindowType 0x7afffe7010 disconnect failed W/libEGL (18913): EGLNativeWindowType 0x7b003a2010 disconnect failed Restarted application in 2,610ms. E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] I/Stuff (18913): availableCameras E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] I/HwPhoneWindow(18913): updateLayoutParamsColor false mSpecialSet=true, mForcedNavigationBarColor=false, navigationBarColor=fffcfcfc, mNavBarShow=true, mIsFloating=false I/ViewRootImpl(18913): jank_removeInvalidNode all the node in jank list is out of time E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] I/Stuff (18913): initialize E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] D/ZrHung.AppEyeUiProbe(18913): stop checker. D/ZrHung.AppEyeUiProbe(18913): notify runnable to start. I/HwPhoneWindow(18913): updateLayoutParamsColor false mSpecialSet=true, mForcedNavigationBarColor=false, navigationBarColor=fffcfcfc, mNavBarShow=true, mIsFloating=false V/InputMethodManager(18913): Reporting focus gain, without startInput I/TAG (18913): open: width: 640 height: 480 currentOrientation: -1 quarterTurns: 0 D/CameraNativeView(18913): startPreview: medium I/PlatformViewsController(18913): Hosting view in a virtual display for platform view: 0 I/PlatformViewsController(18913): PlatformView is using SurfaceTexture backend D/OpenGLRenderer(18913): HWUI Binary is enabled D/mali_winsys(18913): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 W/PlatformViewsController(18913): Unexpected platform view context for view ID 0; some functionality may not work correctly. When constructing a platform view in the factory, ensure that the view returned from PlatformViewFactory#create returns the provided context from getContext(). If you are unable to associate the view with that context, consider using Hybrid Composition instead. E/BufferQueueProducer(18913): [SurfaceTexture-0-18913-13] connect: already connected (cur=1 req=1) I/HwPhoneWindow(18913): updateLayoutParamsColor false mSpecialSet=false, mForcedNavigationBarColor=false, navigationBarColor=0, mNavBarShow=false, mIsFloating=false I/HwPhoneWindow(18913): updateLayoutParamsColor true mSpecialSet=true, mForcedNavigationBarColor=false, navigationBarColor=fffcfcfc, mNavBarShow=false, mIsFloating=false D/OpenGLRenderer(18913): HWUI Binary is enabled D/OpenGLRenderer(18913): HWUI Binary is enabled I/HiTouch_HiTouchSensor(18913): HiTouch restricted: Sub windows restricted. D/HiTouch_PressGestureDetector(18913): onAttached, package=com.app.rtmp_publisher_example, windowType=2030, mHiTouchRestricted=true D/mali_winsys(18913): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 D/CameraNativeView(18913): surfaceCreated D/CameraNativeView(18913): startPreview: medium I/OpenGlViewBase(18913): Thread started. D/mali_winsys(18913): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 I/PermissionManager(18913): camera remind result:true I/CameraManager(18913): open camera: 1, package name: com.app.rtmp_publisher_example I/BackgroundPermManager(18913): pkgName: com.app.rtmp_publisher_example,pid: 18913 ,uidOf3RdApk: 11335 ,permType: 0 ,permCfg: 1 I/HwCameraUtil(18913): notifySurfaceFlingerCameraStatus : isFront = true , isOpend = true I/HwCameraUtil(18913): notifySurfaceFlingerFrontCameraStatus 8011 transact success! E/Camera2ApiManager(18913): Open failed I/OpenGlViewBase(18913): size: 1056x1408 E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102] E/ (18913): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0102]
The text was updated successfully, but these errors were encountered: