From 6db97cae7e30dfeebcdbf6e800edf3a7221f100c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 10 Mar 2015 18:04:25 -0500 Subject: [PATCH] FS-7514: add youtube stream name --- src/mod/formats/mod_vlc/mod_vlc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/formats/mod_vlc/mod_vlc.c b/src/mod/formats/mod_vlc/mod_vlc.c index 3c9800f0ed..4a5d77c329 100644 --- a/src/mod/formats/mod_vlc/mod_vlc.c +++ b/src/mod/formats/mod_vlc/mod_vlc.c @@ -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;