I think one way would be to create a timer and insert a buffer of zero size with EOS flag after the timer ends. But it seems weird the mediacodec/mediamuxer apis dont have a duration setting on the api. any ideas?
2.1m questions
2.1m answers
60 comments
57.0k users