调用后台获取环信历史记录
{
"timestamp": "1450159423120", "nickName": "mk", "userId": "2a8c632cbcf64664ad126d42df5706c9", "targetPhoto": "/files/80746c9dd7d2015917ae30c104c051fb.jpg", "length": "1", "secret": "mEnOaqLxEeW8BVVf4ppOU2h6PPkWoDerx-Ahwr6XmsFY6Q7o", "filename": "1380013800320151215T140341.amr", "targetNickName": "xxx", "type": "audio", "photo": "", "url": " xxxxxxxxxxx省略xxxxxxxxxxxxxxxx " }, |
"type": "audio"语音类型数据倒是拿到了,但是怎么去播放,环信并没有提供直接播放的api,
然后就参考环信是如果下载图片的方式来下载语音文件,最后去播放。
以下是点击语音图标播放的事件:
holder.iv.setOnClickListener(new View.OnClickListener() { |