Skip to content

AndruavMessage_CameraSwitch cannot be cast to AndruavMessage_CameraZoom #19

@Jai-GAY

Description

@Jai-GAY

I got an error yesterday. Still trying to see what is the problem with the unmodified code.
Today, I cannot even start the live video streaming.

Event D No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
org.webrtc.Logging I CameraStatistics: Camera fps: 10.
System.err W java.lang.ClassCastException: com.andruav.protocol.commands.textMessages.AndruavMessage_CameraSwitch cannot be cast to com.andruav.protocol.commands.textMessages.AndruavMessage_CameraZoom
System.err W at com.andruav.protocol.communication.websocket.AndruavWSClientBase.executeInternalCommand_default(AndruavWSClientBase.java:883)
System.err W at com.andruav.protocol.communication.websocket.AndruavWSClientBase.Execute(AndruavWSClientBase.java:1554)
System.err W at com.andruav.protocol.communication.websocket.AndruavWSClientBase.onTextMessage(AndruavWSClientBase.java:588)
System.err W at com.andruav.protocol.communication.websocket.AndruavWSClientBase_TooTallNate$1.onMessage(AndruavWSClientBase_TooTallNate.java:153)
System.err W at org.java_websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:462)
System.err W at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:696)
System.err W at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:367)
System.err W at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:212)
System.err W at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:389)
System.err W at java.lang.Thread.run(Thread.java:1012)
org.webrtc.Logging I CameraCapturer: switchCamera
org.webrtc.Logging I CameraCapturer: switchCamera internal
OplusCamer...agerGlobal I setClientInfo, packageName: com.wikitude.sdksamples, uid: 10474, pid: 14009
org.webrtc.Logging I CameraCapturer: switchCamera: Stopping session
org.webrtc.Logging I CameraCapturer: switchCamera done
org.webrtc.Logging I Camera2Session: Stop camera2 session on camera 0
org.webrtc.Logging I Camera2Session: Stop internal
org.webrtc.Logging I SurfaceTextureHelper: stopListening()
BufferQueueProducer D SurfaceTexture-1-14009-2 disconnect: api 4
CameraManagerGlobal E Camera 5 is not available. Ignore physical camera status change
org.webrtc.Logging I Camera2Session: Stop done
org.webrtc.Logging I Camera2Session: Create new camera2 session on camera 1
org.webrtc.Logging I Camera2Session: start
OplusCamer...agerGlobal I setClientInfo, packageName: com.wikitude.sdksamples, uid: 10474, pid: 14009
org.webrtc.Logging I Camera2Session: Available preview sizes: [2328x1748, 2304x1728, 2304x1296, 2048x1080, 2160x1080, 1920x1080, 1920x864, 1920x822, 1600x1200, 1600x800, 1600x720, 1600x592, 1584x720, 1440x1080, 1280x960, 1280x768, 1024x768, 1280x720, 1200x1200, 1188x540, 1200x540, 1080x1080, 840x360, 800x400, 792x360, 720x540, 720x480, 640x640, 640x480, 640x360, 352x288, 320x240, 176x144]
org.webrtc.Logging I Camera2Session: Available fps ranges: [[10.0:10.0], [15.0:15.0], [24.0:24.0], [10.0:30.0], [15.0:30.0], [30.0:30.0]]
org.webrtc.Logging I Camera2Session: Using capture format: 1280x720@[10.0:10.0]
org.webrtc.Logging I Camera2Session: Opening camera 1
OplusCamer...agerGlobal I setClientInfo, packageName: com.wikitude.sdksamples, uid: 10474, pid: 14009
libc W Access denied finding property "persist.vendor.camera.privapp.list"
OplusCamer...agerGlobal I setClientInfo, packageName: com.wikitude.sdksamples, uid: 10474, pid: 14009
OplusCameraUtils I current activityName: ap.andruav_ap.activities.fpv.drone.FPVDroneRTCWebCamActivity
OplusCameraUtils I getComponentName, componentName: com.wikitude.sdksamples/ap.andruav_ap.activities.fpv.drone.FPVDroneRTCWebCamActivity, packageName:com.wikitude.sdksamples, activityName:ap.andruav_ap.activities.fpv.drone.FPVDroneRTCWebCamActivity
org.webrtc.Logging I Camera2Session: Camera device closed.
OplusCamer...icsManager D addPreviewInfo, eventMap: {halLevel=3, preview_time=90316, cameraId=0, pkgName=com.wikitude.sdksamples, apLevel=2}
OplusCamer...icsManager D addInfo, eventMap: {halLevel=3, cameraId=0, disconnectTime=1688375408365, pkgName=com.wikitude.sdksamples, connentTime=1688375318049, apLevel=2, timeCost=90316}
org.webrtc.Logging I Camera2Session: Camera opened.
BufferQueueProducer D SurfaceTexture-1-14009-2 connect: api=4 producerControlledByApp=true
OplusCamer...icsManager D addInfo, eventMap: {halLevel=3, cameraId=1, pkgName=com.wikitude.sdksamples, connentTime=1688375408395, apLevel=2}
org.webrtc.Logging I Camera2Session: Camera capture session configured.
org.webrtc.Logging I Camera2Session: Using video stabilization.
org.webrtc.Logging I Camera2Session: Auto-focus is not available.
org.webrtc.Logging I Camera2Session: Camera device successfully started.
org.webrtc.Logging I CameraCapturer: Create session done. Switch state: IN_PROGRESS
org.webrtc.Logging I SurfaceTextureHelper: Setting listener to org.webrtc.Camera2Session$CaptureSessionCallback$$ExternalSyntheticLambda0@6314d4
tude.sdksamples I createIfNeeded: Recreate new EGLImage since dataspace changed
Sensor_GPS D has been onSatelliteStatusChanged
Sensor_GPS D onSatelliteStatusChanged = NULL misFirstFix = false
Event D No subscribers registered for event class ap.andruavmiddlelibrary.sensors._7asasatEvents.Event_GPS_NMEA
Event D No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions