Dear friends i cant find in documentation of "Red5 Pro HTML" precise example how to stop stream for publisher, please if some one know write way give me a hint
Asked
Active
Viewed 412 times
1 Answers
2
Looking at the SDK documentation, both RTCPublisher
and RTMPPublisher
have a function named unpublish
:
unpublish() → {Promise}
Request to stop a broadcast. The returned Promise will either resolve or reject on successful stop of broadcast.
Returns:
Promise
Try using that.
publisher.unpublish()
.then(() => console.log('Stopped publisher stream!'))
.catch(() => console.log('Failed to stop publisher stream!'))

cbr
- 12,563
- 3
- 38
- 63
-
1@ДенисМогила I'm glad I could help! You can accept the answer by clicking on the [checkbox left of the answer](https://i.imgur.com/BvrkwLA.png). – cbr Jan 12 '18 at 16:44