Preview bugfixes mp3, srt.

This commit is contained in:
wouter spruit 2014-09-01 14:47:19 +02:00
parent bea3ca503e
commit 315fb0f40e
2 changed files with 7 additions and 1 deletions

View file

@ -20,7 +20,7 @@ namespace Mist {
capa["socket"] = "http_progressive_mp3"; capa["socket"] = "http_progressive_mp3";
capa["codecs"][0u][0u].append("MP3"); capa["codecs"][0u][0u].append("MP3");
capa["methods"][0u]["handler"] = "http"; capa["methods"][0u]["handler"] = "http";
capa["methods"][0u]["type"] = "mp3"; capa["methods"][0u]["type"] = "html5/audio/mp3";
capa["methods"][0u]["priority"] = 8ll; capa["methods"][0u]["priority"] = 8ll;
cfg->addBasicConnectorOptions(capa); cfg->addBasicConnectorOptions(capa);

View file

@ -30,6 +30,12 @@ namespace Mist {
capa["url_handler"] = "http"; capa["url_handler"] = "http";
capa["url_type"] = "subtitle"; capa["url_type"] = "subtitle";
capa["socket"] = "http_srt"; capa["socket"] = "http_srt";
capa["codecs"][0u][0u].append("srt");
capa["methods"][0u]["handler"] = "http";
capa["methods"][0u]["type"] = "html5/text/plain";
capa["methods"][0u]["priority"] = 8ll;
cfg->addBasicConnectorOptions(capa); cfg->addBasicConnectorOptions(capa);
config = cfg; config = cfg;