1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine api for srs-librtmp

This commit is contained in:
winlin 2017-02-28 19:46:09 +08:00
parent af73e8ee65
commit c849010fe2
6 changed files with 245 additions and 212 deletions

View file

@ -72,7 +72,9 @@ int main(int argc, char** argv)
exit(-1);
}
rtmp = srs_rtmp_create2(argv[1]);
char url[512];
snprintf(url, sizeof(url), "%s/%s", argv[1], "livestream");
rtmp = srs_rtmp_create((const char*)url);
srs_human_trace("bandwidth check/test url: %s", argv[1]);