]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7514: add youtube stream name
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 10 Mar 2015 23:04:25 +0000 (18:04 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:11 +0000 (12:47 -0500)
src/mod/formats/mod_vlc/mod_vlc.c

index 3c9800f0edc600357ecea121ba7a95aaef6864b9..4a5d77c329687350837a1b8f512eaeea68861ef3 100644 (file)
@@ -787,7 +787,7 @@ static switch_status_t vlc_file_open(switch_file_handle_t *handle, const char *p
                if ((ext = strrchr(path, '.')) && !strcasecmp(ext, ".mp4")) {
                        realpath = path;
                        path = switch_core_sprintf(context->pool, "#transcode{vcodec=h264,acodec=mp3}:std{access=file,mux=mp4,dst=%s}", path);
-               } else if (handle->stream_name && !strcasecmp(handle->stream_name, "rtmp")) {
+               } else if (handle->stream_name && (!strcasecmp(handle->stream_name, "rtmp") || !strcasecmp(handle->stream_name, "youtube"))) {
 
                        samplerate = 44100;
                        ab = 128;
@@ -2574,6 +2574,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_vlc_load)
        vlc_file_supported_formats[argc++] = "mov";
        vlc_file_supported_formats[argc++] = "m4v";
        vlc_file_supported_formats[argc++] = "rtmp";
+       vlc_file_supported_formats[argc++] = "youtube";
 
        file_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_FILE_INTERFACE);
        file_interface->interface_name = modname;