ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.16k stars 5.31k forks source link

How to modify the default stream and client number in the console console #3603

Closed lck1115 closed 1 year ago

lck1115 commented 1 year ago

I have checked the documentation here: 'https://ossrs.io/lts/zh-cn/docs/v5/doc/http-api#streams'

According to the information provided, it is possible to modify the settings. However, I couldn't find where to modify the configuration in the console.

TRANS_BY_GPT3

linkewei0580 commented 1 year ago

Translate to English:

Change the JS code in the webpage ./trunk/objs/nginx/html/console/js/srs.console.js, find the following code url+='&count=200'; is what I added.

streams_get: function(success) {
    var url = $sc_server.jsonp("/api/v1/streams/");
    url +='&count=200';
    $http.jsonp(url).success(success);
},
streams_get2: function(id, success) {
    var url = $sc_server.jsonp("/api/v1/streams/" + id);
    $http.jsonp(url).success(success);
},
clients_get: function(success) {
    var url = $sc_server.jsonp("/api/v1/clients/");
    url +='&count=200';
    $http.jsonp(url).success(success);
},

TRANS_BY_GPT3

lck1115 commented 1 year ago

Thank you, master. Done.

TRANS_BY_GPT3