From c6a68234cbd33c4b66ae6d8e8fdef2f5984b5818 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 26 Jul 2020 15:52:36 +0800 Subject: [PATCH] RTC: Fix publish page --- trunk/conf/rtc.conf | 1 - trunk/research/players/js/winlin.utility.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/trunk/conf/rtc.conf b/trunk/conf/rtc.conf index f628813d9..608ba3798 100644 --- a/trunk/conf/rtc.conf +++ b/trunk/conf/rtc.conf @@ -28,7 +28,6 @@ rtc_server { # The * means retrieving server IP automatically, from all network interfaces, # @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124 candidate $CANDIDATE; - #candidate 10.0.0.123; } vhost __defaultVhost__ { diff --git a/trunk/research/players/js/winlin.utility.js b/trunk/research/players/js/winlin.utility.js index 1a2307a38..a1aeec6e5 100644 --- a/trunk/research/players/js/winlin.utility.js +++ b/trunk/research/players/js/winlin.utility.js @@ -5,7 +5,7 @@ * depends: jquery1.10 * https://gitee.com/winlinvip/codes/rpn0c2ewbomj81augzk4y59 * @see: http://blog.csdn.net/win_lin/article/details/17994347 - * v 1.0.20 + * v 1.0.21 */ /** @@ -339,7 +339,7 @@ function parse_rtmp_url(rtmp_url) { } else if (schema === 'rtmp') { port = 1935; } else if (schema === 'webrtc' || schema === 'rtc') { - port = 1985; + port = (window.location.href.indexOf('https://')==0)? 443:1985; } }