webui: /play - direct streaming for no user-agent providers, remove VLC for direct
(note vlc is fine with playlists and shows the correct title for matroska)
This commit is contained in:
parent
59206653fb
commit
ea0ea5861f
1 changed files with 2 additions and 2 deletions
|
@ -1029,8 +1029,8 @@ page_play_path_modify(http_connection_t *hc, const char *path, int *cut)
|
|||
const char *agent = http_arg_get(&hc->hc_args, "User-Agent");
|
||||
int direct = 0;
|
||||
|
||||
if (strncasecmp(agent, "VLC/", 4) == 0)
|
||||
direct = 1;
|
||||
if (agent == NULL)
|
||||
direct = 1; /* direct streaming for no user-agent providers */
|
||||
else if (strncasecmp(agent, "MPlayer ", 8) == 0)
|
||||
direct = 1;
|
||||
else if (strncasecmp(agent, "curl/", 5) == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue