Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Oct 31, 2023
1 parent 61da052 commit fe07bba
Show file tree
Hide file tree
Showing 24 changed files with 151 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Ultimately, WebRTC is not designed for live streaming, the only scenario to use

For live streaming, rather than modern and new tech stack, it’s actually disaster to use WebRTC in mobile H5, and unnecessary for mobile native players.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/22-02-17-WebRTC-Live)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ to contact us.

In this tutorial, you build a video streaming service only by 1-Click, but with powerful features like authentication,
SRT and WebRTC etc. If you have further questions about SRS, [the wiki](/docs/v4/doc/introduction) is a good place to
start. If you'd like to discuss with SRS, you are welcome to [discord](https://discord.gg/yZ4BnPmHAd).
start.

## Contact

If you'd like to discuss with SRS, you are welcome to [discord](https://discord.gg/yZ4BnPmHAd).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/22-04-09-SRS-Stack-Tutorial)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ to contact us.
## Conclusion

In this tutorial, you set-up the DNS A Record, downloaded SSL Certificates for your domain, configured Nginx to apply
the certificate, and set-up automatic renewal. If you have further questions, please contact us by
[discord](https://discord.gg/yZ4BnPmHAd).
the certificate, and set-up automatic renewal.

## Contact

If you have further questions, please contact us by [discord](https://discord.gg/yZ4BnPmHAd).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/22-04-12-SRS-Stack-HTTPS)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,11 @@ to contact us.
## Conclusion

In this tutorial you’ve learned to set up the SRS WordPress plugin and embedded a stream on your post or page. If you
have further questions about SRS, [the wiki](/docs/v4/doc/introduction) is a good place to start. If
you’d like to discuss with SRS, you are welcome to [discord](https://discord.gg/yZ4BnPmHAd).
have further questions about SRS, [the wiki](/docs/v4/doc/introduction) is a good place to start.

## Contact

If you’d like to discuss with SRS, you are welcome to [discord](https://discord.gg/yZ4BnPmHAd).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/22-04-15-WordPress-Plugin)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ to contact us.

In this tutorial, you create a live streaming service with aaPanel, publish a stream with OBS and then play it through a
browser or WordPress. If you have further questions about SRS, [the wiki](/docs/v4/doc/introduction)
is a good place to start. If you'd like to discuss with SRS community members, you are welcome to join us on [discord](https://discord.gg/yZ4BnPmHAd).
is a good place to start.

## Contact

If you'd like to discuss with SRS community members, you are welcome to join us on [discord](https://discord.gg/yZ4BnPmHAd).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/22-04-29-BT-aaPanel)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ algorithms, better performance on weak networks, client SDKs for all platforms,
to view the online demo. If you have any questions, please join our [Discord](https://discord.gg/DCCH6HyhuT) channel
to contact us.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/22-06-30-Video-Chat-Live)


Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ Here, some of SRT's most troublesome problems are the high retransmission rate a
1. Addition of the BBR congestion control algorithm: The native SRT congestion control is weak, and the evaluated bandwidth fluctuates greatly, both of which are resolved by adding the BBR congestion control algorithm.
1. SRT multi-linkage transfer improved with bandwidth aggregation: The auto mode for live streaming is added to SRT, in addition to its native backup and broadcast modes. In this way, the bandwidths of multiple ENIs are aggregated for live streaming, with smart and dynamic linkage selection.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/22-07-01-Coroutine-Native-SRT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ to contact us.

## Future Plan

We're developing SRS 5.0, and we might close features at the end of 2022, so welcome to join the SRS community
by [discord](https://discord.gg/yZ4BnPmHAd).
We're developing SRS 5.0, and we might close features at the end of 2022.

## Contact

Welcome to join the SRS community by [discord](https://discord.gg/yZ4BnPmHAd).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2022-09-05-WebRTC-Over-TCP)

Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ to contact us.
## Conclusion

DASH is a relative new and good live streaming protocol. After about two years, SRS 5.0 has always been fixing bug and
now we think it's ready and stable to use DASH in your online product if you want. If you'd like to discuss with SRS,
you are welcome to [discord](https://discord.gg/yZ4BnPmHAd)
now we think it's ready and stable to use DASH in your online product if you want.

## Contact

If you'd like to discuss with SRS, you are welcome to [discord](https://discord.gg/yZ4BnPmHAd)

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2022-11-25-DASH-Issues)

Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ There are some developers that contributed to SRS HEVC feature:

Really appreciated for [mpegts.js](https://github.com/xqq/mpegts.js), which supports HEVC for HTTP-FLV and HTTP-TS.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/23-03-07-Lets-Do-H265-Live-Streaming)
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ GitHub Copilot and I wrote this article.

The code of this feature was written by SRS developers and GitHub Copilot.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/23-04-02-Secure-Your-HTTP-API)
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Although there are still some works to do, it's already a big step for HEVC live

We wrote this article with the help of GitHub Copilot.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/23-04-08-Push-HEVC-via-RTMP-by-OBS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ By adhering to these instructions, you can effectively live stream to YouTube vi
This technique offers a practical alternative to OBS, enabling you to harness the power of WebRTC, SRS, and FFmpeg
for a smooth and efficient streaming experience.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-05-16-Stream-YouTube-Using-Web-Browser)
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ to contact us.
Thanks for watching this video on SRS (Simple Realtime Server). If you found it helpful, please give it a thumbs up
and subscribe to our channel for more short videos like this. See you in the next one!

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-05-22-Unlock-the-Power-of-SRS-Real-World-Use-Cases)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ In this tutorial, we explored the ultra-low latency live streaming capabilities
demonstrated how to set it up with SRS in just three simple steps. OBS WHIP significantly reduces
latency, making it an excellent option for low-latency live streaming.

## Contact

If you're interested in discussing SRS, feel free to join us on [Discord](https://discord.gg/yZ4BnPmHAd).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-06-15-Experience-Ultra-Low-Latency-Live-Streaming-with-OBS-WHIP)
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ straightforward solution for those building their own streaming services. By fol
in this guide, you can ensure that your live streaming service remains secure and accessible only to
authorized users.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-08-29-Ensuring-Authentication-for-Live-Streaming-Publishing)
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ SRS Stack makes this process simple and efficient, allowing you to focus on crea
care of the technical aspects. By following the steps outlined in this blog, you can easily set up live streaming
on multiple platforms like YouTube, Twitch, and Facebook, and take your content to the next level.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-09-09-Multi-Platform-Streaming)
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ downloading your live streams is simplified, making it easy for you to manage an
content. By following the steps outlined in this blog, you can quickly and efficiently record your live
streams and make them available for your audience to access whenever they want.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-09-10-Record-Live-Streaming)
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ inexperienced streamers and enabling 24/7 streaming, virtual live events offer n
various industries. SRS Stack simplifies the process of creating and broadcasting these events, catering
to the increasing demand for such interactive experiences in today's fast-paced world.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-09-11-Virtual-Live-Events)
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ been easier, thanks to SRS Stack. With just a few simple steps, you can set up y
live to various platforms, enhancing your live streaming experience. So, go ahead and give SRS Stack a try, and
enjoy the convenience and flexibility it offers for your IP camera streaming needs.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-10-11-Stream-IP-Camera-Events)
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ covered setting up SRS Stack and FFmpeg, creating a configuration file, and push
SRS Stack. Monitoring and adjusting settings is crucial for optimal viewer experience, and transcoding can also
convert high-resolution streams to lower resolutions for mobile devices.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/2023-10-21-Live-Transcoding)
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ and SRS media server, making it simpler for users to benefit from the bandwidth
By following the steps in this guide, you can create your own live streaming platform with HEVC and RTMP, and
play the streams using HTML5 players like mpegts.js, or VLC and ffplay for HLS streaming.

## Contact

Welcome for more discussion at [discord](https://discord.gg/bQUPDRqy79).

![](https://ossrs.net/gif/v1/sls.gif?site=ossrs.io&path=/lts/blog-en/23-10-26-Unlock-the-Power-of-HEVC-via-RTMP)
41 changes: 41 additions & 0 deletions i18n/zh-cn/docusaurus-plugin-content-pages/faq-srs-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,20 @@ SRS Stack的使用说明,请参考视频[SRS Stack:起步、购买和入门]

## HTTP Callback

HTTP回调是指在Docker容器中运行的SRS Stack,向target URL发起HTTP请求。例如,以下过程说明了当OBS发送RTMP流时,
SRS Stack会给你的服务器发起一个请求,你可以通过target URL来配置你的服务器地址。

```bash
+-----------------------+
+ +
+ +-----------+ + +--------------+
OBS --RTMP->--+-----+ SRS Stack +-----+----HTTP--->-----+ Your Server +
+ +-----------+ + (Target URL) +--------------+
+ +
+ Docker +
+-----------------------+
```

所有请求的格式是json:

* `Content-Type: application-json`
Expand All @@ -591,6 +605,33 @@ SRS Stack的使用说明,请参考视频[SRS Stack:起步、购买和入门]

关于如何实现回调的处理,请参考[HTTP Callback](/docs/v6/doc/http-callback#go-example)

### HTTP Callback: Connectivity Check

有时,您可能需要验证网络是否可访问并确定要使用的适当目标URL。通过在Docker容器内使用curl命令,您可以模拟此请求并确认
target URL是否可以通过curl或SRS Stack访问。

首先,在SRS Stack的容器中安装curl:

```bash
docker exec -it srs-stack apt-get update -y
docker exec -it srs-stack apt-get install -y curl
```

然后,用curl模拟SRS Stack发起一个HTTP请求:

```bash
docker exec -it srs-stack curl http://your-target-URL
```

你可以使用任何合法的target URL来测试,包括:

* 内网IP:`http://192.168.1.10/check`
* 公网IP:`http://159.133.96.20/check`
* HTTP地址,使用域名: `http://your-domain.com/check`
* HTTPS地址,使用域名:`https://your-domain.com/check`

请记住,您应在SRS Stack Docker中测试与target URL的连通性,并避免从其他服务器运行curl命令。

### HTTP Callback: on_publish

对于回调事件`on_publish`,协议定义如下:
Expand Down
48 changes: 46 additions & 2 deletions src/pages/faq-srs-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,17 +566,61 @@ Welcome to join the group to discuss the use of SRS Stack. All these SRS periphe

## HTTP Callback

All requests should be:
HTTP Callback refers to the SRS Stack running within a Docker container, initiating an HTTP request to
a target URL. For instance, the following process illustrates that when OBS publishs an RTMP stream to SRS Stack,
the SRS Stack informs your server about the event by sending an HTTP request to the target URL.

```bash
+-----------------------+
+ +
+ +-----------+ + +--------------+
OBS --RTMP->--+-----+ SRS Stack +-----+----HTTP--->-----+ Your Server +
+ +-----------+ + (Target URL) +--------------+
+ +
+ Docker +
+-----------------------+
```

All HTTP requests should be:

* `Content-Type: application-json`

All responses should use:

* `Status: 200 OK` and `"code": 0` for success.
* `Status: 200 OK` and `{"code": 0}` for success.
* Otherwise, error or fail.

See examples in [HTTP Callback](/docs/v6/doc/http-callback#go-example)

### HTTP Callback: Connectivity Check

Occasionally, you might need to verify if the network is accessible and determine the appropriate target URL to
use. By using the curl command inside the Docker container, you can simulate this request and confirm if the
target URL can be accessed by curl or the SRS Stack.

First, install curl in SRS Stack:

```bash
docker exec -it srs-stack apt-get update -y
docker exec -it srs-stack apt-get install -y curl
```

Then, simulate an HTTP request to your server:

```bash
docker exec -it srs-stack curl http://your-target-URL
```

You can use any target URL to test, such as:

* Intranet IP: `http://192.168.1.10/check`
* Internet IP: `http://159.133.96.20/check`
* URL via HTTP: `http://your-domain.com/check`
* URL in HTTPS: `https://your-domain.com/check`

Keep in mind that you should test the connection to the target URL within the SRS Stack Docker, and avoid
running the curl command from a different server.

### HTTP Callback: on_publish

For HTTP callback `on_publish` event:
Expand Down

0 comments on commit fe07bba

Please sign in to comment.