-
Notifications
You must be signed in to change notification settings - Fork 182
Fix SDP failure if hardware acceleration is not turned on #183
Conversation
3319deb
to
562ef0a
Compare
@@ -126,6 +128,13 @@ void PeerConnectionDependencyFactory:: | |||
if (!GlobalConfiguration::GetCustomizedVideoDecoderEnabled()) { | |||
decoder_factory.reset(new MSDKVideoDecoderFactory()); | |||
} | |||
} else { | |||
if (!encoded_frame_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's paired with line 144?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paired with line 124.
if (!encoded_frame_) { | ||
encoder_factory = std::move(webrtc::CreateBuiltinVideoEncoderFactory()); | ||
} | ||
if (!GlobalConfiguration::GetCustomizedVideoDecoderEnabled()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to line 142?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored the code to be more reasonable here.
if (!encoded_frame_) { | ||
encoder_factory = std::move(webrtc::CreateBuiltinVideoEncoderFactory()); | ||
} | ||
if (!GlobalConfiguration::GetCustomizedVideoDecoderEnabled()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this adds handling when hardware_acceleration is not true. not related with line 142.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored the code here to be more reasonable.
562ef0a
to
4cf9b3d
Compare
* Build OWT with libwebrtc M76. (#143) * Update DEPS for WebRTC M76. * Build OWT with libwebrtc M76. Most custom features are disabled. It will be re-enabled in C++ SDK in following PRs. Custom audio/video input/output may be removed from Android and iOS SDK. Recommended way to use these kinds of features on Android and iOS is implementing your own video source, encoder, decoder by inheriting WebRTC classes. OWT will provide some APIs to work with custom WebRTC components. An example of these APIs would be `initWithMediaStream:(RTCMediaStream*)mediaStream source: (OWTStreamSourceInfo*)source`. As the RTCMediaStream is created by app, it has more control on the stream created, e.g.: switching media source during the call. * Enable windows SDK build on M76 (#158) * Enable customized input and local camera input (#159) * Enable windows SDK build on M76 * Disable rtc_use_h264 so that to avoid ffmpeg build. - enumerate supported h264 profiles explicitly. - seperate camera capture source from webrtc stack - update gn args for build-win.py to not use clang for build. - update gn args to set rtc_use_h264 to false * Fix encoded h.264 publish issue (#160) * Enable windows SDK build on M76 * Disable rtc_use_h264 so that to avoid ffmpeg build. - enumerate supported h264 profiles explicitly. - seperate camera capture source from webrtc stack - update gn args for build-win.py to not use clang for build. - update gn args to set rtc_use_h264 to false * Fix encoded h264 publish issue * Enable building with rtc_use_h265 set to true (#161) Enable build with rtc_use_h265 enabled * Remove taskqueuefactory from p2p client header file (#162) Remove taskqueuefactory from p2pclient header * Fix issue #165: SDK crashes on failed local stream creation. (#166) Also updated DEPS to use latest 76-sdk. * Simulcast suppoort for Windows. Also enable build with openssl. (#168) * Add AudioPlayerInterface for Windows SDK (#169) * Correct the path for two Objective-C headers. (#170) * Issue 43: publish without options crashes (#173) * Set transceiver's stream_ids. (#175) If this member is not set, remote side will not associate track to stream. * Fix pub failure when audio is present * Add enable_iterator_debugging flag for debug mode to fix debug application link error. (#176) * Fix issue #177: windows client crash of destruction of video stream (#184) * Fix undefined symbols error for iOS. (#174) Some features are only available on Windows and Linux. * Fix SDP failure if hardware acceleration is not turned on (#183) * Remove owt_rebase_m63 flag. (#191) * Fix BDBA issue on libjpeg_turbo
No description provided.