Android: Two instances of Media recorder at same time

后端 未结 1 450
無奈伤痛
無奈伤痛 2021-01-18 12:32

Can i run two instances of Android MediaRecorder class at the same time? For example

public MediaRecorder mrec1 ;
public MediaRecorder mrec2 ;


mrec1.setCa         


        
相关标签:
1条回答
  • 2021-01-18 13:04

    according to documentation:

    In addition to unnecessary resources (such as memory and instances of codecs) being held, failure to call this method immediately if a MediaRecorder object is no longer needed may also lead to continuous battery consumption for mobile devices, and recording failure for other applications if no multiple instances of the same codec are supported on a device. Even if multiple instances of the same codec are supported, some performance degradation may be expected when unnecessary multiple instances are used at the same time.

    My unsuccessful attempts led to nothing either.

    0 讨论(0)
提交回复
热议问题