Skip to content

[bug] There is no video track in the latest version #438

Description

@furkanKotic

Describe the bug

My application, which works fine in v1.5.4, causes problems in v1.5.5. When entering the room, the broadcaster's voice is heard but his video is not visible.
The problem is solved when downgrading to v1.5.4.

Below are the logs when I entered the room:

I/PlatformViewsController(23606): Hosting view in view hierarchy for platform view: 5
W/WindowOnBackDispatcher(23606): OnBackInvokedCallback is not enabled for the application.
W/WindowOnBackDispatcher(23606): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
E/FrameEvents(23606): updateAcquireFence: Did not find frame.
D/EGL_emulation(23606): app_time_stats: avg=43.52ms min=10.25ms max=1360.76ms count=50
E/FrameEvents(23606): updateAcquireFence: Did not find frame.
D/EGL_emulation(23606): app_time_stats: avg=2827.34ms min=2827.34ms max=2827.34ms count=1
I/org.webrtc.Logging(23606): NetworkMonitor: Start monitoring with native observer 129515536551792 fieldTrialsString: 
D/FlutterWebRTCPlugin(23606): onIceGatheringChangeGATHERING
I/org.webrtc.Logging(23606): NetworkMonitorAutoDetect: Network handle: 437197393933 becomes available: 101
D/FlutterWebRTCPlugin(23606): onIceCandidate
D/FlutterWebRTCPlugin(23606): onIceCandidate
D/FlutterWebRTCPlugin(23606): onIceCandidate
D/FlutterWebRTCPlugin(23606): onIceCandidate
I/org.webrtc.Logging(23606): NetworkMonitorAutoDetect: handle: 437197393933 capabilities changed: [ Transports: CELLULAR Capabilities: MMS&SUPL&DUN&FOTA&IMS&CBS&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED LinkUpBandwidth>=15000Kbps LinkDnBandwidth>=30000Kbps Specifier: <TelephonyNetworkSpecifier [mSubId = 1]> UnderlyingNetworks: Null]
D/FlutterWebRTCPlugin(23606): onIceCandidate
D/FlutterWebRTCPlugin(23606): onIceCandidate
I/org.webrtc.Logging(23606): NetworkMonitorAutoDetect: handle: 437197393933 link properties changed
I/org.webrtc.Logging(23606): NetworkMonitorAutoDetect: Network handle: 432902426637 becomes available: 100
D/FlutterWebRTCPlugin(23606): onConnectionChangeCONNECTING
I/org.webrtc.Logging(23606): NetworkMonitorAutoDetect: handle: 432902426637 capabilities changed: [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED LinkUpBandwidth>=12000Kbps LinkDnBandwidth>=30000Kbps TransportInfo: <SSID: <unknown ssid>, BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, IP: /10.0.2.16, Security type: 0, Supplicant state: COMPLETED, Wi-Fi standard: 1, RSSI: -50, Link speed: 1Mbps, Tx Link speed: 1Mbps, Max Supported Tx Link speed: 11Mbps, Rx Link speed: 2Mbps, Max Supported Rx Link speed: 11Mbps, Frequency: 2447MHz, Net ID: -1, Metered hint: false, score: 60, isUsable: true, CarrierMerged: false, SubscriptionId: -1, IsPrimary: -1, Trusted: true, Restricted: false, Ephemeral: false, OEM paid: false, OEM private: false, OSU AP: false, FQDN: <none>, Provider friendly name: <none>, Requesting package name: <none><none>MLO Information: , Is TID-To-Link negotiation supported by the AP: false, AP MLD Address: <none>, AP MLO Link Id: <none>, AP MLO Affiliated links: <none>> SignalStrength: -50 UnderlyingNetworks: Null]
I/org.webrtc.Logging(23606): NetworkMonitorAutoDetect: handle: 432902426637 link properties changed
D/EGL_emulation(23606): app_time_stats: avg=3.12ms min=1.22ms max=20.10ms count=61
D/FlutterWebRTCPlugin(23606): onIceCandidate
D/FlutterWebRTCPlugin(23606): onIceCandidate
D/FlutterWebRTCPlugin(23606): onAddTrack
D/FlutterWebRTCPlugin(23606): onAddTrack
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: initPlayout(sampleRate=48000, channels=1, bufferSizeFactor=1.0)
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: byteBuffer.capacity: 960
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: minBufferSizeInBytes: 8720
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: createAudioTrackBeforeOreo
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: nativeOutputSampleRate: 48000
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: AudioTrack: session ID: 457, channels: 1, sample rate: 48000, max gain: 1.0
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: AudioTrack: buffer size in frames: 4360
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: AudioTrack: buffer capacity in frames: 4360
I/org.webrtc.Logging(23606): VolumeLogger: start@[name=worker_thread - 24070, id=169]
I/org.webrtc.Logging(23606): VolumeLogger: audio mode is: MODE_IN_COMMUNICATION
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: startPlayout
I/org.webrtc.Logging(23606): VolumeLogger: VOICE_CALL stream volume: 3 (max=5)
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: AudioTrackThread@[name=AudioTrackJavaThread, id=218]
I/org.webrtc.Logging(23606): WebRtcAudioTrackExternal: doAudioTrackStateCallback: 0
D/FlutterWebRTCPlugin(23606): onIceCandidate
D/FlutterWebRTCPlugin(23606): onIceCandidate
D/FlutterWebRTCPlugin(23606): onSelectedCandidatePairChanged
D/FlutterWebRTCPlugin(23606): onIceGatheringChangeCOMPLETE
D/BufferPoolAccessor2.0(23606): bufferpool2 0x75cb0f8d12e8 : 0(0 size) total buffers - 0(0 size) used buffers - 5/10 (recycle/alloc) - 5/6 (fetch/transfer)
D/BufferPoolAccessor2.0(23606): evictor expired: 1, evicted: 1
D/EGL_emulation(23606): app_time_stats: avg=3.00ms min=1.98ms max=9.10ms count=60
D/FlutterWebRTCPlugin(23606): onConnectionChangeCONNECTED
W/org.webrtc.Logging(23606): SoftwareVideoDecoderFactory: Trying to create decoder for unsupported format. VideoCodec{H264 {level-asymmetry-allowed=1, packetization-mode=1, profile-level-id=42e01f}}
I/org.webrtc.Logging(23606): AndroidVideoDecoder: ctor name: c2.goldfish.h264.decoder type: H264 color format: 19 context: org.webrtc.EglBase14Impl$Context@c244f0
I/org.webrtc.Logging(23606): AndroidVideoDecoder: ctor name: c2.android.avc.decoder type: H264 color format: 19 context: org.webrtc.EglBase14Impl$Context@c244f0
I/org.webrtc.Logging(23606): EglBase14Impl: Using OpenGL ES version 2
E/EGL_emulation(23606): eglQueryContext 32c0  EGL_BAD_ATTRIBUTE
E/EGL_emulation(23606): tid 24713: eglQueryContext(2146): error 0x3004 (EGL_BAD_ATTRIBUTE)
I/org.webrtc.Logging(23606): AndroidVideoDecoder: initDecodeInternal name: c2.goldfish.h264.decoder type: H264 width: 720 height: 960 color format: 19
I/org.webrtc.Logging(23606): SurfaceTextureHelper: Setting listener to org.webrtc.AndroidVideoDecoder@3f2126e
D/CCodec  (23606): allocate(c2.goldfish.h264.decoder)
I/CCodec  (23606): setting up 'default' as default (vendor) store
I/CCodec  (23606): Created component [c2.goldfish.h264.decoder]
D/CCodecConfig(23606): read media type: video/avc
D/ReflectedParamUpdater(23606): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater(23606): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater(23606): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater(23606): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater(23606): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater(23606): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater(23606): extent() != 1 for single value type: algo.buffers.pool-ids.values
D/ReflectedParamUpdater(23606): ignored struct field coded.color-format.locations
D/CCodecConfig(23606): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig(23606): ignoring local param default.color (0x5200180b) as it is already supported
D/ReflectedParamUpdater(23606): ignored struct field raw.hdr-static-info.mastering
I/CCodecConfig(23606): query failed after returning 12 values (BAD_INDEX)
D/CCodecConfig(23606): c2 config diff is Dict {
D/CCodecConfig(23606):   c2::u32 coded.pl.level = 20496
D/CCodecConfig(23606):   c2::u32 coded.pl.profile = 20481
D/CCodecConfig(23606):   c2::u32 coded.vui.color.matrix = 0
D/CCodecConfig(23606):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig(23606):   c2::u32 coded.vui.color.range = 2
D/CCodecConfig(23606):   c2::u32 coded.vui.color.transfer = 0
D/CCodecConfig(23606):   c2::u32 default.color.matrix = 0
D/CCodecConfig(23606):   c2::u32 default.color.primaries = 0
D/CCodecConfig(23606):   c2::u32 default.color.range = 0
D/CCodecConfig(23606):   c2::u32 default.color.transfer = 0
D/CCodecConfig(23606):   c2::u32 input.buffers.max-size.value = 6291456
D/CCodecConfig(23606):   c2::u32 input.delay.value = 0
D/CCodecConfig(23606):   string input.media-type.value = "video/avc"
D/CCodecConfig(23606):   c2::u32 output.delay.value = 8
D/CCodecConfig(23606):   string output.media-type.value = "video/raw"
D/CCodecConfig(23606):   c2::u32 raw.color.matrix = 0
D/CCodecConfig(23606):   c2::u32 raw.color.primaries = 0
D/CCodecConfig(23606):   c2::u32 raw.color.range = 2
D/CCodecConfig(23606):   c2::u32 raw.color.transfer = 0
D/CCodecConfig(23606):   c2::u32 raw.max-size.height = 240
D/CCodecConfig(23606):   c2::u32 raw.max-size.width = 320
D/CCodecConfig(23606):   c2::u32 raw.pixel-format.value = 35
D/CCodecConfig(23606):   c2::i32 raw.rotation.flip = 0
D/CCodecConfig(23606):   c2::i32 raw.rotation.value = 0
D/CCodecConfig(23606):   c2::u32 raw.sar.height = 1
D/CCodecConfig(23606):   c2::u32 raw.sar.width = 1
D/CCodecConfig(23606):   c2::u32 raw.size.height = 240
D/CCodecConfig(23606):   c2::u32 raw.size.width = 320
D/CCodecConfig(23606):   c2:
W/ColorUtils(23606): expected specified color aspects (2:0:0:0)
D/MediaCodec(23606): flushMediametrics
D/SurfaceUtils(23606): connecting to surface 0x75cbdf918180, reason connectToSurface
I/MediaCodec(23606): [c2.goldfish.h264.decoder] setting surface generation to 24172549
D/SurfaceUtils(23606): disconnecting from surface 0x75cbdf918180, reason connectToSurface(reconnect)
D/SurfaceUtils(23606): connecting to surface 0x75cbdf918180, reason connectToSurface(reconnect)
D/CCodec  (23606): [c2.goldfish.h264.decoder] buffers are bound to CCodec for this session
D/CCodecConfig(23606): no c2 equivalents for native-window
D/CCodecConfig(23606): no c2 equivalents for flags
D/CCodecConfig(23606): config failed => CORRUPTED
D/CCodecConfig(23606): c2 config diff is   c2::u32 raw.size.height = 960
D/CCodecConfig(23606):   c2::u32 raw.size.width = 720
W/Codec2Client(23606): query -- param skipped: index = 1107298332.
D/CCodec  (23606): encoding statistics level = 0
D/CCodec  (23606): setup formats input: AMessage(what = 0x00000000) = {
D/CCodec  (23606):   int32_t height = 960
D/CCodec  (23606):   int32_t level = 65536
D/CCodec  (23606):   int32_t max-input-size = 6291456
D/CCodec  (23606):   string mime = "video/avc"
D/CCodec  (23606):   int32_t profile = 65536
D/CCodec  (23606):   int32_t width = 720
D/CCodec  (23606):   Rect crop(0, 0, 719, 959)
D/CCodec  (23606): }
D/CCodec  (23606): setup formats output: AMessage(what = 0x00000000) = {
D/CCodec  (23606):   int32_t android._color-format = 2135033992
D/CCodec  (23606):   int32_t android._video-scaling = 1
D/CCodec  (23606):   int32_t rotation-degrees = 0
D/CCodec  (23606):   int32_t color-standard = 1
D/CCodec  (23606):   int32_t color-range = 2
D/CCodec  (23606):   int32_t color-transfer = 3
D/CCodec  (23606):   int32_t sar-height = 1
D/CCodec  (23606):   int32_t sar-width = 1
D/CCodec  (23606):   Rect crop(0, 0, 719, 959)
D/CCodec  (23606):   int32_t width = 720
D/CCodec  (23606):   int32_t height = 960
D/CCodec  (23606):   int32_t max-height = 240
D/CCodec  (23606):   int32_t max-width = 320
D/CCodec  (23606):   string mime = "video/raw"
D/CCodec  (23606):   int32_t android._dataspace = 260
D/CCodec  (23606):   int32_t color-format = 2130708361
D/CCodec  (23606): }
I/CCodecConfig(23606): query failed after returning 12 values (BAD_INDEX)
D/CCodecConfig(23606): c2 config diff is   c2::u32 raw.max-size.height = 960
D/CCodecConfig(23606):   c2::u32 raw.max-size.width = 720
W/Codec2Client(23606): query -- param skipped: index = 1342179345.
W/Codec2Client(23606): query -- param skipped: index = 2415921170.
W/Codec2Client(23606): query -- param skipped: index = 1610614798.
W/Codec2Client(23606): query -- param skipped: index = 2684356609.
D/CCodecBufferChannel(23606): [c2.goldfish.h264.decoder#341] Created input block pool with allocatorID 16 => poolID 21 - OK (0)
D/CCodecBufferChannel(23606): [c2.goldfish.h264.decoder#341] Query output surface allocator returned 0 params => BAD_INDEX (6)
I/CCodecBufferChannel(23606): [c2.goldfish.h264.decoder#341] Created output block pool with allocatorID 18 => poolID 59 - OK
D/CCodecBufferChannel(23606): [c2.goldfish.h264.decoder#341] Configured output block pool ids 59 => OK
D/Codec2-OutputBufferQueue(23606): remote graphic buffer migration 0/0
D/Codec2Client(23606): setOutputSurface -- failed to set consumer usage (6/BAD_INDEX)
D/Codec2Client(23606): setOutputSurface -- generation=24172549 consumer usage=0x900
D/Codec2Client(23606): Surface configure completed
I/org.webrtc.Logging(23606): AndroidVideoDecoder: initDecodeInternal done
D/BufferPoolAccessor2.0(23606): Destruction - bufferpool2 0x75cb0f8d12e8 cached: 0/0M, 0/0% in use; allocs: 10, 50% recycled; transfers: 6, 17% unfetched
D/CCodecConfig(23606): c2 config diff is   c2::u32 raw.color.primaries = 3
D/CCodecConfig(23606):   c2::u32 raw.crop.height = 960
D/CCodecConfig(23606):   c2::u32 raw.crop.left = 0
D/CCodecConfig(23606):   c2::u32 raw.crop.top = 0
D/CCodecConfig(23606):   c2::u32 raw.crop.width = 720
D/CCodecBuffers(23606): [c2.goldfish.h264.decoder#341:2D-Output] popFromStashAndRegister: at 5902768000us, output format changed to AMessage(what = 0x00000000) = {
D/CCodecBuffers(23606):   int32_t android._color-format = 2135033992
D/CCodecBuffers(23606):   int32_t android._video-scaling = 1
D/CCodecBuffers(23606):   int32_t rotation-degrees = 0
D/CCodecBuffers(23606):   int32_t color-standard = 3
D/CCodecBuffers(23606):   int32_t color-range = 2
D/CCodecBuffers(23606):   int32_t color-transfer = 3
D/CCodecBuffers(23606):   int32_t sar-height = 1
D/CCodecBuffers(23606):   int32_t sar-width = 1
D/CCodecBuffers(23606):   Rect crop(0, 0, 719, 959)
D/CCodecBuffers(23606):   int32_t width = 720
D/CCodecBuffers(23606):   int32_t height = 960
D/CCodecBuffers(23606):   int32_t max-height = 960
D/CCodecBuffers(23606):   int32_t max-width = 720
D/CCodecBuffers(23606):   string mime = "video/raw"
D/CCodecBuffers(23606):   int32_t android._dataspace = 281214976
D/CCodecBuffers(23606):   int32_t color-format = 2130708361
D/CCodecBuffers(23606): }
I/org.webrtc.Logging(23606): AndroidVideoDecoder: Decoder format changed: {crop-right=719, max-height=960, sar-width=1, color-format=2130708361, mime=video/raw, color-standard=3, color-transfer=3, sar-height=1, crop-bottom=959, max-width=720, crop-left=0, width=720, color-range=2, crop-top=0, rotation-degrees=0, height=960}
I/org.webrtc.Logging(23606): AndroidVideoDecoder: Frame stride and slice height: 720 x 960
D/EGL_emulation(23606): app_time_stats: avg=3.00ms min=1.75ms max=10.00ms count=60
D/EGL_emulation(23606): app_time_stats: avg=8.89ms min=1.79ms max=368.23ms count=60

Platform information

  • Flutter version: Flutter 3.16.5
  • Plugin version: v1.5.5
  • Flutter target OS: Tested on Android

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions