]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
the http prefix should not be listed as a supported prefix since this could cause...
authorWilliam King <william.king@quentustech.com>
Thu, 1 Mar 2012 18:21:11 +0000 (10:21 -0800)
committerWilliam King <william.king@quentustech.com>
Thu, 1 Mar 2012 18:21:11 +0000 (10:21 -0800)
src/mod/formats/mod_vlc/README
src/mod/formats/mod_vlc/mod_vlc.c

index 16db672c597e72907c67ed96f2c405361b1b3453..4ffce5d17458d77e1931f3c191fcdf5c39e69789 100644 (file)
@@ -11,8 +11,11 @@ sudo apt-get install libavcodec-dev libavutil-dev libavformat-dev liba52-0.7.4-d
 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:
index 078152156a5685e54569354ffe74ecbee2206900..fdcb64ed8d4d502c838a8c4cd24565f9756174d2 100644 (file)
@@ -101,6 +101,9 @@ static switch_status_t vlc_file_open(switch_file_handle_t *handle, const char *p
        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);
@@ -180,7 +183,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_vlc_load)
        *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;