我试图在agora.io中以隐藏模式将视频流从从站广播到主站。问题是,当流式传输开始时,在从属设备中打开白屏。
protected void initUIandEvent() {
event().addEventHandler(this);
Intent i = getIntent();
int cRole = i.getIntExtra(ConstantApp.ACTION_KEY_CROLE, 0);
if (cRole == 0) {
throw new RuntimeException("Should not reach here");
}
String roomName = i.getStringExtra(ConstantApp.ACTION_KEY_ROOM_NAME);
doConfigEngine(cRole);
mGridVideoViewContainer = (GridVideoViewContainer) findViewById(R.id.grid_video_view_container);
mGridVideoViewContainer.setItemEventHandler(new VideoViewEventListener() {
@Override
public void onItemDoubleClick(View v, Object item) {
log.debug("onItemDoubleClick " + v + " " + item);
if (mUidsList.size() < 2) {
return;
}
if (mViewType == VIEW_TYPE_DEFAULT)
switchToSmallVideoView(((VideoStatusData) item).mUid);
else
switchToDefaultVideoView();
}
});