Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
fea66c15
提交
fea66c15
authored
2月 24, 2012
作者:
William King
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add a README and turn off verbose debugging by default.
上级
77f3bd24
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
2 行删除
+27
-2
README
src/mod/formats/mod_vlc/README
+23
-0
mod_vlc.c
src/mod/formats/mod_vlc/mod_vlc.c
+4
-2
没有找到文件。
src/mod/formats/mod_vlc/README
0 → 100644
浏览文件 @
fea66c15
You HAVE to have libvlc version 1.2 or later for mod_vlc to work. Both for the reason that
libvlc version 1.2 is LGPL and because there are new api's in 1.2 that are required.
Building and usage:
I used git://git.videolan.org/vlc.git to get the latest version of libvlc.
On debian I had to install:
sudo apt-get install libavcodec-dev libavutil-dev libavformat-dev liba52-0.7.4-dev
My configure line for libvlc was:
./configure --prefix=/usr/ --disable-vlc --disable-lua --disable-mad --disable-swscale --disable-postproc --disable-xcb --disable-alsa
The dialplan syntax I use are one of the following:
<action application="playback" data="http://example.com/vlc.mp3"/>
<action application="playback" data="vlc:///usr/local/freeswitch/sounds/vlc.mp3"/>
Development:
If you are having troubles, first change the value of vlc_args in mod_vlc.c.
The documentation for the libvlc library is located at:
http://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc.html
\ No newline at end of file
src/mod/formats/mod_vlc/mod_vlc.c
浏览文件 @
fea66c15
...
...
@@ -46,6 +46,9 @@
static
char
*
vlc_file_supported_formats
[
SWITCH_MAX_CODECS
]
=
{
0
};
/* Change valud to -vvv for vlc related debug. Be careful since vlc is at least as verbose as FS about logging */
const
char
*
vlc_args
=
""
;
libvlc_instance_t
*
inst
;
struct
vlc_file_context
{
...
...
@@ -172,7 +175,6 @@ static switch_status_t vlc_file_close(switch_file_handle_t *handle)
SWITCH_MODULE_LOAD_FUNCTION
(
mod_vlc_load
)
{
switch_file_interface_t
*
file_interface
;
const
char
*
args
=
"-vvv"
;
/* connect my internal structure to the blank pointer passed to me */
*
module_interface
=
switch_loadable_module_create_module_interface
(
pool
,
modname
);
...
...
@@ -188,7 +190,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_vlc_load)
file_interface
->
file_read
=
vlc_file_read
;
/* load the vlc engine. */
inst
=
libvlc_new
(
1
,
&
args
);
inst
=
libvlc_new
(
1
,
&
vlc_
args
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"Initialized VLC instance
\n
"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论