1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00
srs/trunk
MarkCao 8fde0366fb
Kickoff publisher when stream is idle, which means no players. v6.0.31, v5.0.144 (#3105)
For some use scenario, the publisher is invited when player want to view the stream:

1. Publisher connect to system, but does not publish any stream to SRS yet.
2. Player connect to system and start to request the stream.
3. System notifies publisher to publish stream to SRS.
4. Player play the stream from SRS.

Please notice that `system` means your business system, not SRS.

This is what we called `on-demand-live-streaming`, so when the last player stop to view the stream, what happends?

1. System needs to notify publisher to stop publish.
2. Or, SRS disconnect the publisher when idle(the last player stops playing).

This PR is for the solution 2, so that the cleanup is very simple, your system does not need to notify publisher to stop publish, because SRS has already disconnected the publihser.

---------

Co-authored-by: winlin <winlin@vip.126.com>
Co-authored-by: chundonglinlin <chundonglinlin@163.com>
2023-03-06 09:09:27 +08:00
..
3rdparty GB: Support HEVC for regression test and load tool for GB. (#3416) 2023-02-25 16:25:56 +08:00
auto SRS5: FFmpeg: Support build with FFmpeg native opus. v5.0.131 (#3140) 2023-01-06 17:46:37 +08:00
conf Kickoff publisher when stream is idle, which means no players. v6.0.31, v5.0.144 (#3105) 2023-03-06 09:09:27 +08:00
doc Kickoff publisher when stream is idle, which means no players. v6.0.31, v5.0.144 (#3105) 2023-03-06 09:09:27 +08:00
etc/init.d Squash: Fix bugs 2022-01-13 18:26:28 +08:00
gdb ST: Support show coroutines. 2020-12-10 11:36:24 +08:00
ide/srs_clion Merge branch v5.0.103 into develop 2022-12-03 21:15:22 +08:00
modules Moduels: Refine the description 2021-04-21 11:18:35 +08:00
packaging Windows: Refine cygwin pipeline (#3260) 2022-11-21 14:32:26 +08:00
research Rewrite research/api-server code by Go, remove Python. (#3382) 2023-01-18 13:11:16 +08:00
scripts Package script support extra options. v5.0.102 2022-12-03 18:56:21 +08:00
src Kickoff publisher when stream is idle, which means no players. v6.0.31, v5.0.144 (#3105) 2023-03-06 09:09:27 +08:00
usr/lib/systemd/system Squash: Support RPM. Fix bugs. 2021-11-04 07:37:17 +08:00
.gitignore For #2136: API: Cleanup no active streams for statistics. v5.0.42 2022-08-19 19:45:19 +08:00
AUTHORS.md Add new contributors. 2023-02-21 09:13:40 +08:00
AUTHORS.txt Update AUTHORS 2021-08-25 07:43:35 +08:00
configure SRS5: FFmpeg: Support build with FFmpeg native opus. v5.0.131 (#3140) 2023-01-06 17:46:37 +08:00
Dockerfile Rename SRS_SRS_LOG_TANK to SRS_LOG_TANK. #3410 2023-02-13 11:37:03 +08:00
Dockerfile.builds Merge branch v5.0.103 into develop 2022-12-03 21:15:22 +08:00
Dockerfile.cov Asan: Refine asan warning message for macOS. 2022-12-31 21:20:51 +08:00
Dockerfile.pkg Merge branch v5.0.103 into develop 2022-12-03 21:15:22 +08:00
Dockerfile.test GB28181: Enable regression test for gb28181. v5.0.122 2022-12-31 19:47:54 +08:00