起因是:
hi supporter
when i add multi file to playAttributes by :
PlayAttributes.AddPlayFilePath(“file://C:/wavfile1.wav);
PlayAttributes.AddPlayFilePath(“file://C:/wavfile2.wav);
PlayAttributes.AddPlayFilePath(“file://C:/wavfile3.wav);
and start to play them together :
in_pCallLeg->PlayStream( PlayAttributes );
in streamserver ‘s log , I find :
29th, 16:36:49.722+0800 TBERR SS: StreamServerAttachTranscodingToPlay: Playing multiple file segments with different codec is not supported.
could you tell me how to check wav file ‘s codec or how to change their codec to same ?
一共4个文件, 一旦连播, 什么也听不到,并立即引发 streamplayingdone事件
这4个文件在windows 或者 andacity 看不出任何格式不同
后来在 linux 机器, 用 file + filename , 发现
其中有一个文件的格式是 : mu-law, 而其他都是 a-law
所以导致了 codec 不同,
解决方法是: 用 audacity 把 mu-law导出为a-law