|
数据怎么填写,demo不是提供了么,要不然demo是怎么播放的?
public void openInvite(String szID, int iIndexMajor, int iAVStreamDir, boolean b) {
VideoPreviewEntity videoPreviewEntity = getVideoPreviewEntity();
BVCU_DialogInfo dialogInfo = new BVCU_DialogInfo();
dialogInfo.stParam = new BVCU_DialogParam();
dialogInfo.stParam.iTargetCount = 1;
dialogInfo.stParam.pTarget = new BVCU_DialogTarget[1];
dialogInfo.stParam.pTarget[0] = new BVCU_DialogTarget();
dialogInfo.stParam.pTarget[0].iIndexMajor = iIndexMajor;
dialogInfo.stParam.pTarget[0].iIndexMinor = -1;
dialogInfo.stParam.pTarget[0].szID = szID;
dialogInfo.stParam.iAVStreamDir = iAVStreamDir;
dialogInfo.stControlParam = new BVCU_DialogControlParam();
dialogInfo.stControlParam.stRender = new BVCU_DialogControlParam_Render();
dialogInfo.stControlParam.stRender.hWnd = displayScreen.getSurface();
videoPreviewEntity.setDeviceID(szID);
videoPreviewEntity.setDeviceChannel(iIndexMajor);
videoPreviewEntity
.setTokenVideo(mcu.getConnection().invite(dialogInfo));
if (!b) {
videoPreviewEntity
.setTokenVoice(videoPreviewEntity.getTokenVideo());
} else {
mcu.setTalkToken(videoPreviewEntity.getTokenVideo());
}
videoPreviewEntity.setInviteState(InviteState.InviteStateing);
mcu.getConnection()
.getProcessManager()
.addProcess(new InviteControl(context, mcu, videoPreviewEntity,false));
displayScreen.openScreen();
displayScreen.setPreviewEntity(videoPreviewEntity);
Log.d(TAG, "vtoken----->" + getVideoPreviewEntity().getTokenVideo());
} |
|