mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add librtmp demo srs_publish
This commit is contained in:
parent
aa5d28ed85
commit
713b05541b
12 changed files with 172 additions and 34 deletions
|
@ -116,7 +116,7 @@ int SrsRequest::discovery_app()
|
|||
srs_verbose("discovery vhost=%s", vhost.c_str());
|
||||
}
|
||||
|
||||
port = RTMP_DEFAULT_PORTS;
|
||||
port = RTMP_DEFAULT_PORT;
|
||||
if ((pos = vhost.find(":")) != std::string::npos) {
|
||||
port = vhost.substr(pos + 1);
|
||||
vhost = vhost.substr(0, pos);
|
||||
|
|
|
@ -29,8 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
*/
|
||||
#include <srs_core.hpp>
|
||||
|
||||
#define RTMP_DEFAULT_PORT 1935
|
||||
#define RTMP_DEFAULT_PORTS "1935"
|
||||
#define RTMP_DEFAULT_PORT "1935"
|
||||
|
||||
// the default chunk size for system.
|
||||
#define SRS_CONF_DEFAULT_CHUNK_SIZE 60000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue