如何从下面的值变量中获取单个值,这些值给出了一个这样的字符串:1001,10 / 01 / 2016,11 / 01/2016并在值之后分配给我的每个变量?
var lines = loadedString.split('\n'); //split on newlines
for (var i = 0; i < lines.length; i++)
{
var value = lines[i].split('\t');
var id;
var start;
var end;
}
&#13;
答案 0 :(得分:1)
就像那样:
int width=800;
int height=480;
encoder = MediaCodec.createByCodecName(codecInfo.getName());
format = MediaFormat.createVideoFormat ("video/avc", width, height);
format.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE,655360); // 0.5MB but adjust it as you need.