pedroSG94 / RootEncoder-iOS

RootEncoder iOS (rtmp-rtsp-stream-client-swift) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP and SRT with all code written in Swift
Apache License 2.0
125 stars 35 forks source link

Stream to multiple endpoints? #24

Closed wertpoiu closed 4 months ago

wertpoiu commented 4 months ago

Hi @pedroSG94 Is it possible to stream to multiple endpoints?

pedroSG94 commented 4 months ago

Hello,

This is not available yet in iOS version. I have plan to add this

pedroSG94 commented 4 months ago

I can add this after fix a bug.

wertpoiu commented 4 months ago

Hi Is it possible to add it now?

dylandamsma commented 4 months ago

Hi @pedroSG94,

I would also be interested in this. Much thanks in advance!

pedroSG94 commented 4 months ago

Hello,

Currently I'm working on add streamClient and filters. I can change the order and prioritize this over filters because filters is a big change and this take less time.

wertpoiu commented 4 months ago

Its upto you no rush

dylandamsma commented 4 months ago

Hello,

Currently I'm working on add streamClient like and filters.

I can change the order and prioritize this over filters because filters is a big change and this take less time.

I think I'll be using Cloudflare Stream in the meantime to handle forwarding. No rush.

My use case is that I need to add text & images (overlays) into the video (thats most important for me).

P.s. Great work on this. I hope it will work the way I expect it to. We using it to stream tennis matches with the live score inside the video feed

pedroSG94 commented 4 months ago

Hello,

I did a release for this feature (0.0.7). The release include stream to multiple endpoints at same time and StreamClient class. If you are using the retry of setLogs methods that was moved into StreamClient class:

rtmpCamera.getStreamClient().reTry(delay: 5000, reason: reason)

You have a little documentation about how to use MultiCamera and MultiDisplay classes here: https://github.com/pedroSG94/RootEncoder-iOS/blob/master/RootEncoder/Sources/RootEncoder/library/multiple/MultiCamera.swift#L13 https://github.com/pedroSG94/RootEncoder-iOS/blob/master/RootEncoder/Sources/RootEncoder/library/multiple/MultiDisplay.swift#L11

wertpoiu commented 4 months ago

Hello,

I did a release for this feature (0.0.7). The release include stream to multiple endpoints at same time and StreamClient class. If you are using the retry of setLogs methods that was moved into StreamClient class:

rtmpCamera.getStreamClient().reTry(delay: 5000, reason: reason)

You have a little documentation about how to use MultiCamera and MultiDisplay classes here: https://github.com/pedroSG94/RootEncoder-iOS/blob/master/RootEncoder/Sources/RootEncoder/library/multiple/MultiCamera.swift#L13 https://github.com/pedroSG94/RootEncoder-iOS/blob/master/RootEncoder/Sources/RootEncoder/library/multiple/MultiDisplay.swift#L11

Thank you will test it today 🙏🏼

wertpoiu commented 4 months ago

Working perfect 😀🙏🏼