Giter VIP home page Giter VIP logo

Comments (5)

plutoless avatar plutoless commented on June 3, 2024

2.3.2有一些接口调整,目前这个demo还没有适配最新的sdk,我们会看下是否需要对demo做对应的调整

from eeducation.

menthays avatar menthays commented on June 3, 2024

我们尝试在 Windows/Mac 平台上测试,全部都运行正常无法复现。是否可以提供更多信息:

  • 平台
  • 如果可以的话,使用xcode/vs 调试一下提供崩溃堆栈
  • 调用setLogFile接口 提供相关日志

from eeducation.

lipten avatar lipten commented on June 3, 2024

@menthays 不好意思刚才是更新不正确,现在是遇到一个新问题:

刚拉下来的demo启动后摄像头卡在了一个静止的画面

刚重新clone了这个demo项目,切换分支到tag: v3.0.0-beta.3(dddb090),装好依赖,npm run dev启动,进入到设备检测页面时摄像头卡在了一个画面没有动,进入直播间也是。

下面是调用setLogFile生成的log:

Local Date: Wed Jan 23 14:41:59 2019
Build info: Aug  2 2018 18:55:26 r

INFO    (14:41:59:346 |    0)  34563; [rp] ["che.audio.enum_playback"]
INFO    (14:41:59:347 |    1)  34563; [rp] res: {"che.audio.enum_playback":[[0,"69","default (MacBook Pro扬声器)"]]} 
INFO    (14:41:59:347 |    0)   3331; A audio play device was added
INFO    (14:41:59:349 |    2)  34563; [rs] dns parse result code: 4, servers size: 0
INFO    (14:41:59:350 |    1)  34563; [rp] ["che.audio.enum_recording"]
INFO    (14:41:59:350 |    0)  34563; [rp] res: {"che.audio.enum_recording":[[0,"76","default (MacBook Pro麦克风)"]]} 
INFO    (14:41:59:350 |    0)  34563; [rp] ["che.audio.enum_playback"]
INFO    (14:41:59:351 |    1)  34563; [rp] res: {"che.audio.enum_playback":[[0,"69","default (MacBook Pro扬声器)"]]} 
INFO    (14:41:59:374 |   23)  34563; [rlbs/u] responsed from 221.228.78.123:9700 with servers 27.148.206.4:8913
INFO    (14:41:59:374 |    0)  34563; [rs] updateServers 27.148.206.4:8913, priority 3
INFO    (14:41:59:374 |    0)  34563; [rs] updateServers 117.21.201.144:8913, priority 3
INFO    (14:41:59:374 |    0)  34563; [rs] updateServers 27.148.206.5:8913, priority 3
INFO    (14:41:59:375 |    1)  34563; [vocs/t] tcp create channel connected with 0x7ff8b28b0c00
INFO    (14:41:59:375 |    0)  34563; [vocs] tcp - creating channel with 123.155.153.69:8000, ts 1548225719375.......
INFO    (14:41:59:376 |    1)  34563; [vocs/u] **responsed from 221.228.202.134:8000, 3 vos, elapsed 119, server ts 1548225719339, wan ip 119.147.218.55
INFO    (14:41:59:377 |    1)  34563; [vos] added server: 113.107.183.27:4002
INFO    (14:41:59:377 |    0)  34563; [vos] added server: 121.11.77.38:4005
INFO    (14:41:59:377 |    0)  34563; [vos] added server: 113.96.132.134:4002
INFO    (14:41:59:377 |    0)  34563; [ch0] vos initialized
INFO    (14:41:59:377 |    0)  34563; [vos] selected: 113.96.132.134:4002
ERROR   (14:41:59:377 |    0)  34563; [ch0] login strategy=2
INFO    (14:41:59:377 |    0)  34563; [ds]: ver 1 ds '{"streamType":5,"clientRole":1}'
INFO    (14:41:59:377 |    0)  34563; [ch0] Login VOS (proto:10, cid:3242564595, uid:715493, ts:1548225719377, ticket size:80 ds:1 stream:+A+VH) 2: 113.96.132.134:4002
INFO    (14:41:59:377 |    0)  34563; add ping address 119.147.218.55
INFO    (14:41:59:377 |    0)  34563; PING 119.147.218.55:0 16(44) bytes of data
INFO    (14:41:59:380 |    3)  34563; [vocs/u] **responsed from 123.155.153.69:8000, 3 vos, elapsed 122, server ts 1548225719337, wan ip 119.147.218.55
INFO    (14:41:59:380 |    0)  34563; [vos] added server: 183.47.223.10:4004
INFO    (14:41:59:380 |    0)  34563; [vos] added server: 121.11.77.43:4003
INFO    (14:41:59:380 |    0)  34563; [vos] added server: 113.96.132.137:4008
INFO    (14:41:59:394 |   14)  34563; [ch0] **VOS response to login request (res 0 elapsed 136, server ts 1548225719361, s-c:-33) from 113.96.132.134:4002, and current dest server 113.96.132.134:4002
INFO    (14:41:59:394 |    0)  34563; updateActiveVosList: ["113.96.132.134:4002"]
INFO    (14:41:59:394 |    0)  34563; [che] start call begins
INFO    (14:41:59:394 |    0)  34563; Set Application Mode in RTC Engine to No. 4
ERROR   (14:41:59:394 |    0)  34563; GetCodec() invalid index (error=8004)
INFO    (14:41:59:394 |    0)  34563; SetCodec by type : No. 77
INFO    (14:41:59:394 |    0)  34563;   OS info: OS X
INFO    (14:41:59:394 |    0)  34563; Set playout device on Mac: index = 0, name = default (MacBook Pro扬声器), id = 69
INFO    (14:41:59:395 |    1)  34563;  Output device: Apple Inc. MacBook Pro扬声器
INFO    (14:41:59:395 |    0)  34563; Set recording device on Mac: index = 0, name = default (MacBook Pro麦克风), id = 76
INFO    (14:41:59:395 |    0)  34563;  Input device: Apple Inc. MacBook Pro麦克风
INFO    (14:41:59:396 |    1)  34563; StereoPlayoutIsAvailable(), output: available=1
INFO    (14:41:59:396 |    0)  34563; StereoRecordingIsAvailable(), output: available=0
INFO    (14:41:59:396 |    0)  69903; Thread with name:EngineMonitorThread started 
INFO    (14:41:59:396 |    0)  34563;  Output device: Apple Inc. MacBook Pro扬声器
INFO    (14:41:59:397 |    1)  61711; Thread with name:RenderWorkerThread started 
INFO    (14:41:59:397 |    0)  34563; StartPlayout complete
INFO    (14:41:59:397 |    0)  34563; output: NOT_SUPPORTED
INFO    (14:41:59:423 |   26)  34563;  Input device: Apple Inc. MacBook Pro麦克风
INFO    (14:41:59:424 |    1)  69383; Thread with name:CaptureWorkerThread started 
INFO    (14:41:59:424 |    0)  34563; StartRecording complete
INFO    (14:41:59:424 |    0)  34563; Application Config module:  Route 0, NS on, AEC on, AGC off, BSS off, HC off
INFO    (14:41:59:424 |    0)  34563; MID = 4000, Routing = 0
INFO    (14:41:59:498 |   74)  34563; [che] applyVideoProfile: 640x480 30 fps 752 kbps
INFO    (14:41:59:499 |    1)  34563; validateVideoParameters: validate video parameters resolution 640x480, fps 30, rate 752000
WARN    (14:41:59:499 |    0)  34563; validateVideoParameters: rate 752000 too small, clip to a larger value.
INFO    (14:41:59:499 |    0)  34563; setMaxVideoBitrate: max bitrate=752284
INFO    (14:41:59:499 |    0)  34563; setCodecRates: set frame rate to 30
INFO    (14:41:59:499 |    0)  34563; setCodec: index=1 width=640 height=480 framerate=30
INFO    (14:41:59:506 |    7)  57883; Thread with name:VideoEncodeThread stopped
INFO    (14:41:59:509 |    3)  57887; Thread with name:VideoEncodeThread started 
INFO    (14:41:59:509 |    0)  34563; Device type: 4000
INFO    (14:41:59:509 |    0)  34563; setCodecResolution: set to 640 x 480
INFO    (14:41:59:509 |    0)  34563; startCapture: device? 0 init? 1 local enabled? 1 capturing? 0 rendering? 0
INFO    (14:41:59:509 |    0)  34563; AgoraVideoInput::Init thread=1, type=100, device=0x8020000005ac8514
INFO    (14:41:59:509 |    0)  59675; Thread with name:AgoraInputThread started 
INFO    (14:41:59:509 |    0)  34563; AgoraCameraCapture::Initialize, device=0x8020000005ac8514
INFO    (14:41:59:509 |    0)  34563; RegisterCameraCallback called 140706107804008
INFO    (14:41:59:509 |    0)  34563; setCodec: index=1 width=640 height=480 framerate=30
INFO    (14:41:59:519 |   10)  57887; Thread with name:VideoEncodeThread stopped
INFO    (14:41:59:519 |    0)  57891; Thread with name:VideoEncodeThread started 
INFO    (14:41:59:519 |    0)  34563; Device type: 4000
INFO    (14:41:59:519 |    0)  34563; setMaxVideoBitrate: max bitrate=752284
INFO    (14:41:59:519 |    0)  34563; AgoraVideoInput::Start width=640, height=480, fps=30
INFO    (14:41:59:519 |    0)  34563; AgoraCameraCapture::Start width=640, height=480, fps=30, rotation=0
INFO    (14:41:59:519 |    0)  34563; startCapture: startCapture success
INFO    (14:41:59:519 |    0)  34563; EnableLowBitRateStream: dual streams enabled 1
INFO    (14:41:59:519 |    0)  34563; RequestEncodeKeyFrame
INFO    (14:41:59:519 |    0)  34563; doStartLocalRender: init? 1 capture id -1 device 0 capturing? 1 rendering? 0
INFO    (14:41:59:519 |    0)  34563; doStartLocalRender: local render windows 0x7ff8afc99bc0
INFO    (14:41:59:519 |    0)  34563; AgoraVideoOutput::Init thread=0, type=100, view=0x7ff8afc99bc0
INFO    (14:41:59:519 |    0)  34563; AgoraVideoOutput::Start uid=0, stream_id=0, render_mode=1
INFO    (14:41:59:519 |    0)  34563; SetStreamListener running for stream 0
INFO    (14:41:59:519 |    0)  34563; [che] onVideoFrameFrozen: uid 0, frozen false
INFO    (14:41:59:519 |    0)  70415; Thread with name:IncomingVideoStreamThread started 
INFO    (14:41:59:519 |    0)  34563; doStartLocalRender success
WARN    (14:41:59:519 |    0)  34563; doStartLocalRender: Local renderer is rendering
INFO    (14:41:59:519 |    0)  34563; [che] start call returns 0, elapsed 126
INFO    (14:41:59:519 |    0)  34563; Setting dtx mode to 2
INFO    (14:41:59:519 |    0)  34563; setNetEQMinimumPlayoutDelay delay(100)
INFO    (14:41:59:519 |    0)  34563; join channel success: cname 'dsafdsf' uid 715493 elapsed 262
INFO    (14:41:59:520 |    1)  34563; CacheManager: save cache to storage elapsed 0
INFO    (14:41:59:520 |    0)  34563; [ap/u] **responsed from 220.194.237.6:8000, 3 STUN, server ts 1548225719347
INFO    (14:41:59:520 |    0)  34563; [rp] {"rtc.video.set_remote_video_stream":{"uid":715493,"stream":0},"che.video.setstream":{"uid":715493,"stream":0}}
INFO    (14:41:59:520 |    0)  34563; [ap/u] **responsed from 42.202.132.197:8000, 3 STUN, server ts 1548225719360
INFO    (14:41:59:531 |   11)  34563; [ch0] rtt: 11
INFO    (14:41:59:539 |    8)  34563; onFirstLocalAudioFrame codec 77 elapsed 281
INFO    (14:41:59:539 |    0)  34563; TRACER: onFirstLocalAudioFrame codec 77 elapsed 281
INFO    (14:41:59:562 |   23)    775; API call to setupLocalVideo 0x7ff8b5b1a620
INFO    (14:41:59:562 |    0)    775; [API] userManagerPendingView: user 0 window 140706176935456
INFO    (14:41:59:562 |    0)  34563; [API] userManagerBindUserView: user 0 mode 1 window 140706176935456
INFO    (14:41:59:562 |    0)  34563; stopLocalRender
INFO    (14:41:59:562 |    0)  34563; AgoraVideoOutput::Stop
INFO    (14:41:59:566 |    4)  70415; Thread with name:IncomingVideoStreamThread stopped
WARN    (14:41:59:573 |    7)  34563; Stop: Not running
INFO    (14:41:59:573 |    0)  34563; AgoraVideoOutput::Destroy
INFO    (14:41:59:573 |    0)  34563; stopLocalRender success
INFO    (14:41:59:573 |    0)  34563; doStartLocalRender: init? 1 capture id -1 device 0 capturing? 1 rendering? 0
INFO    (14:41:59:573 |    0)  34563; doStartLocalRender: local render windows 0x7ff8b5b1a620
INFO    (14:41:59:573 |    0)  34563; AgoraVideoOutput::Init thread=0, type=100, view=0x7ff8b5b1a620
INFO    (14:41:59:573 |    0)  34563; AgoraVideoOutput::Start uid=0, stream_id=0, render_mode=1
INFO    (14:41:59:573 |    0)  34563; SetStreamListener running for stream 0
INFO    (14:41:59:573 |    0)  34563; [che] onVideoFrameFrozen: uid 0, frozen false
INFO    (14:41:59:573 |    0)  60975; Thread with name:IncomingVideoStreamThread started 
INFO    (14:41:59:573 |    0)  34563; doStartLocalRender success
INFO    (14:41:59:649 |   76)  44803; Capturer: use capability 640 x 480 quality is AVCaptureSessionPreset640x480

INFO    (14:41:59:669 |   20)  34563; [rp] {"rtc.video.mute_peer":{"uid":2,"mute":true}}
INFO    (14:41:59:669 |    0)  34563; [pm] mute video peer 2 muted true
INFO    (14:41:59:669 |    0)  34563; [ds]: ver 2 ds '{"streamType":5,"clientRole":1,"peers":[[2,1]]}'
INFO    (14:41:59:669 |    0)  34563; [ch0] sync (cid:3242564595, uid:715493, sync:2): 113.96.132.134:4002
INFO    (14:41:59:704 |   35)  34563; [vocs/u] **responsed from 69.28.51.138:8000, 3 vos, elapsed 447, server ts 1548225719528, wan ip 119.147.218.55
INFO    (14:41:59:704 |    0)  34563; [vos] added server: 121.11.77.43:4006
INFO    (14:41:59:787 |   83)  34563; [ap/u] **responsed from 199.190.44.136:8000, 3 STUN, server ts 1548225719587
INFO    (14:42: 0:384 |    0)  60975; Local stream (0) first rendered with resolution 640 * 480
INFO    (14:42: 0:384 |    0)  34563; onFirstVideoFrame local 715493 resolution 640 * 480, elapsed 885
INFO    (14:42: 0:394 |   10)  34563; TRACER: onFirstLocalVideoFrame codec 2 elapsed 1137
INFO    (14:42: 0:426 |   32)  34563; Create participant 715493
INFO    (14:42: 0:989 |  563)  60975; IncomingVideoStreamProcess frozen for stream 0
INFO    (14:42: 0:989 |    0)  60975; [che] onVideoFrameFrozen: uid 0, frozen true
INFO    (14:42: 1:373 |    0)  34563; audio setPeerAudioMuteStatus: uid 2 muted 0
INFO    (14:42: 1:373 |    0)  34563; video setPeerVideoMuteStatus: uid 2 muted 1
INFO    (14:42: 1:373 |    0)  34563; [pm] peer 2 is online
INFO    (14:42: 1:373 |    0)  34563; ChatEngineParameterHelper::applyMediaEngineMode: 
INFO    (14:42: 1:373 |    0)  34563; Device type: 4000
INFO    (14:42: 1:373 |    0)  34563; applyMediaEngineMode(): Hardware encoding false Hardware decoding false
INFO    (14:42: 1:373 |    0)  34563; VideoEngine: setClientRole from 1 to 1 ...
INFO    (14:42: 1:373 |    0)  34563; notifyPeerCount: cnt 1
INFO    (14:42: 2:694 |  321)  34563; [pm] peer 2 has enabled video
INFO    (14:42: 2:694 |    0)  34563; video setPeerVideoMuteStatus: uid 2 muted 1
INFO    (14:42: 4:239 |    0)  34563; [rs] **report stats: seq: 18, report list size 0, tx/rx: 3236/864, cache size: 0
INFO    (14:42: 5:402 |  163)  61711; Audio statistics - play count: playout count = 200  signal level: far_in = 0
INFO    (14:42: 5:439 |   37)  69383; Audio statistics - rec count: record count = 200 signal level: near_in = 87, near_out = 78 encode_in = 87
INFO    (14:42: 8:161 |    0)  34563; [pm] peer 2 has enabled local video
INFO    (14:42: 8:161 |    0)  34563; video setPeerVideoMuteStatus: uid 2 muted 1

from eeducation.

menthays avatar menthays commented on June 3, 2024

日志中似乎没有足够的信息。。。我们这边尝试多台机器也无法复现,请问您可以尝试更换采集设备 或是另一台机器进行尝试么?另外确认下使用的机器是MacBook?

from eeducation.

lipten avatar lipten commented on June 3, 2024

不好意思,是我这边没正确升级,导致少了个文件才报错的,重装依赖就可以了的

from eeducation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.