正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
@@ -154,13 +154,17 @@ | @@ -154,13 +154,17 @@ | ||
154 | srs_player_url += "vhost=" + srs_get_player_publish_vhost(ret.vhost) + "&port=" + ret.port + "&app=" + ret.app + "&stream=" + ret.stream; | 154 | srs_player_url += "vhost=" + srs_get_player_publish_vhost(ret.vhost) + "&port=" + ret.port + "&app=" + ret.app + "&stream=" + ret.stream; |
155 | srs_player_url += "&autostart=true"; | 155 | srs_player_url += "&autostart=true"; |
156 | 156 | ||
157 | + var srs_player_rt_url = "http://" + query.host + query.dir + "/srs_player.html?"; | ||
158 | + srs_player_rt_url += "vhost=" + ret.vhost + "&port=" + ret.port + "&app=" + ret.app + "&stream=" + ret.stream; | ||
159 | + srs_player_rt_url += "&autostart=true"; | ||
160 | + | ||
157 | var jwplayer_url = "http://" + query.host + query.dir + "/jwplayer6.html?"; | 161 | var jwplayer_url = "http://" + query.host + query.dir + "/jwplayer6.html?"; |
158 | jwplayer_url += "vhost=" + srs_get_player_publish_vhost(ret.vhost) + "&port=" + ret.port + "&app=" + ret.app + "&stream=" + ret.stream; | 162 | jwplayer_url += "vhost=" + srs_get_player_publish_vhost(ret.vhost) + "&port=" + ret.port + "&app=" + ret.app + "&stream=" + ret.stream; |
159 | jwplayer_url += "&hls_autostart=true"; | 163 | jwplayer_url += "&hls_autostart=true"; |
160 | 164 | ||
161 | var hls_url = "http://" + ret.server + ":" + query.http_port + "/" + ret.app + "/" + ret.stream + ".m3u8"; | 165 | var hls_url = "http://" + ret.server + ":" + query.http_port + "/" + ret.app + "/" + ret.stream + ".m3u8"; |
162 | 166 | ||
163 | - $("#txt_play_realtime").text("RTMP低延时(点击打开)").attr("href", url).attr("target", "_blank"); | 167 | + $("#txt_play_realtime").text("RTMP低延时(点击打开)").attr("href", srs_player_rt_url).attr("target", "_blank"); |
164 | $("#txt_play_url").text("RTMP已转码(点击打开)").attr("href", srs_player_url).attr("target", "_blank"); | 168 | $("#txt_play_url").text("RTMP已转码(点击打开)").attr("href", srs_player_url).attr("target", "_blank"); |
165 | $("#txt_play_hls").text("HLS-m3u8(点击打开或右键复制)").attr("href", hls_url).attr("target", "_blank"); | 169 | $("#txt_play_hls").text("HLS-m3u8(点击打开或右键复制)").attr("href", hls_url).attr("target", "_blank"); |
166 | $("#txt_play_jwplayer").text("HLS-JWPlayer(点击打开)").attr("href", jwplayer_url).attr("target", "_blank"); | 170 | $("#txt_play_jwplayer").text("HLS-JWPlayer(点击打开)").attr("href", jwplayer_url).attr("target", "_blank"); |
-
请 注册 或 登录 后发表评论