修改为静音播放视频,不再播放声音
This commit is contained in:
parent
0b7755866e
commit
e5c41967ab
|
|
@ -70,7 +70,7 @@
|
|||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>9.9.8</string>
|
||||
<string>9.9.11</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
|
|
|
|||
|
|
@ -102,16 +102,10 @@
|
|||
#pragma mark- 暂停 挂断
|
||||
|
||||
-(void)stopP2PPlayingGLViewVideo{
|
||||
if(!self.isReject){
|
||||
|
||||
self.isReject = !self.isReject;
|
||||
|
||||
while (self.isPlaying) {
|
||||
usleep(50*1000);
|
||||
}
|
||||
|
||||
if ([self.player isPlaying]) {
|
||||
[self.player p2pStop];
|
||||
}
|
||||
|
||||
}
|
||||
#pragma mark -已有人观看事件
|
||||
|
||||
|
|
|
|||
|
|
@ -465,6 +465,7 @@
|
|||
//添加播放器VC
|
||||
self.player = [[GWP2PVideoPlayer alloc] init];
|
||||
self.player.delegate = self;
|
||||
self.player.mute = YES;
|
||||
self.player.viewController.view.backgroundColor = [UIColor clearColor];
|
||||
[self.canvasView addSubview:self.player.viewController.view];
|
||||
[self addChildViewController:self.player.viewController];
|
||||
|
|
|
|||
|
|
@ -476,6 +476,7 @@ Strong UIImage *screenShotImage;//截图
|
|||
//添加播放器VC
|
||||
self.player = [[GWP2PVideoPlayer alloc] init];
|
||||
self.player.delegate = self;
|
||||
self.player.mute = YES;
|
||||
self.player.viewController.view.backgroundColor = [UIColor clearColor];
|
||||
[self.canvasView addSubview:self.player.viewController.view];
|
||||
[self addChildViewController:self.player.viewController];
|
||||
|
|
|
|||
|
|
@ -49,11 +49,6 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
|
|||
}
|
||||
|
||||
@property (strong,nonatomic) NSMutableDictionary *addresses;
|
||||
//技威服务器 socket返回contactID 即cameraId
|
||||
//@property (nonatomic,copy) NSString *contactID;
|
||||
@property (nonatomic,assign) NSInteger flag;
|
||||
@property (nonatomic,assign) NSInteger type;
|
||||
@property (nonatomic,copy) NSString *address;
|
||||
@property (nonatomic,copy) NSString *wifiName;
|
||||
@property (nonatomic,strong) UIButton *sBtn;
|
||||
@property(nonatomic)BOOL autodismiss;
|
||||
|
|
@ -183,7 +178,6 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
|
|||
CGFloat wifiFileH=wifiFileW*percentHbiW;
|
||||
|
||||
self.wifiSecFiled=[[UITextField alloc] initWithFrame:CGRectMake(10,CGRectGetMaxY(self.wifilabel.frame) + 10, wifiFileW, wifiFileH)];
|
||||
//[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(wifiviewkeyboradWillShow:) name:UIKeyboardWillChangeFrameNotification object:nil];
|
||||
self.wifiSecFiled.placeholder = @"请输入WiFi密码";
|
||||
self.wifiSecFiled.delegate=self;
|
||||
self.wifiSecFiled.layer.masksToBounds=YES;
|
||||
|
|
@ -343,19 +337,6 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
|
|||
if(buttonIndex==0){
|
||||
|
||||
}
|
||||
}else if(alertView.tag==ALERT_TAG_SET_SUCCESS){
|
||||
|
||||
if(buttonIndex==0){
|
||||
|
||||
if (self.flag == 0) {//设备未初始化过密码
|
||||
|
||||
NSString *newPassword = GIWEI_INITPASS;
|
||||
self.lastSetPassword = [Utils GetTreatedPassword:newPassword];;
|
||||
|
||||
}else{
|
||||
|
||||
}
|
||||
}
|
||||
}else if (alertView.tag==ALERT_TAG_B_SURE){
|
||||
|
||||
if (buttonIndex ==1) {
|
||||
|
|
@ -648,9 +629,7 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
|
|||
[self.view makeToast:@"已经绑定过了"];
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
UserModel*model=[[DataCenter defaultDtacenter]valueForKey:@"UserLogIn"];
|
||||
[AFNOHeaderHttpTool bindCameraWith:cameraId userId:model.userId success:^(id response) {
|
||||
NSDictionary*resultDic=[NSJSONSerialization JSONObjectWithData:response options:NSJSONReadingMutableContainers error:nil];
|
||||
|
|
@ -659,16 +638,10 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
|
|||
if ([resultDic[@"result"] isEqualToString:@"100"]) {
|
||||
self.lodviewMissStyle =lodingViewdissMissSuccsess;
|
||||
_canDissMissController = YES;
|
||||
[self connectNormalView];
|
||||
|
||||
|
||||
//绑定成功
|
||||
|
||||
//绑定成功之后,直接跳转详情页面
|
||||
/**
|
||||
* 存储摄像头设备信息
|
||||
|
||||
存储摄像头设备信息
|
||||
*/
|
||||
|
||||
NSMutableArray *newCamerArr = [[NSMutableArray alloc] initWithArray:oldCameraArr];
|
||||
NSDictionary * cameraDic=resultDic[@"data"];
|
||||
|
||||
|
|
@ -708,6 +681,7 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
|
|||
|
||||
} failure:^(NSError *err) {
|
||||
|
||||
[self connectNormalView];
|
||||
[self.view makeToast:@"绑定失败未知错误"];
|
||||
|
||||
}];
|
||||
|
|
|
|||
Loading…
Reference in New Issue