pedroSG94 / RootEncoder

RootEncoder for Android (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP, SRT and UDP with all code written in Java/Kotlin
Apache License 2.0
2.54k stars 772 forks source link

Sending live stream h264 data from MediaCodec callback #1177

Closed 1goresha closed 1 year ago

1goresha commented 2 years ago

I have live stream h264 data from MediaCodec callback and i need to send h264 data with RTSP using your lib, how can i do this?

pedroSG94 commented 2 years ago

Hello,

You can use RtspClient class directly. You have an example here: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtplibrary/src/main/java/com/pedro/rtplibrary/rtsp/RtspCamera1.java Also, you can check this issue related with your case: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/issues/1033

1goresha commented 1 year ago

thank you!