-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dev: -默认名字也改下吧- -Modify 全界面更换皮肤- -Modify 修复后台播放音乐,进入另一个会话应该正常显示的问题- -Modify 更新成王者荣耀皮肤!- init voice add vedio code
- Loading branch information
Showing
91 changed files
with
2,316 additions
and
111 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES"> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/> | ||
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<view contentMode="scaleToFill" id="iN0-l3-epB"> | ||
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/> | ||
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015年 ZYProSoft. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye"> | ||
<rect key="frame" x="20" y="439" width="441" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="ZYChat" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX"> | ||
<rect key="frame" x="20" y="140" width="441" height="43"/> | ||
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/> | ||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="default.jpg" translatesAutoresizingMaskIntoConstraints="NO" id="n01-Ud-kan"> | ||
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/> | ||
</imageView> | ||
</subviews> | ||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | ||
<constraints> | ||
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/> | ||
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/> | ||
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/> | ||
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/> | ||
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/> | ||
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/> | ||
</constraints> | ||
<nil key="simulatedStatusBarMetrics"/> | ||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> | ||
<point key="canvasLocation" x="548" y="455"/> | ||
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina55"/> | ||
<point key="canvasLocation" x="558" y="485"/> | ||
</view> | ||
</objects> | ||
<resources> | ||
<image name="default.jpg" width="1080" height="1920"/> | ||
</resources> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// GJGCCallDataManager.h | ||
// ZYChat | ||
// | ||
// Created by bob on 16/8/25. | ||
// Copyright © 2016年 ZYProSoft. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface GJGCCallDataManager : NSObject | ||
|
||
+ (GJGCCallDataManager *)sharedManager; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// | ||
// GJGCCallDataManager.m | ||
// ZYChat | ||
// | ||
// Created by bob on 16/8/25. | ||
// Copyright © 2016年 ZYProSoft. All rights reserved. | ||
// | ||
|
||
#import "GJGCCallDataManager.h" | ||
#import "GJGCVoiceCallViewController.h" | ||
#import "GJGCVideoCallViewController.h" | ||
#import "GJGCForwardEngine.h" | ||
|
||
@interface GJGCCallDataManager ()<EMCallManagerDelegate> | ||
|
||
@end | ||
|
||
@implementation GJGCCallDataManager | ||
|
||
+ (GJGCCallDataManager *)sharedManager | ||
{ | ||
static GJGCCallDataManager *sharedManager; | ||
static dispatch_once_t onceToken; | ||
dispatch_once(&onceToken, ^{ | ||
sharedManager = [[GJGCCallDataManager alloc]init]; | ||
}); | ||
return sharedManager; | ||
} | ||
|
||
- (instancetype)init | ||
{ | ||
if (self = [super init]) { | ||
|
||
[[EMClient sharedClient].callManager addDelegate:self delegateQueue:nil]; | ||
} | ||
return self; | ||
} | ||
|
||
#pragma mark - EMCallManagerDelegate | ||
/*! | ||
* 用户A拨打用户B,用户B会收到这个回调 | ||
* | ||
* @param aSession 会话实例 | ||
*/ | ||
- (void)didReceiveCallIncoming:(EMCallSession *)aSession | ||
{ | ||
NSLog(@"收到Call请求"); | ||
|
||
if (aSession.type == EMCallTypeVoice) { | ||
GJGCVoiceCallViewController *callController = [[GJGCVoiceCallViewController alloc] initWithSession:aSession isIncoming:YES]; | ||
callController.modalPresentationStyle = UIModalPresentationOverFullScreen; | ||
[[GJGCForwardEngine tabBarVC] presentViewController:callController animated:NO completion:nil]; | ||
} | ||
|
||
if (aSession.type == EMCallTypeVideo) { | ||
GJGCVideoCallViewController *callController = [[GJGCVideoCallViewController alloc] initWithSession:aSession isIncoming:YES]; | ||
callController.modalPresentationStyle = UIModalPresentationOverFullScreen; | ||
[[GJGCForwardEngine tabBarVC] presentViewController:callController animated:NO completion:nil]; | ||
} | ||
|
||
|
||
} | ||
|
||
/*! | ||
* 通话通道建立完成,用户A和用户B都会收到这个回调 | ||
* | ||
* @param aSession 会话实例 | ||
*/ | ||
- (void)didReceiveCallConnected:(EMCallSession *)aSession | ||
{ | ||
NSLog(@"建立Call请求"); | ||
} | ||
|
||
/*! | ||
* 用户A和用户B正在通话中,用户A中断或者继续数据流传输时,用户B会收到该回调 | ||
* | ||
* @param aSession 会话实例 | ||
* @param aType 改变类型 | ||
* | ||
*/ | ||
- (void)didReceiveCallUpdated:(EMCallSession *)aSession | ||
type:(EMCallStreamControlType)aType | ||
{ | ||
NSLog(@"Call中断"); | ||
} | ||
|
||
@end |
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
ZYChat-EaseMob/ZYChat/Call/VideoCall/GJGCVideoCallViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// GJGCVideoCallViewController.h | ||
// ZYChat | ||
// | ||
// Created by bob on 16/8/25. | ||
// Copyright © 2016年 ZYProSoft. All rights reserved. | ||
// | ||
|
||
#import "GJGCBaseViewController.h" | ||
|
||
@interface GJGCVideoCallViewController : GJGCBaseViewController | ||
|
||
- (instancetype)initWithSession:(EMCallSession *)session | ||
isIncoming:(BOOL)isIncoming; | ||
|
||
@property (strong, nonatomic) NSString *chatter; | ||
|
||
@end |
Oops, something went wrong.