support rtp protocol

This commit is contained in:
Luke Pulverenti
2017-01-18 01:05:33 -05:00
parent 16bd1df08a
commit 80a9bbf5ef
3 changed files with 7 additions and 20 deletions

View File

@@ -8,25 +8,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
{
public static string GetInputArgument(List<string> inputFiles, MediaProtocol protocol)
{
if (protocol == MediaProtocol.Http)
{
var url = inputFiles.First();
return string.Format("\"{0}\"", url);
}
if (protocol == MediaProtocol.Rtmp)
{
var url = inputFiles.First();
return string.Format("\"{0}\"", url);
}
if (protocol == MediaProtocol.Rtsp)
{
var url = inputFiles.First();
return string.Format("\"{0}\"", url);
}
if (protocol == MediaProtocol.Udp)
if (protocol != MediaProtocol.File)
{
var url = inputFiles.First();