ThibaultBee / StreamPack

SRT/RTMP/RTMPS live streaming libraries for Android
https://thibaultbee.github.io/StreamPack/index.html
Apache License 2.0
174 stars 67 forks source link

refactor(core): refactor how the encoder are handled. Avoid to recrea… #109

Closed ThibaultBee closed 2 months ago

ThibaultBee commented 4 months ago

…te a new MediaCodec when stopStream and startStream are called.

ThibaultBee commented 4 months ago

@cdiddy77 as you are the one that notices strange behavior with the encoders: what do you think?

ThibaultBee commented 4 months ago

You are right, it is much more that just avoid to recreate the mediacodec for stop/start. It is a much much nicer code :)