Skip to content

Commit

Permalink
修复手机推rtc,其他协议拉流画面旋转
Browse files Browse the repository at this point in the history
  • Loading branch information
Dw9 committed Dec 8, 2022
1 parent 04422b3 commit 9d40c82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions api/source/mk_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ API_EXPORT uint16_t API_CALL mk_http_server_start(uint16_t port, int ssl) {
}
return http_server[ssl]->getPort();
} catch (std::exception &ex) {
http_server[ssl] = nullptr;;
http_server[ssl] = nullptr;
WarnL << ex.what();
return 0;
}
Expand All @@ -199,7 +199,7 @@ API_EXPORT uint16_t API_CALL mk_rtsp_server_start(uint16_t port, int ssl) {
}
return rtsp_server[ssl]->getPort();
} catch (std::exception &ex) {
rtsp_server[ssl] = nullptr;;
rtsp_server[ssl] = nullptr;
WarnL << ex.what();
return 0;
}
Expand All @@ -216,7 +216,7 @@ API_EXPORT uint16_t API_CALL mk_rtmp_server_start(uint16_t port, int ssl) {
}
return rtmp_server[ssl]->getPort();
} catch (std::exception &ex) {
rtmp_server[ssl] = nullptr;;
rtmp_server[ssl] = nullptr;
WarnL << ex.what();
return 0;
}
Expand All @@ -230,7 +230,7 @@ API_EXPORT uint16_t API_CALL mk_rtp_server_start(uint16_t port){
rtpServer->start(port);
return rtpServer->getPort();
} catch (std::exception &ex) {
rtpServer = nullptr;;
rtpServer = nullptr;
WarnL << ex.what();
return 0;
}
Expand Down Expand Up @@ -331,7 +331,7 @@ API_EXPORT uint16_t API_CALL mk_srt_server_start(uint16_t port) {
return srtServer->getPort();

} catch (std::exception &ex) {
srtServer = nullptr;;
srtServer = nullptr;
WarnL << ex.what();
return 0;
}
Expand All @@ -347,7 +347,7 @@ API_EXPORT uint16_t API_CALL mk_shell_server_start(uint16_t port){
shell_server->start<ShellSession>(port);
return shell_server->getPort();
} catch (std::exception &ex) {
shell_server = nullptr;;
shell_server = nullptr;
WarnL << ex.what();
return 0;
}
Expand Down
3 changes: 2 additions & 1 deletion webrtc/Sdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,8 @@ void RtcConfigure::RtcTrackConfigure::setDefaultSetting(TrackType type){
{RtpExtType::color_space, RtpDirection::sendrecv},
{RtpExtType::video_content_type, RtpDirection::sendrecv},
{RtpExtType::playout_delay, RtpDirection::sendrecv},
{RtpExtType::video_orientation, RtpDirection::sendrecv},
//手机端推webrtc 会带有旋转角度,rtc协议能正常播放 其他协议拉流画面旋转
//{RtpExtType::video_orientation, RtpDirection::sendrecv},
{RtpExtType::toffset, RtpDirection::sendrecv},
{RtpExtType::framemarking, RtpDirection::sendrecv}
};
Expand Down

0 comments on commit 9d40c82

Please sign in to comment.