My configure line for libvlc was:
./configure --prefix=/usr/ --disable-vlc --disable-lua --disable-mad --disable-swscale --disable-postproc --disable-xcb --disable-alsa
+Debian unstable now has VLC 2.0 packaged. I am now testing with the packaged version of the library.
+
The dialplan syntax I use are one of the following:
-<action application="playback" data="http://example.com/vlc.mp3"/>
+<action application="playback" data="vlc://http://example.com/vlc.mp3"/>
+<action application="playback" data="vlc://mms://example.com/mms_stream"/>
<action application="playback" data="vlc:///usr/local/freeswitch/sounds/vlc.mp3"/>
Development:
if(! strncmp(context->path, "http", 4)){
context->m = libvlc_media_new_location(inst, context->path);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "VLC Path is http %s\n", context->path);
+ } else if (! strncmp(context->path, "mms", 3)){
+ context->m = libvlc_media_new_path(inst, context->path);
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "VLC Path is mms %s\n", context->path);
} else if (! strncmp(context->path, "/", 1)){
context->m = libvlc_media_new_path(inst, context->path);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "VLC Path is file %s\n", context->path);
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
vlc_file_supported_formats[0] = "vlc";
- vlc_file_supported_formats[1] = "http";
file_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_FILE_INTERFACE);
file_interface->interface_name = modname;