构建带openssl的owt

  • sample : https://github.com/thmatuza/oms-client-ios-sample 是swift的
  • 官方suit
  • [4.3]的(http://registrationcenter-download.intel.com/akdlm/irc_nas/16082/Intel_CS_WebRTC.v4.3.zip)
  • 官方文档

带openssl 编译owt

 ✘ zhangbin@pb6a80114  ~/tet/webrtc_build/owt-native/src/src  ➦ e983dc8 ●  python scripts/build.py --arch 'x64'  --ssl_root '/Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/iPhoneSimulator13.2-x86_64.sdk' --scheme 'debug'

选择openssl版本

  • owt 官方说的是OpenSSL 1.1.0l or higher.
  • issue上是 ./build-libssl.sh --version=1.1.0f --deprecated
  • l 比f 版本大,f也行么???
  • 1.1.0版本的改变
  • 构建一个带废弃api的ios的openssl 1.1.1d
 zhangbin@pb6a80114  ~/tet/webrtc_build/owt-native/OpenSSL-for-iPhone   master ./build-libssl.sh --version=1.1.1d --deprecated
  • 构建了好多版本
Build options
  OpenSSL version: 1.1.1d
  Targets: ios-sim-cross-x86_64 ios64-cross-arm64 ios64-cross-arm64e tvos-sim-cross-x86_64 tvos64-cross-arm64
  iOS SDK: 13.2
  tvOS SDK: 13.2
  Number of make threads: 8
  Build location: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone

Using openssl-1.1.1d.tar.gz
Building openssl-1.1.1d for iPhoneSimulator 13.2 x86_64...
  Logfile: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/iPhoneSimulator13.2-x86_64.sdk/build-openssl-1.1.1d.log
  Configure...
  Make (using 8 thread(s))...
  [|]
Building openssl-1.1.1d for iPhoneOS 13.2 arm64...
  Logfile: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/iPhoneOS13.2-arm64.sdk/build-openssl-1.1.1d.log
  Configure...
  Make (using 8 thread(s))...
Building openssl-1.1.1d for iPhoneOS 13.2 arm64e...
  Logfile: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/iPhoneOS13.2-arm64e.sdk/build-openssl-1.1.1d.log
  Configure...
  Make (using 8 thread(s))...
Building openssl-1.1.1d for AppleTVSimulator 13.2 x86_64...
  Logfile: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/AppleTVSimulator13.2-x86_64.sdk/build-openssl-1.1.1d.log
  Configure...
  Make (using 8 thread(s))...
Building openssl-1.1.1d for AppleTVOS 13.2 arm64...
  Logfile: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/AppleTVOS13.2-arm64.sdk/build-openssl-1.1.1d.log
  Configure...
  Make (using 8 thread(s))...
Build library for iOS...

=====>iOS SSL and Crypto lib files:
/Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/lib/libssl.a
/Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/lib/libcrypto.a
Build library for tvOS...

=====>tvOS SSL and Crypto lib files:
/Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/lib/libssl-tvOS.a
/Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/lib/libcrypto-tvOS.a

=====>Include directory:
/Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/include/
Done.
 zhangbin@pb6a80114  ~/tet/webrtc_build/owt-native/OpenSSL-for-iPhone   master  
 zhangbin@pb6a80114  ~/tet/webrtc_build/owt-native/OpenSSL-for-iPhone   master  

  • 1.1.1.d在 链接tests时报错了
      rtc::(anonymous namespace)::MakeCertificate(evp_pkey_st*, rtc::SSLIdentityParams const&) in librtc_base.a(openssl_certificate.o)
  "_X509_up_ref", referenced from:
      rtc::OpenSSLCertificate::OpenSSLCertificate(x509_st*) in librtc_base.a(openssl_certificate.o)
  "_X509_verify_cert_error_string", referenced from:
      rtc::OpenSSLAdapter::SSLVerifyCallback(int, x509_store_ctx_st*) in librtc_base.a(openssl_adapter.o)
  "_d2i_X509", referenced from:
      rtc::openssl::LoadBuiltinSSLRootCertificates(ssl_ctx_st*) in librtc_base.a(openssl_utility.o)
  "_i2d_X509_bio", referenced from:
      rtc::OpenSSLCertificate::ToDER(rtc::BufferT<unsigned char, false>*) const in librtc_base.a(openssl_certificate.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
  File "../../build/toolchain/mac/linker_driver.py", line 287, in <module>
    Main(sys.argv)
  File "../../build/toolchain/mac/linker_driver.py", line 97, in Main
    subprocess.check_call(compiler_driver_args, env=env)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['clang++', '-B', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/', '-Xlinker', '-rpath', '-Xlinker', '@executable_path/Frameworks', '-Xlinker', '-objc_abi_version', '-Xlinker', '2', '-Xlinker', '-sectcreate', '-Xlinker', '__TEXT', '-Xlinker', '__entitlements', '-Xlinker', 'obj/third_party/webrtc/modules/audio_coding/audio_decoder_unittests.xcent', '-Wl,-fatal_warnings', '-arch', 'x86_64', '-Werror', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk', '-stdlib=libc++', '-mios-simulator-version-min=9.0', '-Wl,-ObjC', '-o', 'obj/third_party/webrtc/modules/audio_coding/x64/audio_decoder_unittests', '-Wl,-filelist,obj/third_party/webrtc/modules/audio_coding/x64/audio_decoder_unittests.rsp', '-framework', 'UIKit', '-framework', 'CoreFoundation', '-framework', 'CoreGraphics', '-framework', 'CoreText', '-framework', 'Foundation', '-framework', 'CFNetwork', '-framework', 'Security', '-framework', 'SystemConfiguration', '-framework', 'AVFoundation', '-framework', 'AudioToolbox', '-framework', 'CoreMedia']' returned non-zero exit status 1
ninja: build stopped: subcommand failed.
 ✘ zhangbin@pb6a80114  ~/tet/webrtc_build/owt-native/src/src  ➦ e983dc8 ●  

不编译tests,1.1.1.d 构建owt

 ✘ zhangbin@pb6a80114  ~/tet/webrtc_build/owt-native/src/src  ➦ e983dc8 ●  python scripts/build.py --arch 'x64'  --ssl_root '/Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/iPhoneSimulator13.2-x86_64.sdk' --scheme 'debug' --skip_tests

Done. Made 1509 targets from 228 files in 1245ms
ninja: Entering directory `out/Debug-simulator-x64'
ninja: no work to do.
ninja: Entering directory `out/Debug-simulator-x64'
ninja: no work to do.
ninja: Entering directory `out/Debug-simulator-x64'
ninja: no work to do.
ninja: Entering directory `out/Debug-simulator-x64'
ninja: no work to do.
ninja: Entering directory `out/Debug-simulator-x64'
ninja: no work to do.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (audio_receive_stream.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(audio_receive_stream.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(audio_receive_stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (audio_send_stream.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(audio_send_stream.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(audio_send_stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (audio_state.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(audio_state.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(audio_state.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (auto_correlation.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(auto_correlation.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(auto_correlation.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (cross_correlation.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(cross_correlation.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(cross_correlation.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (decoder_database.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(decoder_database.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(decoder_database.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (dtls_transport.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(dtls_transport.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(dtls_transport.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (encoded_frame.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(encoded_frame.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(encoded_frame.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (err.o) in output file used for input files: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/iPhoneSimulator13.2-x86_64.sdk/lib/libcrypto.a(err.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(err.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (helpers.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(helpers.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(helpers.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (histogram.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(histogram.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(histogram.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (int128.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(int128.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(int128.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (jsep_ice_candidate.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(jsep_ice_candidate.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(jsep_ice_candidate.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (logging.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_sdk_base.a(logging.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(logging.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (moving_average.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(moving_average.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(moving_average.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (noise_suppression.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(noise_suppression.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(noise_suppression.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (packet.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(packet.o) and: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/iPhoneSimulator13.2-x86_64.sdk/lib/libssl.a(packet.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (packet.o) in output file used for input files: /Users/zhangbin/tet/webrtc_build/owt-native/OpenSSL-for-iPhone/bin/iPhoneSimulator13.2-x86_64.sdk/lib/libssl.a(packet.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(packet.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (packet_buffer.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(packet_buffer.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(packet_buffer.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (rtp_sender.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(rtp_sender.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(rtp_sender.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (sctp_transport.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(sctp_transport.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(sctp_transport.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (splitting_filter.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(splitting_filter.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(splitting_filter.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (stream.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_sdk_base.a(stream.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (sysinfo.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_sdk_base.a(sysinfo.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(sysinfo.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (video_common.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(video_common.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(video_common.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (video_frame_buffer.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(video_frame_buffer.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(video_frame_buffer.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (video_receive_stream.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(video_receive_stream.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(video_receive_stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (video_send_stream.o) in output file used for input files: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(video_send_stream.o) and: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(video_send_stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(unscaledcycleclock.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(socket.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(convert_jpeg.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(mjpeg_decoder.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(io_win32.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: out/Debug-simulator-x64/obj/talk/owt/libowt_deps.a(sctp6_usrreq.o) has no symbols
Done.
 zhangbin@pb6a80114  ~/tet/webrtc_build/owt-native/src/src  ➦ e983dc8 ●  

1.1.1d ios 构建sioclient_tls版本

  • 使用demo 构建出来的tls.a
  • 查看我的提交

owt ios client

  • tls 过了

2020-02-01 13:29:45.228765+0800 ICS Conference[1050:7135493] [ZB] connectBtnTouchDown roomid 5e32d4733c014d204cea87e4
2020-02-01 13:29:45.272125+0800 ICS Conference[1050:7135493] [ZSPDEBUG onSuccess Function:-[ConferenceConnectionViewController connectBtnTouchDown:]_block_invoke Line:227] token:{"tokenId":"5e350cc96014652160d86bb1","host":"182.168.1.38:8080","secure":true,"signature":"YWQ2MmUyOWZkY2JhNzRjZDc0NDU5M2NjYTQ0ZWRkNDYyMzUyYTJkNmVjZGQzN2E2MmZlYzRkMzIwNjk4ODM0Mg=="}
==ssl =client_impl:connect_impl:wss===
[2020-02-01 13:29:45] [devel] create_connection
[2020-02-01 13:29:45] [devel] asio con transport constructor
[2020-02-01 13:29:45] [devel] connection constructor
[2020-02-01 13:29:45] [devel] transport::asio::init
[2020-02-01 13:29:54] [devel] starting async DNS resolve for 182.168.1.38:8080
[2020-02-01 13:29:54] [devel] Async DNS resolve successful. Results: 182.168.1.38:8080 
[2020-02-01 13:29:54] [devel] Starting async connect
[2020-02-01 13:29:54] [devel] asio handle_resolve_timeout timer cancelled
[2020-02-01 13:29:54] [devel] Async connect to 182.168.1.38:8080 successful.
[2020-02-01 13:29:54] [connect] Successful connection
[2020-02-01 13:29:54] [devel] connection start
[2020-02-01 13:29:54] [devel] asio connection init
[2020-02-01 13:29:54] [devel] asio connection handle pre_init
[2020-02-01 13:29:54] [devel] asio connection post_init
[2020-02-01 13:29:54] [devel] asio handle_connect_timeout timer cancelled
[2020-02-01 13:29:54] [devel] asio connection handle_post_init
[2020-02-01 13:29:54] [devel] connection handle_transport_init
[2020-02-01 13:29:54] [devel] connection send_http_request
[2020-02-01 13:29:54] [devel] Raw Handshake request:
GET /socket.io/?EIO=4&transport=websocket&t=1580534985 HTTP/1.1
Connection: Upgrade
Host: 182.168.1.38:8080
Sec-WebSocket-Key: AAAAAAAAAAAAAAAAAAAAAA==
Sec-WebSocket-Version: 13
Upgrade: websocket
User-Agent: WebSocket++/0.8.1


[2020-02-01 13:29:54] [devel] asio post init timer cancelled
[2020-02-01 13:29:54] [devel] handle_send_http_request
[2020-02-01 13:29:54] [devel] asio async_read_at_least: 1
[2020-02-01 13:29:54] [devel] asio con handle_async_read
[2020-02-01 13:29:54] [devel] handle_read_http_response
[2020-02-01 13:29:54] [devel] Raw response: HTTP/1.1 101 Switching Protocols
Connection: Upgrade
Sec-WebSocket-Accept: ICX+Yqv66kxgM0FcWaLWlFLwTAI=
Upgrade: websocket


[2020-02-01 13:29:54] [connect] WebSocket Connection 182.168.1.38:8080 v-2 "WebSocket++/0.8.1" /socket.io/?EIO=4&transport=websocket&t=1580534985 101
Connected.
[2020-02-01 13:29:54] [devel] p = 0 bytes transferred = 0
[2020-02-01 13:29:54] [devel] asio async_read_at_least: 1
[2020-02-01 13:29:54] [devel] open handshake timer cancelled
[2020-02-01 13:29:54] [devel] asio con handle_async_read
[2020-02-01 13:29:54] [devel] p = 0 bytes transferred = 2
[2020-02-01 13:29:54] [devel] calling consume with 2 bytes
[2020-02-01 13:29:54] [devel] Processing Bytes: 81 55 
[2020-02-01 13:29:54] [devel] bytes left after consume: 0
[2020-02-01 13:29:54] [devel] asio async_read_at_least: 1
[2020-02-01 13:29:54] [devel] asio con handle_async_read
[2020-02-01 13:29:54] [devel] p = 0 bytes transferred = 85
[2020-02-01 13:29:54] [devel] calling consume with 85 bytes
[2020-02-01 13:29:54] [devel] Processing Bytes: 30 7B 22 73 69 64 22 3A 22 2D 65 6D 5F 71 4A 73 4E 5A 57 32 76 76 61 64 5A 41 41 41 43 22 2C 22 75 70 67 72 61 64 65 73 22 3A 5B 5D 2C 22 70 69 6E 67 49 6E 74 65 72 76 61 6C 22 3A 32 35 30 30 30 2C 22 70 69 6E 67 54 69 6D 65 6F 75 74 22 3A 35 30 30 30 7D 
[2020-02-01 13:29:54] [devel] bytes left after consume: 0
[2020-02-01 13:29:54] [devel] Complete message received. Dispatching
On handshake,sid:-em_qJsNZW2vvadZAAAC,ping interval:25000,ping timeout5000
[2020-02-01 13:29:54] [devel] asio async_read_at_least: 1
[2020-02-01 13:29:54] [devel] asio con handle_async_read
[2020-02-01 13:29:54] [devel] p = 0 bytes transferred = 2
[2020-02-01 13:29:54] [devel] calling consume with 2 bytes
[2020-02-01 13:29:54] [devel] Processing Bytes: 81 02 
[2020-02-01 13:29:54] [devel] bytes left after consume: 0
[2020-02-01 13:29:54] [devel] asio async_read_at_least: 1
[2020-02-01 13:29:54] [devel] asio con handle_async_read
[2020-02-01 13:29:54] [devel] p = 0 bytes transferred = 2
[2020-02-01 13:29:54] [devel] calling consume with 2 bytes
[2020-02-01 13:29:54] [devel] Processing Bytes: 34 30 
[2020-02-01 13:29:54] [devel] bytes left after consume: 0
[2020-02-01 13:29:54] [devel] Complete message received. Dispatching
Received Message type (Connect)
encoded payload length:431
[2020-02-01 13:29:54] [devel] connection send
[2020-02-01 13:29:54] [devel] write_push: message count: 1 buffer size: 431
[2020-02-01 13:29:54] [devel] asio async_read_at_least: 1
[2020-02-01 13:29:54] [devel] write_pop: message count: 0 buffer size: 0
[2020-02-01 13:29:54] [frame_header] Dispatching write containing 1 message(s) containing 8 header bytes and 431 payload bytes
[2020-02-01 13:29:54] [frame_header] Header Bytes: 
[0] (8) 81 FE 01 AF 00 00 00 00 

[2020-02-01 13:29:54] [frame_payload] Payload Bytes: 
[0] (431) [1] 421["login",{"protocol":"1.1","token":"eyJ0b2tlbklkIjoiNWUzNTBjYzk2MDE0NjUyMTYwZDg2YmIxIiwiaG9zdCI6IjE4Mi4xNjguMS4zODo4MDgwIiwic2VjdXJlIjp0cnVlLCJzaWduYXR1cmUiOiJZV1EyTW1VeU9XWmtZMkpoTnpSalpEYzBORFU1TTJOallUUTBaV1JrTkRZeU16VXlZVEprTm1WalpHUXpOMkUyTW1abFl6UmtNekl3TmprNE9ETTBNZz09In0=","userAgent":{"os":{"name":"iPhone OS","version":"13.3"},"runtime":{"name":"WebRTC","version":"76"},"sdk":{"type":"Objective-C","version":"4.3"}}}]

[2020-02-01 13:29:54] [devel] connection handle_write_frame
[2020-02-01 13:29:54] [devel] asio con handle_async_read
[2020-02-01 13:29:54] [devel] p = 0 bytes transferred = 4
[2020-02-01 13:29:54] [devel] calling consume with 4 bytes
[2020-02-01 13:29:54] [devel] Processing Bytes: 81 7E 06 70 
[2020-02-01 13:29:54] [devel] bytes left after consume: 0
[2020-02-01 13:29:54] [devel] asio async_read_at_least: 1
[2020-02-01 13:29:54] [devel] asio con handle_async_read
[2020-02-01 13:29:54] [devel] p = 0 bytes transferred = 1648
[2020-02-01 13:29:54] [devel] calling consume with 1648 bytes
[2020-02-01 13:29:54] [devel] Processing Bytes: 34 33 31 5B 22 6F 6B 22 2C 7B 22 75 73 65 72 22 3A 22 75 73 65 72 22 2C 22 72 6F 6C 65 22 3A 22 70 72 65 73 65 6E 74 65 72 22 2C 22 70 65 72 6D 69 73 73 69 6F 6E 22 3A 7B 22 70 75 62 6C 69 73 68 22 3A 7B 22 61 75 64 69 6F 22 3A 74 72 75 65 2C 22 76 69 64 65 6F 22 3A 74 72 75 65 7D 2C 22 73 75 62 73 63 72 69 62 65 22 3A 7B 22 61 75 64 69 6F 22 3A 74 72 75 65 2C 22 76 69 64 65 6F 22 3A 74 72 75 65 7D 7D 2C 22 72 6F 6F 6D 22 3A 7B 22 69 64 22 3A 22 35 65 33 32 64 34 37 33 33 63 30 31 34 64 32 30 34 63 65 61 38 37 65 34 22 2C 22 76 69 65 77 73 22 3A 5B 22 63 6F 6D 6D 6F 6E 22 5D 2C 22 70 61 72 74 69 63 69 70 61 6E 74 73 22 3A 5B 7B 22 69 64 22 3A 22 2D 65 6D 5F 71 4A 73 4E 5A 57 32 76 76 61 64 5A 41 41 41 43 22 2C 22 75 73 65 72 22 3A 22 75 73 65 72 22 2C 22 72 6F 6C 65 22 3A 22 70 72 65 73 65 6E 74 65 72 22 7D 5D 2C 22 73 74 72 65 61 6D 73 22 3A 5B 7B 22 69 64 22 3A 22 35 65 33 32 64 34 37 33 33 63 30 31 34 64 32 30 34 63 65 61 38 37 65 34 2D 63 6F 6D 6D 6F 6E 22 2C 22 74 79 70 65 22 3A 22 6D 69 78 65 64 22 2C 22 6D 65 64 69 61 22 3A 7B 22 61 75 64 69 6F 22 3A 7B 22 66 6F 72 6D 61 74 22 3A 7B 22 63 6F 64 65 63 22 3A 22 6F 70 75 73 22 2C 22 73 61 6D 70 6C 65 52 61 74 65 22 3A 34 38 30 30 30 2C 22 63 68 61 6E 6E 65 6C 4E 75 6D 22 3A 32 7D 2C 22 6F 70 74 69 6F 6E 61 6C 22 3A 7B 22 66 6F 72 6D 61 74 22 3A 5B 7B 22 63 6F 64 65 63 22 3A 22 69 73 61 63 22 2C 22 73 61 6D 70 6C 65 52 61 74 65 22 3A 31 36 30 30 30 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 69 73 61 63 22 2C 22 73 61 6D 70 6C 65 52 61 74 65 22 3A 33 32 30 30 30 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 67 37 32 32 22 2C 22 73 61 6D 70 6C 65 52 61 74 65 22 3A 31 36 30 30 30 2C 22 63 68 61 6E 6E 65 6C 4E 75 6D 22 3A 31 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 70 63 6D 61 22 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 70 63 6D 75 22 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 61 61 63 22 2C 22 73 61 6D 70 6C 65 52 61 74 65 22 3A 34 38 30 30 30 2C 22 63 68 61 6E 6E 65 6C 4E 75 6D 22 3A 32 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 61 63 33 22 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 6E 65 6C 6C 79 6D 6F 73 65 72 22 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 69 6C 62 63 22 7D 5D 7D 7D 2C 22 76 69 64 65 6F 22 3A 7B 22 6F 70 74 69 6F 6E 61 6C 22 3A 7B 22 66 6F 72 6D 61 74 22 3A 5B 7B 22 63 6F 64 65 63 22 3A 22 68 32 36 34 22 2C 22 70 72 6F 66 69 6C 65 22 3A 22 43 42 22 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 68 32 36 34 22 2C 22 70 72 6F 66 69 6C 65 22 3A 22 42 22 7D 2C 7B 22 63 6F 64 65 63 22 3A 22 76 70 39 22 7D 5D 2C 22 70 61 72 61 6D 65 74 65 72 73 22 3A 7B 22 72 65 73 6F 6C 75 74 69 6F 6E 22 3A 5B 7B 22 77 69 64 74 68 22 3A 34 38 30 2C 22 68 65 69 67 68 74 22 3A 33 36 30 7D 2C 7B 22 77 69 64 74 68 22 3A 34 32 36 2C 22 68 65 69 67 68 74 22 3A 33 32 30 7D 2C 7B 22 77 69 64 74 68 22 3A 33 32 30 2C 22 68 65 69 67 68 74 22 3A 32 34 30 7D 2C 7B 22 77 69 64 74 68 22 3A 32 31 32 2C 22 68 65 69 67 68 74 22 3A 31 36 30 7D 2C 7B 22 77 69 64 74 68 22 3A 31 36 30 2C 22 68 65 69 67 68 74 22 3A 31 32 30 7D 2C 7B 22 77 69 64 74 68 22 3A 33 35 32 2C 22 68 65 69 67 68 74 22 3A 32 38 38 7D 5D 2C 22 66 72 61 6D 65 72 61 74 65 22 3A 5B 36 2C 31 32 2C 31 35 5D 2C 22 62 69 74 72 61 74 65 22 3A 5B 22 78 30 2E 38 22 2C 22 78 30 2E 36 22 2C 22 78 30 2E 34 22 2C 22 78 30 2E 32 22 5D 2C 22 6B 65 79 46 72 61 6D 65 49 6E 74 65 72 76 61 6C 22 3A 5B 33 30 2C 35 2C 32 2C 31 5D 7D 7D 2C 22 6F 72 69 67 69 6E 61 6C 22 3A 5B 7B 22 66 6F 72 6D 61 74 22 3A 7B 22 63 6F 64 65 63 22 3A 22 76 70 38 22 7D 2C 22 70 61 72 61 6D 65 74 65 72 73 22 3A 7B 22 72 65 73 6F 6C 75 74 69 6F 6E 22 3A 7B 22 68 65 69 67 68 74 22 3A 34 38 30 2C 22 77 69 64 74 68 22 3A 36 34 30 7D 2C 22 66 72 61 6D 65 72 61 74 65 22 3A 32 34 2C 22 6B 65 79 46 72 61 6D 65 49 6E 74 65 72 76 61 6C 22 3A 31 30 30 7D 7D 5D 7D 7D 2C 22 69 6E 66 6F 22 3A 7B 22 6C 61 62 65 6C 22 3A 22 63 6F 6D 6D 6F 6E 22 2C 22 61 63 74 69 76 65 49 6E 70 75 74 22 3A 22 75 6E 6B 6E 6F 77 6E 22 2C 22 6C 61 79 6F 75 74 22 3A 5B 5D 7D 7D 5D 7D 2C 22 69 64 22 3A 22 2D 65 6D 5F 71 4A 73 4E 5A 57 32 76 76 61 64 5A 41 41 41 43 22 2C 22 72 65 63 6F 6E 6E 65 63 74 69 6F 6E 54 69 63 6B 65 74 22 3A 22 65 79 4A 77 59 58 4A 30 61 57 4E 70 63 47 46 75 64 45 6C 6B 49 6A 6F 69 4C 57 56 74 58 33 46 4B 63 30 35 61 56 7A 4A 32 64 6D 46 6B 57 6B 46 42 51 55 4D 69 4C 43 4A 30 61 57 4E 72 5A 58 52 4A 5A 43 49 36 49 6E 46 78 59 7A 42 7A 4E 7A 56 35 4E 54 5A 7A 49 69 77 69 62 6D 39 30 51 6D 56 6D 62 33 4A 6C 49 6A 6F 78 4E 54 67 77 4E 54 4D 30 4F 54 6B 30 4E 44 41 79 4C 43 4A 75 62 33 52 42 5A 6E 52 6C 63 69 49 36 4D 54 55 34 4D 44 55 7A 4E 54 55 35 4E 44 51 77 4D 69 77 69 63 32 6C 6E 62 6D 46 30 64 58 4A 6C 49 6A 6F 69 54 6A 4A 4E 65 55 35 36 52 54 42 4E 52 45 55 78 54 6C 52 4A 4E 46 70 71 61 47 74 4F 52 47 78 70 54 54 4A 4A 4D 31 6C 71 59 7A 46 5A 4D 6C 56 34 54 55 52 47 61 55 31 45 52 6D 70 4E 61 6C 56 34 57 57 70 52 4D 55 39 55 56 58 6C 4F 52 46 56 36 54 56 52 47 61 45 35 71 51 6D 70 61 52 46 45 79 54 31 52 4F 62 56 70 45 59 7A 4A 61 52 31 46 36 54 6D 63 39 50 53 4A 39 22 7D 5D 
[2020-02-01 13:29:54] [devel] bytes left after consume: 0
[2020-02-01 13:29:54] [devel] Complete message received. Dispatching
Received Message type (ACK)
(conferencesocketsignalingchannel.cc:759): Received ack for message ID: 1
(conferenceclient.cc:322): Find streams in the conference.
(conferenceclient.cc:1286): OnStreamAdded: mixed stream.
[2020-02-01 13:30:00] [devel] asio async_read_at_least: 1
2020-02-01 13:30:00.220815+0800 ICS Conference[1050:7135493] [ZSPDEBUG joinWithToken Function:-[ConferenceConnectionViewController connectBtnTouchDown:]_block_invoke_3 Line:230] RemoteStream Count:1
2020-02-01 13:30:03.018541+0800 ICS Conference[1050:7136232] Camera is not supported on simulator
2020-02-01 13:30:03.018803+0800 ICS Conference[1050:7136232] +[RTCPeerConnectionFactory sharedInstance]: unrecognized selector sent to class 0x112457630
2020-02-01 13:30:03.049307+0800 ICS Conference[1050:7136232] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[RTCPeerConnectionFactory sharedInstance]: unrecognized selector sent to class 0x112457630'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010fe2027e __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x000000010fc8db20 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010fe40ed4 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x000000010fe24c4c ___forwarding___ + 1436
	4   CoreFoundation                      0x000000010fe26f78 _CF_forwarding_prep_0 + 120
	5   ICS Conference                      0x000000010bd72c68 -[ConferenceSFUStreamViewController createLocalSenderStream:] + 88
	6   ICS Conference                      0x000000010bd70b5f -[ConferenceSFUStreamViewController doPublish] + 191
	7   ICS Conference                      0x000000010bd6ef97 __48-[ConferenceSFUStreamViewController viewDidLoad]_block_invoke + 39
	8   libdispatch.dylib                   0x00000001181a0dd4 _dispatch_call_block_and_release + 12
	9   libdispatch.dylib                   0x00000001181a1d48 _dispatch_client_callout + 8
	10  libdispatch.dylib                   0x00000001181a41ef _dispatch_queue_override_invoke + 1022
	11  libdispatch.dylib                   0x00000001181b328c _dispatch_root_queue_drain + 351
	12  libdispatch.dylib                   0x00000001181b3b96 _dispatch_worker_thread2 + 132
	13  libsystem_pthread.dylib             0x00007fff524636b6 _pthread_wqthread + 220
	14  libsystem_pthread.dylib             0x00007fff52462827 start_wqthread + 15
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 
发布了693 篇原创文章 · 获赞 58 · 访问量 220万+

猜你喜欢

转载自blog.csdn.net/commshare/article/details/104132445