From 1b34f4584e95a29dc132f859775ba86439c3effe Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 16 Feb 2011 23:24:58 +0100 Subject: [PATCH 1/2] RTMP edits, HTTP edits... --- Connector_HTTP/main.cpp | 26 ++++++++++++++------------ Connector_RTMP/chunkstream.cpp | 4 ++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Connector_HTTP/main.cpp b/Connector_HTTP/main.cpp index 7f2ad113..824bc311 100644 --- a/Connector_HTTP/main.cpp +++ b/Connector_HTTP/main.cpp @@ -50,20 +50,22 @@ int FlvToFragNum( FLV_Pack * tag ) { std::string BuildManifest( std::string MetaData, std::string MovieId, int CurrentMediaTime ) { Interface * temp = new Interface; - std::string Result="\n"; - Result += " video/mp4\n"; - Result += " live\n"; - Result += " streaming\n"; - Result += " \n"; - Result += base64_encode(temp->GenerateLiveBootstrap(CurrentMediaTime)); - Result += " \n"; - Result += " \n\n"; + Result += ""; Result += MovieId; - Result += "/\">"; - Result += " \n"; + Result += "\nvideo/mp4\n"; + Result += "live\n"; + Result += "streaming\n"; + Result += ""; + Result += base64_encode(temp->GenerateLiveBootstrap(CurrentMediaTime)); + Result += "\n"; + Result += "\n"; + Result += ""; Result += base64_encode(MetaData); - Result += " \n"; - Result += " \n"; + Result += "\n"; + Result += "\n"; Result += "\n"; delete temp; return Result; diff --git a/Connector_RTMP/chunkstream.cpp b/Connector_RTMP/chunkstream.cpp index d27cbd45..5681277b 100644 --- a/Connector_RTMP/chunkstream.cpp +++ b/Connector_RTMP/chunkstream.cpp @@ -11,8 +11,8 @@ unsigned int getNowMS(){ } -unsigned int chunk_rec_max = 128; -unsigned int chunk_snd_max = 128; +unsigned int chunk_rec_max = 102400; +unsigned int chunk_snd_max = 102400; unsigned int rec_window_size = 0xFA00; unsigned int snd_window_size = 1024*500; unsigned int rec_window_at = 0; From e5d774a5ee1a364fdd85974849b988eb90c22117 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 16 Feb 2011 23:25:42 +0100 Subject: [PATCH 2/2] Typo --- Connector_HTTP/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connector_HTTP/main.cpp b/Connector_HTTP/main.cpp index 824bc311..4f436a24 100644 --- a/Connector_HTTP/main.cpp +++ b/Connector_HTTP/main.cpp @@ -50,7 +50,7 @@ int FlvToFragNum( FLV_Pack * tag ) { std::string BuildManifest( std::string MetaData, std::string MovieId, int CurrentMediaTime ) { Interface * temp = new Interface; - sstd::string Result="\n\n"; + std::string Result="\n\n"; Result += ""; Result += MovieId; Result += "\nvideo/mp4\n";