mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine detect tool, support atc stream.
This commit is contained in:
parent
17cb8c4550
commit
55b99c90c7
4 changed files with 20 additions and 9 deletions
|
@ -34,9 +34,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include <srs_app_reload.hpp>
|
||||
|
||||
// default vhost for rtmp
|
||||
#define RTMP_VHOST_DEFAULT "__defaultVhost__"
|
||||
|
||||
#define SRS_LOCALHOST "127.0.0.1"
|
||||
#define SRS_CONF_DEFAULT_PID_FILE "./objs/srs.pid"
|
||||
#define SRS_DEFAULT_CONF "conf/srs.conf"
|
||||
|
|
|
@ -263,7 +263,12 @@ int srs_connect_app(srs_rtmp_t rtmp)
|
|||
Context* context = (Context*)rtmp;
|
||||
|
||||
string tcUrl = "rtmp://";
|
||||
tcUrl += context->vhost;
|
||||
// TODO: FIXME: extrace shared method
|
||||
if (context->vhost == RTMP_VHOST_DEFAULT) {
|
||||
tcUrl += context->ip;
|
||||
} else {
|
||||
tcUrl += context->vhost;
|
||||
}
|
||||
tcUrl += ":";
|
||||
tcUrl += context->port;
|
||||
tcUrl += "/";
|
||||
|
|
|
@ -31,6 +31,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include <string>
|
||||
|
||||
// default vhost for rtmp
|
||||
#define RTMP_VHOST_DEFAULT "__defaultVhost__"
|
||||
|
||||
#define RTMP_DEFAULT_PORT "1935"
|
||||
|
||||
// the default chunk size for system.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue