Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
cdf97e76
Commit
cdf97e76
authored
Apr 28, 2023
by
xia-chu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新zltoolkit,适配最新代码
parent
64553797
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
26 行增加
和
26 行删除
+26
-26
3rdpart/ZLToolKit
+1
-1
api/source/mk_tcp.cpp
+3
-3
api/source/mk_tcp_private.h
+1
-1
src/Http/HttpClient.cpp
+1
-1
src/Http/HttpClient.h
+1
-1
src/Http/HttpFileManager.cpp
+1
-1
src/Http/HttpSession.cpp
+1
-1
src/Http/WebSocketClient.h
+2
-2
src/Rtmp/RtmpPlayer.cpp
+1
-1
src/Rtmp/RtmpPlayer.h
+1
-1
src/Rtmp/RtmpPusher.cpp
+1
-1
src/Rtmp/RtmpPusher.h
+1
-1
src/Rtsp/RtspPlayer.cpp
+1
-1
src/Rtsp/RtspPlayer.h
+1
-1
src/Rtsp/RtspPusher.cpp
+1
-1
src/Rtsp/RtspPusher.h
+1
-1
srt/SrtSession.cpp
+1
-1
tests/test_wsClient.cpp
+1
-1
webrtc/IceServer.cpp
+1
-1
webrtc/WebRtcPlayer.cpp
+1
-1
webrtc/WebRtcSession.cpp
+1
-1
webrtc/WebRtcTransport.cpp
+2
-2
没有找到文件。
ZLToolKit
@
d134fbb9
Subproject commit
7e40c751659d5c1ec623699732284c12e0a4feb8
Subproject commit
d134fbb9fe0b108dddb66a7bfa35b7b438426411
api/source/mk_tcp.cpp
查看文件 @
cdf97e76
...
@@ -139,7 +139,7 @@ API_EXPORT void API_CALL mk_tcp_session_send(const mk_tcp_session ctx, const cha
...
@@ -139,7 +139,7 @@ API_EXPORT void API_CALL mk_tcp_session_send(const mk_tcp_session ctx, const cha
API_EXPORT
void
API_CALL
mk_tcp_session_send_buffer_safe
(
const
mk_tcp_session
ctx
,
mk_buffer
buffer
)
{
API_EXPORT
void
API_CALL
mk_tcp_session_send_buffer_safe
(
const
mk_tcp_session
ctx
,
mk_buffer
buffer
)
{
assert
(
ctx
&&
buffer
);
assert
(
ctx
&&
buffer
);
try
{
try
{
std
::
weak_ptr
<
S
ession
>
weak_session
=
((
SessionForC
*
)
ctx
)
->
shared_from_this
();
std
::
weak_ptr
<
S
ocketHelper
>
weak_session
=
((
SessionForC
*
)
ctx
)
->
shared_from_this
();
auto
ref
=
mk_buffer_ref
(
buffer
);
auto
ref
=
mk_buffer_ref
(
buffer
);
((
SessionForC
*
)
ctx
)
->
async
([
weak_session
,
ref
]()
{
((
SessionForC
*
)
ctx
)
->
async
([
weak_session
,
ref
]()
{
auto
session_session
=
weak_session
.
lock
();
auto
session_session
=
weak_session
.
lock
();
...
@@ -149,7 +149,7 @@ API_EXPORT void API_CALL mk_tcp_session_send_buffer_safe(const mk_tcp_session ct
...
@@ -149,7 +149,7 @@ API_EXPORT void API_CALL mk_tcp_session_send_buffer_safe(const mk_tcp_session ct
mk_buffer_unref
(
ref
);
mk_buffer_unref
(
ref
);
});
});
}
catch
(
std
::
exception
&
ex
)
{
}
catch
(
std
::
exception
&
ex
)
{
WarnL
<<
"can not got the strong p
io
nter of this mk_tcp_session:"
<<
ex
.
what
();
WarnL
<<
"can not got the strong p
oi
nter of this mk_tcp_session:"
<<
ex
.
what
();
}
}
}
}
...
@@ -271,7 +271,7 @@ void TcpClientForC::onRecv(const Buffer::Ptr &pBuf) {
...
@@ -271,7 +271,7 @@ void TcpClientForC::onRecv(const Buffer::Ptr &pBuf) {
}
}
}
}
void
TcpClientForC
::
onErr
(
const
SockException
&
ex
)
{
void
TcpClientForC
::
onErr
or
(
const
SockException
&
ex
)
{
if
(
_events
.
on_mk_tcp_client_disconnect
){
if
(
_events
.
on_mk_tcp_client_disconnect
){
_events
.
on_mk_tcp_client_disconnect
(
_client
,
ex
.
getErrCode
(),
ex
.
what
());
_events
.
on_mk_tcp_client_disconnect
(
_client
,
ex
.
getErrCode
(),
ex
.
what
());
}
}
...
...
api/source/mk_tcp_private.h
查看文件 @
cdf97e76
...
@@ -21,7 +21,7 @@ public:
...
@@ -21,7 +21,7 @@ public:
TcpClientForC
(
mk_tcp_client_events
*
events
)
;
TcpClientForC
(
mk_tcp_client_events
*
events
)
;
~
TcpClientForC
()
override
;
~
TcpClientForC
()
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
pBuf
)
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
pBuf
)
override
;
void
onErr
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onErr
or
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onManager
()
override
;
void
onManager
()
override
;
void
onConnect
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
ex
)
override
;
void
setClient
(
mk_tcp_client
client
);
void
setClient
(
mk_tcp_client
client
);
...
...
src/Http/HttpClient.cpp
查看文件 @
cdf97e76
...
@@ -176,7 +176,7 @@ void HttpClient::onRecv(const Buffer::Ptr &pBuf) {
...
@@ -176,7 +176,7 @@ void HttpClient::onRecv(const Buffer::Ptr &pBuf) {
HttpRequestSplitter
::
input
(
pBuf
->
data
(),
pBuf
->
size
());
HttpRequestSplitter
::
input
(
pBuf
->
data
(),
pBuf
->
size
());
}
}
void
HttpClient
::
onErr
(
const
SockException
&
ex
)
{
void
HttpClient
::
onErr
or
(
const
SockException
&
ex
)
{
onResponseCompleted_l
(
ex
);
onResponseCompleted_l
(
ex
);
}
}
...
...
src/Http/HttpClient.h
查看文件 @
cdf97e76
...
@@ -177,7 +177,7 @@ protected:
...
@@ -177,7 +177,7 @@ protected:
//// TcpClient override ////
//// TcpClient override ////
void
onConnect
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
pBuf
)
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
pBuf
)
override
;
void
onErr
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onErr
or
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onFlush
()
override
;
void
onFlush
()
override
;
void
onManager
()
override
;
void
onManager
()
override
;
...
...
src/Http/HttpFileManager.cpp
查看文件 @
cdf97e76
...
@@ -367,7 +367,7 @@ static void accessFile(Session &sender, const Parser &parser, const MediaInfo &m
...
@@ -367,7 +367,7 @@ static void accessFile(Session &sender, const Parser &parser, const MediaInfo &m
replace
(
const_cast
<
string
&>
(
media_info
.
_streamid
),
kHlsSuffix
,
""
);
replace
(
const_cast
<
string
&>
(
media_info
.
_streamid
),
kHlsSuffix
,
""
);
}
}
weak_ptr
<
Session
>
weakSession
=
s
ender
.
shared_from_this
(
);
weak_ptr
<
Session
>
weakSession
=
s
tatic_pointer_cast
<
Session
>
(
sender
.
shared_from_this
()
);
//判断是否有权限访问该文件
//判断是否有权限访问该文件
canAccessPath
(
sender
,
parser
,
media_info
,
false
,
[
cb
,
file_path
,
parser
,
is_hls
,
media_info
,
weakSession
](
const
string
&
err_msg
,
const
HttpServerCookie
::
Ptr
&
cookie
)
{
canAccessPath
(
sender
,
parser
,
media_info
,
false
,
[
cb
,
file_path
,
parser
,
is_hls
,
media_info
,
weakSession
](
const
string
&
err_msg
,
const
HttpServerCookie
::
Ptr
&
cookie
)
{
auto
strongSession
=
weakSession
.
lock
();
auto
strongSession
=
weakSession
.
lock
();
...
...
src/Http/HttpSession.cpp
查看文件 @
cdf97e76
...
@@ -612,7 +612,7 @@ void HttpSession::sendResponse(int code,
...
@@ -612,7 +612,7 @@ void HttpSession::sendResponse(int code,
}
}
//发送http body
//发送http body
AsyncSenderData
::
Ptr
data
=
std
::
make_shared
<
AsyncSenderData
>
(
s
hared_from_this
(
),
body
,
bClose
);
AsyncSenderData
::
Ptr
data
=
std
::
make_shared
<
AsyncSenderData
>
(
s
tatic_pointer_cast
<
Session
>
(
shared_from_this
()
),
body
,
bClose
);
getSock
()
->
setOnFlush
([
data
]()
{
return
AsyncSender
::
onSocketFlushed
(
data
);
});
getSock
()
->
setOnFlush
([
data
]()
{
return
AsyncSender
::
onSocketFlushed
(
data
);
});
AsyncSender
::
onSocketFlushed
(
data
);
AsyncSender
::
onSocketFlushed
(
data
);
}
}
...
...
src/Http/WebSocketClient.h
查看文件 @
cdf97e76
...
@@ -218,7 +218,7 @@ protected:
...
@@ -218,7 +218,7 @@ protected:
/**
/**
* tcp连接断开
* tcp连接断开
*/
*/
void
onErr
(
const
toolkit
::
SockException
&
ex
)
override
{
void
onErr
or
(
const
toolkit
::
SockException
&
ex
)
override
{
// tcp断开或者shutdown导致的断开
// tcp断开或者shutdown导致的断开
onWebSocketException
(
ex
);
onWebSocketException
(
ex
);
}
}
...
@@ -350,7 +350,7 @@ private:
...
@@ -350,7 +350,7 @@ private:
// 握手成功之后的中途断开
// 握手成功之后的中途断开
_onRecv
=
nullptr
;
_onRecv
=
nullptr
;
if
(
auto
strong_ref
=
_weak_delegate
.
lock
())
{
if
(
auto
strong_ref
=
_weak_delegate
.
lock
())
{
strong_ref
->
onErr
(
ex
);
strong_ref
->
onErr
or
(
ex
);
}
}
return
;
return
;
}
}
...
...
src/Rtmp/RtmpPlayer.cpp
查看文件 @
cdf97e76
...
@@ -90,7 +90,7 @@ void RtmpPlayer::play(const string &url) {
...
@@ -90,7 +90,7 @@ void RtmpPlayer::play(const string &url) {
startConnect
(
host_url
,
port
,
play_timeout_sec
);
startConnect
(
host_url
,
port
,
play_timeout_sec
);
}
}
void
RtmpPlayer
::
onErr
(
const
SockException
&
ex
){
void
RtmpPlayer
::
onErr
or
(
const
SockException
&
ex
){
//定时器_pPlayTimer为空后表明握手结束了
//定时器_pPlayTimer为空后表明握手结束了
onPlayResult_l
(
ex
,
!
_play_timer
);
onPlayResult_l
(
ex
,
!
_play_timer
);
}
}
...
...
src/Rtmp/RtmpPlayer.h
查看文件 @
cdf97e76
...
@@ -50,7 +50,7 @@ protected:
...
@@ -50,7 +50,7 @@ protected:
//form Tcpclient
//form Tcpclient
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
buf
)
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
buf
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
err
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
err
)
override
;
void
onErr
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onErr
or
(
const
toolkit
::
SockException
&
ex
)
override
;
//from RtmpProtocol
//from RtmpProtocol
void
onRtmpChunk
(
RtmpPacket
::
Ptr
chunk_data
)
override
;
void
onRtmpChunk
(
RtmpPacket
::
Ptr
chunk_data
)
override
;
void
onStreamDry
(
uint32_t
stream_index
)
override
;
void
onStreamDry
(
uint32_t
stream_index
)
override
;
...
...
src/Rtmp/RtmpPusher.cpp
查看文件 @
cdf97e76
...
@@ -97,7 +97,7 @@ void RtmpPusher::publish(const string &url) {
...
@@ -97,7 +97,7 @@ void RtmpPusher::publish(const string &url) {
startConnect
(
host_url
,
port
);
startConnect
(
host_url
,
port
);
}
}
void
RtmpPusher
::
onErr
(
const
SockException
&
ex
){
void
RtmpPusher
::
onErr
or
(
const
SockException
&
ex
){
//定时器_pPublishTimer为空后表明握手结束了
//定时器_pPublishTimer为空后表明握手结束了
onPublishResult_l
(
ex
,
!
_publish_timer
);
onPublishResult_l
(
ex
,
!
_publish_timer
);
}
}
...
...
src/Rtmp/RtmpPusher.h
查看文件 @
cdf97e76
...
@@ -31,7 +31,7 @@ protected:
...
@@ -31,7 +31,7 @@ protected:
//for Tcpclient override
//for Tcpclient override
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
buf
)
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
buf
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
err
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
err
)
override
;
void
onErr
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onErr
or
(
const
toolkit
::
SockException
&
ex
)
override
;
//for RtmpProtocol override
//for RtmpProtocol override
void
onRtmpChunk
(
RtmpPacket
::
Ptr
chunk_data
)
override
;
void
onRtmpChunk
(
RtmpPacket
::
Ptr
chunk_data
)
override
;
...
...
src/Rtsp/RtspPlayer.cpp
查看文件 @
cdf97e76
...
@@ -131,7 +131,7 @@ void RtspPlayer::onRecv(const Buffer::Ptr& buf) {
...
@@ -131,7 +131,7 @@ void RtspPlayer::onRecv(const Buffer::Ptr& buf) {
}
}
}
}
void
RtspPlayer
::
onErr
(
const
SockException
&
ex
)
{
void
RtspPlayer
::
onErr
or
(
const
SockException
&
ex
)
{
//定时器_pPlayTimer为空后表明握手结束了
//定时器_pPlayTimer为空后表明握手结束了
onPlayResult_l
(
ex
,
!
_play_check_timer
);
onPlayResult_l
(
ex
,
!
_play_check_timer
);
}
}
...
...
src/Rtsp/RtspPlayer.h
查看文件 @
cdf97e76
...
@@ -84,7 +84,7 @@ protected:
...
@@ -84,7 +84,7 @@ protected:
/////////////TcpClient override/////////////
/////////////TcpClient override/////////////
void
onConnect
(
const
toolkit
::
SockException
&
err
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
err
)
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
buf
)
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
buf
)
override
;
void
onErr
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onErr
or
(
const
toolkit
::
SockException
&
ex
)
override
;
private
:
private
:
void
onPlayResult_l
(
const
toolkit
::
SockException
&
ex
,
bool
handshake_done
);
void
onPlayResult_l
(
const
toolkit
::
SockException
&
ex
,
bool
handshake_done
);
...
...
src/Rtsp/RtspPusher.cpp
查看文件 @
cdf97e76
...
@@ -118,7 +118,7 @@ void RtspPusher::onPublishResult_l(const SockException &ex, bool handshake_done)
...
@@ -118,7 +118,7 @@ void RtspPusher::onPublishResult_l(const SockException &ex, bool handshake_done)
}
}
}
}
void
RtspPusher
::
onErr
(
const
SockException
&
ex
)
{
void
RtspPusher
::
onErr
or
(
const
SockException
&
ex
)
{
//定时器_pPublishTimer为空后表明握手结束了
//定时器_pPublishTimer为空后表明握手结束了
onPublishResult_l
(
ex
,
!
_publish_timer
);
onPublishResult_l
(
ex
,
!
_publish_timer
);
}
}
...
...
src/Rtsp/RtspPusher.h
查看文件 @
cdf97e76
...
@@ -35,7 +35,7 @@ protected:
...
@@ -35,7 +35,7 @@ protected:
//for Tcpclient override
//for Tcpclient override
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
buf
)
override
;
void
onRecv
(
const
toolkit
::
Buffer
::
Ptr
&
buf
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
err
)
override
;
void
onConnect
(
const
toolkit
::
SockException
&
err
)
override
;
void
onErr
(
const
toolkit
::
SockException
&
ex
)
override
;
void
onErr
or
(
const
toolkit
::
SockException
&
ex
)
override
;
//RtspSplitter override
//RtspSplitter override
void
onWholeRtspPacket
(
Parser
&
parser
)
override
;
void
onWholeRtspPacket
(
Parser
&
parser
)
override
;
...
...
srt/SrtSession.cpp
查看文件 @
cdf97e76
...
@@ -100,7 +100,7 @@ void SrtSession::onRecv(const Buffer::Ptr &buffer) {
...
@@ -100,7 +100,7 @@ void SrtSession::onRecv(const Buffer::Ptr &buffer) {
}
}
if
(
_transport
)
{
if
(
_transport
)
{
_transport
->
setSession
(
s
hared_from_this
(
));
_transport
->
setSession
(
s
tatic_pointer_cast
<
Session
>
(
shared_from_this
()
));
}
}
InfoP
(
this
);
InfoP
(
this
);
}
}
...
...
tests/test_wsClient.cpp
查看文件 @
cdf97e76
...
@@ -32,7 +32,7 @@ protected:
...
@@ -32,7 +32,7 @@ protected:
DebugL
<<
pBuf
->
toString
();
DebugL
<<
pBuf
->
toString
();
}
}
//被动断开连接回调
//被动断开连接回调
void
onErr
(
const
SockException
&
ex
)
override
{
void
onErr
or
(
const
SockException
&
ex
)
override
{
WarnL
<<
ex
;
WarnL
<<
ex
;
}
}
//tcp连接成功后每2秒触发一次该事件
//tcp连接成功后每2秒触发一次该事件
...
...
webrtc/IceServer.cpp
查看文件 @
cdf97e76
...
@@ -520,7 +520,7 @@ namespace RTC
...
@@ -520,7 +520,7 @@ namespace RTC
return
;
return
;
this
->
selectedTuple
=
storedTuple
;
this
->
selectedTuple
=
storedTuple
;
this
->
lastSelectedTuple
=
st
oredTuple
->
shared_from_this
(
);
this
->
lastSelectedTuple
=
st
atic_pointer_cast
<
RTC
::
TransportTuple
>
(
storedTuple
->
shared_from_this
()
);
// Notify the listener.
// Notify the listener.
this
->
listener
->
OnIceServerSelectedTuple
(
this
,
this
->
selectedTuple
);
this
->
listener
->
OnIceServerSelectedTuple
(
this
,
this
->
selectedTuple
);
...
...
webrtc/WebRtcPlayer.cpp
查看文件 @
cdf97e76
...
@@ -47,7 +47,7 @@ void WebRtcPlayer::onStartWebRTC() {
...
@@ -47,7 +47,7 @@ void WebRtcPlayer::onStartWebRTC() {
playSrc
->
pause
(
false
);
playSrc
->
pause
(
false
);
_reader
=
playSrc
->
getRing
()
->
attach
(
getPoller
(),
true
);
_reader
=
playSrc
->
getRing
()
->
attach
(
getPoller
(),
true
);
weak_ptr
<
WebRtcPlayer
>
weak_self
=
static_pointer_cast
<
WebRtcPlayer
>
(
shared_from_this
());
weak_ptr
<
WebRtcPlayer
>
weak_self
=
static_pointer_cast
<
WebRtcPlayer
>
(
shared_from_this
());
weak_ptr
<
Session
>
weak_session
=
getSession
(
);
weak_ptr
<
Session
>
weak_session
=
static_pointer_cast
<
Session
>
(
getSession
()
);
_reader
->
setGetInfoCB
([
weak_session
]()
{
return
weak_session
.
lock
();
});
_reader
->
setGetInfoCB
([
weak_session
]()
{
return
weak_session
.
lock
();
});
_reader
->
setReadCB
([
weak_self
](
const
RtspMediaSource
::
RingDataType
&
pkt
)
{
_reader
->
setReadCB
([
weak_self
](
const
RtspMediaSource
::
RingDataType
&
pkt
)
{
auto
strong_self
=
weak_self
.
lock
();
auto
strong_self
=
weak_self
.
lock
();
...
...
webrtc/WebRtcSession.cpp
查看文件 @
cdf97e76
...
@@ -108,7 +108,7 @@ void WebRtcSession::onError(const SockException &err) {
...
@@ -108,7 +108,7 @@ void WebRtcSession::onError(const SockException &err) {
if
(
!
_transport
)
{
if
(
!
_transport
)
{
return
;
return
;
}
}
auto
self
=
s
hared_from_this
(
);
auto
self
=
s
tatic_pointer_cast
<
WebRtcSession
>
(
shared_from_this
()
);
auto
transport
=
std
::
move
(
_transport
);
auto
transport
=
std
::
move
(
_transport
);
getPoller
()
->
async
([
transport
,
self
]()
mutable
{
getPoller
()
->
async
([
transport
,
self
]()
mutable
{
//延时减引用,防止使用transport对象时,销毁对象
//延时减引用,防止使用transport对象时,销毁对象
...
...
webrtc/WebRtcTransport.cpp
查看文件 @
cdf97e76
...
@@ -230,7 +230,7 @@ void WebRtcTransport::sendSockData(const char *buf, size_t len, RTC::TransportTu
...
@@ -230,7 +230,7 @@ void WebRtcTransport::sendSockData(const char *buf, size_t len, RTC::TransportTu
Session
::
Ptr
WebRtcTransport
::
getSession
()
const
{
Session
::
Ptr
WebRtcTransport
::
getSession
()
const
{
auto
tuple
=
_ice_server
->
GetSelectedTuple
(
true
);
auto
tuple
=
_ice_server
->
GetSelectedTuple
(
true
);
return
tuple
?
tuple
->
shared_from_this
(
)
:
nullptr
;
return
tuple
?
static_pointer_cast
<
Session
>
(
tuple
->
shared_from_this
()
)
:
nullptr
;
}
}
void
WebRtcTransport
::
sendRtcpRemb
(
uint32_t
ssrc
,
size_t
bit_rate
)
{
void
WebRtcTransport
::
sendRtcpRemb
(
uint32_t
ssrc
,
size_t
bit_rate
)
{
...
@@ -1209,7 +1209,7 @@ void play_plugin(Session &sender, const WebRtcArgs &args, const WebRtcPluginMana
...
@@ -1209,7 +1209,7 @@ void play_plugin(Session &sender, const WebRtcArgs &args, const WebRtcPluginMana
MediaInfo
info
(
args
[
"url"
]);
MediaInfo
info
(
args
[
"url"
]);
bool
preferred_tcp
=
args
[
"preferred_tcp"
];
bool
preferred_tcp
=
args
[
"preferred_tcp"
];
auto
session_ptr
=
s
ender
.
shared_from_this
(
);
auto
session_ptr
=
s
tatic_pointer_cast
<
Session
>
(
sender
.
shared_from_this
()
);
Broadcast
::
AuthInvoker
invoker
=
[
cb
,
info
,
session_ptr
,
preferred_tcp
](
const
string
&
err
)
mutable
{
Broadcast
::
AuthInvoker
invoker
=
[
cb
,
info
,
session_ptr
,
preferred_tcp
](
const
string
&
err
)
mutable
{
if
(
!
err
.
empty
())
{
if
(
!
err
.
empty
())
{
cb
(
WebRtcException
(
SockException
(
Err_other
,
err
)));
cb
(
WebRtcException
(
SockException
(
Err_other
,
err
)));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论