TXLivePushConfig *_config = [[TXLivePushConfig alloc] init]; // 一般情况下不需要修改默认 config
TXLivePush *_pusher = [[TXLivePush alloc] initWithConfig: _config]; // config 参数不能为空
//创建一个 view 对象,并将其嵌入到当前界面中
UIView *_localView = [[UIView alloc] initWithFrame:self.view.bounds];
[self.view insertSubview:_localView atIndex:0];
_localView.center = self.view.center;
相似问题