Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
90818f13
提交
90818f13
authored
2月 13, 2014
作者:
liyang
提交者:
Michael Jerris
5月 28, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-7500: allow using the video thread externally - e.g. non rtp based video
上级
e80b40f9
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
11 行增加
和
10 行删除
+11
-10
switch_core_media.h
src/include/switch_core_media.h
+6
-0
switch_core_media.c
src/switch_core_media.c
+5
-10
没有找到文件。
src/include/switch_core_media.h
浏览文件 @
90818f13
...
...
@@ -146,6 +146,7 @@ typedef struct switch_core_media_params_s {
switch_core_media_dtmf_t
dtmf_type
;
switch_payload_t
cng_pt
;
/* a core_video_thread will be started automatically
when uses rtp based media,
external_video_source should be set to SWITCH_TRUE and
...
...
@@ -153,6 +154,7 @@ typedef struct switch_core_media_params_s {
should be explicitly called to start the video thread
if uses the media handle for non-rtp based media
*/
switch_bool_t
external_video_source
;
}
switch_core_media_params_t
;
...
...
@@ -261,7 +263,11 @@ SWITCH_DECLARE(void) switch_core_media_deinit(void);
SWITCH_DECLARE
(
void
)
switch_core_media_set_stats
(
switch_core_session_t
*
session
);
SWITCH_DECLARE
(
void
)
switch_core_session_wake_video_thread
(
switch_core_session_t
*
session
);
SWITCH_DECLARE
(
void
)
switch_core_session_clear_crypto
(
switch_core_session_t
*
session
);
<<<<<<<
HEAD
SWITCH_DECLARE
(
switch_status_t
)
switch_core_media_start_video_thread
(
switch_core_session_t
*
session
);
=======
SWITCH_DECLARE
(
switch_status_t
)
start_core_video_thread
(
switch_core_session_t
*
session
);
>>>>>>>
allow
using
the
video
thread
externally
-
e
.
g
.
non
rtp
based
video
SWITCH_DECLARE
(
switch_status_t
)
switch_core_session_get_payload_code
(
switch_core_session_t
*
session
,
switch_media_type_t
type
,
...
...
src/switch_core_media.c
浏览文件 @
90818f13
...
...
@@ -4541,7 +4541,7 @@ static void *SWITCH_THREAD_FUNC video_helper_thread(switch_thread_t *thread, voi
}
static
switch_status_t
start_video_thread
(
switch_core_session_t
*
session
)
SWITCH_DECLARE
(
switch_status_t
)
switch_core_media_
start_video_thread
(
switch_core_session_t
*
session
)
{
switch_threadattr_t
*
thd_attr
=
NULL
;
switch_memory_pool_t
*
pool
=
switch_core_session_get_pool
(
session
);
...
...
@@ -4576,11 +4576,6 @@ static switch_status_t start_video_thread(switch_core_session_t *session)
return
SWITCH_STATUS_SUCCESS
;
}
SWITCH_DECLARE
(
switch_status_t
)
switch_core_media_start_video_thread
(
switch_core_session_t
*
session
)
{
return
start_video_thread
(
session
);
}
//?
#define RA_PTR_LEN 512
SWITCH_DECLARE
(
switch_status_t
)
switch_core_media_proxy_remote_addr
(
switch_core_session_t
*
session
,
const
char
*
sdp_str
)
...
...
@@ -4712,7 +4707,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_proxy_remote_addr(switch_core_
!
switch_channel_test_flag
(
session
->
channel
,
CF_WEBRTC
))
{
/* Reactivate the NAT buster flag. */
switch_rtp_set_flag
(
v_engine
->
rtp_session
,
SWITCH_RTP_FLAG_AUTOADJ
);
start_video_thread
(
session
);
s
witch_core_media_s
tart_video_thread
(
session
);
}
if
(
switch_media_handle_test_media_flag
(
smh
,
SCMF_AUTOFIX_TIMING
))
{
...
...
@@ -5686,7 +5681,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
v_engine
->
cur_payload_map
->
remote_sdp_port
,
v_engine
->
cur_payload_map
->
agreed_pt
);
start_video_thread
(
session
);
s
witch_core_media_s
tart_video_thread
(
session
);
switch_rtp_set_default_payload
(
v_engine
->
rtp_session
,
v_engine
->
cur_payload_map
->
agreed_pt
);
}
}
...
...
@@ -5719,7 +5714,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
!
((
val
=
switch_channel_get_variable
(
session
->
channel
,
"disable_rtp_auto_adjust"
))
&&
switch_true
(
val
)))
{
/* Reactivate the NAT buster flag. */
switch_rtp_set_flag
(
v_engine
->
rtp_session
,
SWITCH_RTP_FLAG_AUTOADJ
);
start_video_thread
(
session
);
s
witch_core_media_s
tart_video_thread
(
session
);
}
}
...
...
@@ -5819,7 +5814,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
switch_rtp_set_payload_map
(
v_engine
->
rtp_session
,
&
v_engine
->
payload_map
);
start_video_thread
(
session
);
s
witch_core_media_s
tart_video_thread
(
session
);
switch_channel_set_flag
(
session
->
channel
,
CF_VIDEO
);
if
((
ssrc
=
switch_channel_get_variable
(
session
->
channel
,
"rtp_use_video_ssrc"
)))
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论