-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version Query API: The official website provides an API to query the latest stable version. SRS logs prompt for an upgrade. #2424
Comments
Prepare to disable this feature for two reasons:
Taking the support for the RTSP protocol as an example, initially, we did not support RTSP because internet live streaming primarily used RTMP and HLS. However, embedded devices and cameras preferred RTSP. Of course, now many are starting to support the WebRTC protocol, such as Google cameras. As the project evolved, the community began to provide feedback on the need for RTSP support, so we added this feature. Later, we discovered that security cameras in China do not actually push RTSP streams, rendering our support ineffective. Consequently, we shifted our focus to supporting the GB protocol. I have detailed the reasons for this update in issue #2304. In fact, as we deepened our understanding of the business, we realized that some older drones support RTSP streaming. Of course, newer drones have started to support WebRTC streaming. However, this does not necessarily mean that we have decided to support RTSP streaming. What I want to convey is that the open-source community does not need to decide on supporting a feature based solely on the number of users utilizing it. In fact, the needs of even a minority can be of great value. Sometimes, niche requirements also need to be supported. Therefore, we no longer need to proactively report on feature usage to determine which features SRS will support in the future, so we will disable reporting by default. #3990
|
The current version release of SRS is available on the official website ossrs.net and tags. The version information is divided into:
3.0.161
, corresponds to the installation package SRS-CentOS7-x86_64-3.0.160.zip. The program also prints this version number, for example,./objs/srs -v
.v3.0-r4
, corresponds to the release information in CHANGELOG, as well as the Docker image ossrs/srs:v3.0-r4.4.0.123
, corresponds to the Docker image ossrs/srs:v4.0.123.So here comes the question:
This needs to be queried through the official website's API in order to provide a better answer in the program or webpage.
version query API
to check the latest released version.version query API
and log a message if the version is not the latest.version query API
to check for updates.API
The SRS official website provides an API to query version information, defined as follows:
Request parameters:
v2.0.266
,v3.0.160
, orv3
.new Date().getTime()
.Response data is a JSON object with the following fields:
v2.0.272
v2.0-r8
ossrs/srs:v2.0-r8
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:v2.0-r8
3.0.161
v3.0-r5
ossrs/srs:v3.0-r5
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:v3.0-r5
For example, if you don't have SRS and want to know which version to use, you can directly request this API:
match_version
andstable_version
are stable versions3.0.161
.For example, if you are running SRS 2.0, SRS will request this API:
v2.0.266
, and there is a stable versionv2.0.272
available, recommended for upgrade.v3.0.161
, and you can also choose to upgrade to this version. Note that there is no version 4.0, so it is not recommended to upgrade to 4.0.For example, if running SRS 4.0, the request and response are as follows:
v4.0.123
. Although this version is not as stable as 3.0, downgrading is not recommended. Therefore, it is recommended to upgrade to 4.0 instead of 3.0.3.0.161
, but downgrading to 3.0 may result in unsupported features, so careful consideration is advised.Config
Configuration method, default enabled:
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: