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
112 stars 33 forks source link

Text Overlay #16

Closed bittuRichestsoft closed 1 month ago

bittuRichestsoft commented 5 months ago

How to do text overlay during live streaming in iOS?

pedroSG94 commented 5 months ago

Hello,

Currently it is not supported but I have plan to add it

prikshitgupta commented 1 month ago

Owner

if you ever plan to add it just allow us to add any view not just text please

pedroSG94 commented 1 month ago

Hello,

I have plan to add the same filters than in Android. That include views, but I can't promise all filters because I don't know iOS limitations. All filters should be possible. I did a bit of investigation, but the possible ways that I found was no tested yet.

The idea is implement all features available in Android.

wertpoiu commented 1 month ago

Hello,

I have plan to add the same filters than in Android. That include views, but I can't promise all filters because I don't know iOS limitations. All filters should be possible. I did a bit of investigation, but the possible ways that I found was no tested yet.

The idea is implement all features available in Android.

How i can check android filter?

wertpoiu commented 1 month ago

In swiftui every ui element is a view

pedroSG94 commented 1 month ago

Hello, I have plan to add the same filters than in Android. That include views, but I can't promise all filters because I don't know iOS limitations. All filters should be possible. I did a bit of investigation, but the possible ways that I found was no tested yet. The idea is implement all features available in Android.

How i can check android filter?

You can compile the Android app example and open Rotation example. In that example you have a menu with all filters and you can test it

pedroSG94 commented 1 month ago

In swiftui every ui element is a view

That is the idea

pedroSG94 commented 1 month ago

This is currently possible using ViewFilterRender, You have an example in rtmp and rtsp example in the app sample code. I have plan to add a filter only for text but, for now, it is not necessary. Closing as solved. Open other issue if you find bugs or problems in the new filter

wertpoiu commented 1 month ago

This is currently possible using ViewFilterRender, You have an example in rtmp and rtsp example in the app sample code. I have plan to add a filter only for text but, for now, it is not necessary. Closing as solved. Open other issue if you find bugs or problems in the new filter

Thank you for the update. It will not work with swiftui elements or view?

pedroSG94 commented 1 month ago

For now, you only can create a UIView and use that UIView inside a swiftUI element like in the example. I will try add it in the future

wertpoiu commented 1 month ago

For now, you only can create a UIView and use that UIView inside a swiftUI element like in the example. I will try add it in the future

Ok thank you, i didn’t see any clear example how i can place like simple text on camera?

pedroSG94 commented 1 month ago

You have the example here: https://github.com/pedroSG94/RootEncoder-iOS/blob/master/app/RtmpSwiftUIView.swift#L131

wertpoiu commented 1 month ago

You have the example here: https://github.com/pedroSG94/RootEncoder-iOS/blob/master/app/RtmpSwiftUIView.swift#L131

Ok thank you