Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
63186b06
Commit
63186b06
authored
Jun 18, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加录屏插件
parent
f1d289bc
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
809 additions
and
1 deletion
+809
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+228
-1
YHTencentDeskManager.swift
...les/ButlerServiceManager(银河管家)/YHTencentDeskManager.swift
+4
-0
galaxy.entitlements
galaxy/galaxy/galaxy.entitlements
+4
-0
galaxyDebug.entitlements
galaxy/galaxy/galaxyDebug.entitlements
+4
-0
galaxyTestEnv.entitlements
galaxy/galaxy/galaxyTestEnv.entitlements
+4
-0
Info.plist
galaxy/yinheReplayExt/Info.plist
+15
-0
SampleHandler.swift
galaxy/yinheReplayExt/SampleHandler.swift
+73
-0
Info.plist
...ReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/Info.plist
+41
-0
TXLiteAVSDK_ReplayKitExt.h
...ReplayKitExt.framework/Headers/TXLiteAVSDK_ReplayKitExt.h
+6
-0
TXReplayKitExt.h
...LiteAVSDK_ReplayKitExt.framework/Headers/TXReplayKitExt.h
+98
-0
Info.plist
...arm64_armv7/TXLiteAVSDK_ReplayKitExt.framework/Info.plist
+55
-0
module.modulemap
...LiteAVSDK_ReplayKitExt.framework/Modules/module.modulemap
+6
-0
TXLiteAVSDK_ReplayKitExt
...LiteAVSDK_ReplayKitExt.framework/TXLiteAVSDK_ReplayKitExt
+0
-0
PrivacyInfo.xcprivacy
...ork/TXLiteAVSDK_ReplayKitExt.bundle/PrivacyInfo.xcprivacy
+48
-0
TXLiteAVSDK_ReplayKitExt.h
...ReplayKitExt.framework/Headers/TXLiteAVSDK_ReplayKitExt.h
+6
-0
TXReplayKitExt.h
...LiteAVSDK_ReplayKitExt.framework/Headers/TXReplayKitExt.h
+98
-0
Info.plist
...4-simulator/TXLiteAVSDK_ReplayKitExt.framework/Info.plist
+55
-0
module.modulemap
...LiteAVSDK_ReplayKitExt.framework/Modules/module.modulemap
+6
-0
TXLiteAVSDK_ReplayKitExt
...LiteAVSDK_ReplayKitExt.framework/TXLiteAVSDK_ReplayKitExt
+0
-0
PrivacyInfo.xcprivacy
...ork/TXLiteAVSDK_ReplayKitExt.bundle/PrivacyInfo.xcprivacy
+48
-0
yinheReplayExt.entitlements
galaxy/yinheReplayExt/yinheReplayExt.entitlements
+10
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
63186b06
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/ButlerServiceManager(银河管家)/YHTencentDeskManager.swift
View file @
63186b06
...
...
@@ -10,10 +10,12 @@ import IQKeyboardManagerSwift
import
UIKit
import
TUICore
import
TUIChat
import
TUIRoomKit
class
YHTencentDeskManager
:
NSObject
{
static
let
shared
=
YHTencentDeskManager
()
let
APPGROUP
=
"group.com.intelligence.galaxy"
private
lazy
var
viewModel
:
YHButlerServiceViewModel
=
YHButlerServiceViewModel
()
...
...
@@ -32,6 +34,8 @@ class YHTencentDeskManager: NSObject {
private
func
setupConfig
()
{
/// 注释掉群工具:自定义
TUIChatConfig
.
default
()
.
enableWelcomeCustomMessage
=
false
/// 多人会议设置自己的APPGROUP
ConferenceSession
.
sharedInstance
.
setAppGroup
(
APPGROUP
)
}
func
loginIM
()
{
...
...
galaxy/galaxy/galaxy.entitlements
View file @
63186b06
...
...
@@ -33,5 +33,9 @@
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
</array>
<key>
com.apple.security.application-groups
</key>
<array>
<string>
group.com.intelligence.galaxy
</string>
</array>
</dict>
</plist>
galaxy/galaxy/galaxyDebug.entitlements
View file @
63186b06
...
...
@@ -33,5 +33,9 @@
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
</array>
<key>
com.apple.security.application-groups
</key>
<array>
<string>
group.com.intelligence.galaxy
</string>
</array>
</dict>
</plist>
galaxy/galaxy/galaxyTestEnv.entitlements
View file @
63186b06
...
...
@@ -33,5 +33,9 @@
<string>
webcredentials:example.com
</string>
<string>
webcredentials:example.com
</string>
</array>
<key>
com.apple.security.application-groups
</key>
<array>
<string>
group.com.intelligence.galaxy
</string>
</array>
</dict>
</plist>
galaxy/yinheReplayExt/Info.plist
0 → 100644
View file @
63186b06
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
NSExtension
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
NSExtensionPointIdentifier
<
/k
e
y
>
<
string
>
com.apple.broadcast-services-upload
<
/string
>
<
k
e
y
>
NSExtensionPrincipalClass
<
/k
e
y
>
<
string
>
$
(
PRODUCT_MODULE_NAME
)
.SampleHandler
<
/string
>
<
k
e
y
>
RPBroadcastProcessMode
<
/k
e
y
>
<
string
>
RPBroadcastProcessModeSampleBuffer
<
/string
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/plist
>
galaxy/yinheReplayExt/SampleHandler.swift
0 → 100644
View file @
63186b06
//
// SampleHandler.swift
// yinheReplayExt
//
// Created by alexzzw on 2025/6/18.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import
ReplayKit
import
TXLiteAVSDK_ReplayKitExt
let
APPGROUP
=
"group.com.intelligence.galaxy"
class
SampleHandler
:
RPBroadcastSampleHandler
,
TXReplayKitExtDelegate
{
let
recordScreenKey
=
Notification
.
Name
.
init
(
"TRTCRecordScreenKey"
)
override
func
broadcastStarted
(
withSetupInfo
setupInfo
:
[
String
:
NSObject
]?)
{
// User has requested to start the broadcast. Setup info from the UI extension can be supplied but optional.
TXReplayKitExt
.
sharedInstance
()
.
setup
(
withAppGroup
:
APPGROUP
,
delegate
:
self
)
}
override
func
broadcastPaused
()
{
// User has requested to pause the broadcast. Samples will stop being delivered.
}
override
func
broadcastResumed
()
{
// User has requested to resume the broadcast. Samples delivery will resume.
}
override
func
broadcastFinished
()
{
// User has requested to finish the broadcast.
TXReplayKitExt
.
sharedInstance
()
.
broadcastFinished
()
}
func
broadcastFinished
(
_
broadcast
:
TXReplayKitExt
,
reason
:
TXReplayKitExtReason
)
{
var
tip
=
""
switch
reason
{
case
TXReplayKitExtReason
.
requestedByMain
:
tip
=
"屏幕共享已结束"
break
case
TXReplayKitExtReason
.
disconnected
:
tip
=
"应用断开"
break
case
TXReplayKitExtReason
.
versionMismatch
:
tip
=
"集成错误(SDK 版本号不相符合)"
break
default
:
break
}
let
error
=
NSError
(
domain
:
NSStringFromClass
(
self
.
classForCoder
),
code
:
0
,
userInfo
:
[
NSLocalizedFailureReasonErrorKey
:
tip
])
finishBroadcastWithError
(
error
)
}
override
func
processSampleBuffer
(
_
sampleBuffer
:
CMSampleBuffer
,
with
sampleBufferType
:
RPSampleBufferType
)
{
switch
sampleBufferType
{
case
RPSampleBufferType
.
video
:
// Handle video sample buffer
TXReplayKitExt
.
sharedInstance
()
.
send
(
sampleBuffer
,
with
:
.
video
)
break
case
RPSampleBufferType
.
audioApp
:
// Handle audio sample buffer for app audio
break
case
RPSampleBufferType
.
audioMic
:
// Handle audio sample buffer for mic audio
break
@unknown
default
:
// Handle other sample buffer types
fatalError
(
"Unknown type of sample buffer"
)
}
}
}
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/Info.plist
0 → 100644
View file @
63186b06
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
AvailableLibraries
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
LibraryIdentifier
<
/k
e
y
>
<
string
>
ios-arm64_x86_64-simulator
<
/string
>
<
k
e
y
>
LibraryPath
<
/k
e
y
>
<
string
>
TXLiteAVSDK_ReplayKitExt.framework
<
/string
>
<
k
e
y
>
SupportedArchitectures
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
arm64
<
/string
>
<
string
>
x86_64
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
SupportedPlatform
<
/k
e
y
>
<
string
>
ios
<
/string
>
<
k
e
y
>
SupportedPlatformVariant
<
/k
e
y
>
<
string
>
simulator
<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
LibraryIdentifier
<
/k
e
y
>
<
string
>
ios-arm64_armv7
<
/string
>
<
k
e
y
>
LibraryPath
<
/k
e
y
>
<
string
>
TXLiteAVSDK_ReplayKitExt.framework
<
/string
>
<
k
e
y
>
SupportedArchitectures
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
arm64
<
/string
>
<
string
>
armv7
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
SupportedPlatform
<
/k
e
y
>
<
string
>
ios
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
XFWK
<
/string
>
<
k
e
y
>
XCFrameworkFormatVersion
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
/
d
i
c
t
>
<
/plist
>
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_armv7/TXLiteAVSDK_ReplayKitExt.framework/Headers/TXLiteAVSDK_ReplayKitExt.h
0 → 100644
View file @
63186b06
/*
* Copyright (c) 2025 Tencent. All Rights Reserved.
*
*/
#import <TXLiteAVSDK_ReplayKitExt/TXReplayKitExt.h>
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_armv7/TXLiteAVSDK_ReplayKitExt.framework/Headers/TXReplayKitExt.h
0 → 100644
View file @
63186b06
/*
* Module: TXReplayKitExt @ TXLiteAVSDK
*
* Function: 腾讯云 ReplayKit 录屏功能在Extension中的主要接口类
*
* Version: <:Version:>
*/
/// @defgroup TXReplayKitExt_ios TXReplayKitExt
/// 腾讯云 ReplayKit 录屏功能在Extension中的主要接口类
/// @{
#import <CoreMedia/CoreMedia.h>
#import <Foundation/Foundation.h>
#import <ReplayKit/ReplayKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef
NS_ENUM
(
NSUInteger
,
TXReplayKitExtReason
)
{
/// 主进程请求结束
TXReplayKitExtReasonRequestedByMain
,
/// 链接断开,主进程退出
TXReplayKitExtReasonDisconnected
,
/// 版本号与主进程SDK不符
TXReplayKitExtReasonVersionMismatch
};
@protocol
TXReplayKitExtDelegate
;
/// 屏幕分享主入口类
API_AVAILABLE
(
ios
(
11
.
0
))
__attribute__
((
visibility
(
"default"
)))
@interface
TXReplayKitExt
:
NSObject
/// 获取单例
+
(
instancetype
)
sharedInstance
;
/// 初始化方法
///
/// 需要在 RPBroadcastSampleHandler 的实现类中的 broadcastStartedWithSetupInfo 方法中调用
/// @param appGroup App group ID
/// @param delegate 回调对象
-
(
void
)
setupWithAppGroup
:(
NSString
*
)
appGroup
delegate
:(
id
<
TXReplayKitExtDelegate
>
)
delegate
;
/// 录屏暂停方法
///
/// 通过系统控制中心停止录屏时,会回调 RPBroadcastSampleHandler.broadcastPaused,在 broadcastPaused
/// 方法中调用
-
(
void
)
broadcastPaused
;
/// 录屏恢复方法
///
/// 通过系统控制中心停止录屏时,会回调 RPBroadcastSampleHandler.broadcastResumed,在
/// broadcastResumed 方法中调用
-
(
void
)
broadcastResumed
;
/// 录屏完成方法
///
/// 通过系统控制中心停止录屏时,会回调 RPBroadcastSampleHandler.broadcastFinished,在
/// broadcastFinished 方法中调用
-
(
void
)
broadcastFinished
;
/// 媒体数据(音视频)发送方法
///
/// 需要在 RPBroadcastSampleHandler 的实现类中的 processSampleBuffer: 方法中调用
///
/// @param sampleBuffer 系统回调的视频或音频帧
/// @param sampleBufferType 媒体输入类型
/// @note
/// - sampleBufferType 当前支持 RPSampleBufferTypeVideo 和 RPSampleBufferTypeAudioApp
/// 类型的数据帧处理。
/// - RPSampleBufferTypeAudioMic 不支持,请在主 app 处理麦克风采集数据
-
(
void
)
sendSampleBuffer
:(
CMSampleBufferRef
)
sampleBuffer
withType
:(
RPSampleBufferType
)
sampleBufferType
;
/// 视频发送方法
/// 已废弃,请使用 - (void)sendSampleBuffer:(CMSampleBufferRef)sampleBuffer
/// withType:(RPSampleBufferType)sampleBufferType; 代替 需要在 RPBroadcastSampleHandler 的实现类中的
/// processSampleBuffer: 方法中调用
///
/// @param sampleBuffer 系统回调的视频帧
-
(
void
)
sendVideoSampleBuffer
:(
CMSampleBufferRef
)
sampleBuffer
__attribute__
((
deprecated
(
"use sendSampleBuffer:withType instead"
)));
@end
API_AVAILABLE
(
ios
(
11
.
0
))
@protocol
TXReplayKitExtDelegate
<
NSObject
>
/// 录屏完成回调
///
/// @param broadcast 发出回调的实例
/// @param reason 结束原因代码, 参见 TXReplayKitExtReason
-
(
void
)
broadcastFinished
:
(
TXReplayKitExt
*
)
broadcast
reason
:
(
TXReplayKitExtReason
)
reason
;
@end
NS_ASSUME_NONNULL_END
/// @}
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_armv7/TXLiteAVSDK_ReplayKitExt.framework/Info.plist
0 → 100644
View file @
63186b06
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
BuildMachineOSBuild
<
/k
e
y
>
<
string
>
21G83
<
/string
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
en
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
TXLiteAVSDK_ReplayKitExt
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
com.tencent.TXLiteAVSDK.ReplayKitExt
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
TXLiteAVSDK_ReplayKitExt
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
12.6.18866
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleSupportedPlatforms
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
iPhoneOS
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
DTCompiler
<
/k
e
y
>
<
string
>
com.apple.compilers.llvm.clang.1_0
<
/string
>
<
k
e
y
>
DTPlatformBuild
<
/k
e
y
>
<
string
>
19F64
<
/string
>
<
k
e
y
>
DTPlatformName
<
/k
e
y
>
<
string
>
iphoneos
<
/string
>
<
k
e
y
>
DTPlatformVersion
<
/k
e
y
>
<
string
>
15.5
<
/string
>
<
k
e
y
>
DTSDKBuild
<
/k
e
y
>
<
string
>
19F64
<
/string
>
<
k
e
y
>
DTSDKName
<
/k
e
y
>
<
string
>
iphoneos15.5
<
/string
>
<
k
e
y
>
DTXcode
<
/k
e
y
>
<
string
>
1341
<
/string
>
<
k
e
y
>
DTXcodeBuild
<
/k
e
y
>
<
string
>
13F100
<
/string
>
<
k
e
y
>
MinimumOSVersion
<
/k
e
y
>
<
string
>
9.0
<
/string
>
<
k
e
y
>
NSPrincipalClass
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
UIDeviceFamily
<
/k
e
y
>
<
a
rr
a
y
>
<
int
e
g
e
r
>
1
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
2
<
/int
e
g
e
r
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_armv7/TXLiteAVSDK_ReplayKitExt.framework/Modules/module.modulemap
0 → 100644
View file @
63186b06
framework module TXLiteAVSDK_ReplayKitExt {
umbrella header "TXLiteAVSDK_ReplayKitExt.h"
export *
module * { export * }
}
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_armv7/TXLiteAVSDK_ReplayKitExt.framework/TXLiteAVSDK_ReplayKitExt
0 → 100644
View file @
63186b06
File added
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_armv7/TXLiteAVSDK_ReplayKitExt.framework/TXLiteAVSDK_ReplayKitExt.bundle/PrivacyInfo.xcprivacy
0 → 100644
View file @
63186b06
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
NSPrivacyTracking
</key>
<false/>
<key>
NSPrivacyTrackingDomains
</key>
<array/>
<key>
NSPrivacyCollectedDataTypes
</key>
<array>
<dict>
<key>
NSPrivacyCollectedDataType
</key>
<string>
NSPrivacyCollectedDataTypePhotosorVideos
</string>
<key>
NSPrivacyCollectedDataTypeLinked
</key>
<false/>
<key>
NSPrivacyCollectedDataTypeTracking
</key>
<false/>
<key>
NSPrivacyCollectedDataTypePurposes
</key>
<array>
<string>
NSPrivacyCollectedDataTypePurposeAppFunctionality
</string>
</array>
</dict>
<dict>
<key>
NSPrivacyCollectedDataType
</key>
<string>
NSPrivacyCollectedDataTypeAudioData
</string>
<key>
NSPrivacyCollectedDataTypeLinked
</key>
<false/>
<key>
NSPrivacyCollectedDataTypeTracking
</key>
<false/>
<key>
NSPrivacyCollectedDataTypePurposes
</key>
<array>
<string>
NSPrivacyCollectedDataTypePurposeAppFunctionality
</string>
</array>
</dict>
</array>
<key>
NSPrivacyAccessedAPITypes
</key>
<array>
<dict>
<key>
NSPrivacyAccessedAPIType
</key>
<string>
NSPrivacyAccessedAPICategorySystemBootTime
</string>
<key>
NSPrivacyAccessedAPITypeReasons
</key>
<array>
<string>
35F9.1
</string>
</array>
</dict>
</array>
</dict>
</plist>
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_x86_64-simulator/TXLiteAVSDK_ReplayKitExt.framework/Headers/TXLiteAVSDK_ReplayKitExt.h
0 → 100644
View file @
63186b06
/*
* Copyright (c) 2025 Tencent. All Rights Reserved.
*
*/
#import <TXLiteAVSDK_ReplayKitExt/TXReplayKitExt.h>
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_x86_64-simulator/TXLiteAVSDK_ReplayKitExt.framework/Headers/TXReplayKitExt.h
0 → 100644
View file @
63186b06
/*
* Module: TXReplayKitExt @ TXLiteAVSDK
*
* Function: 腾讯云 ReplayKit 录屏功能在Extension中的主要接口类
*
* Version: <:Version:>
*/
/// @defgroup TXReplayKitExt_ios TXReplayKitExt
/// 腾讯云 ReplayKit 录屏功能在Extension中的主要接口类
/// @{
#import <CoreMedia/CoreMedia.h>
#import <Foundation/Foundation.h>
#import <ReplayKit/ReplayKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef
NS_ENUM
(
NSUInteger
,
TXReplayKitExtReason
)
{
/// 主进程请求结束
TXReplayKitExtReasonRequestedByMain
,
/// 链接断开,主进程退出
TXReplayKitExtReasonDisconnected
,
/// 版本号与主进程SDK不符
TXReplayKitExtReasonVersionMismatch
};
@protocol
TXReplayKitExtDelegate
;
/// 屏幕分享主入口类
API_AVAILABLE
(
ios
(
11
.
0
))
__attribute__
((
visibility
(
"default"
)))
@interface
TXReplayKitExt
:
NSObject
/// 获取单例
+
(
instancetype
)
sharedInstance
;
/// 初始化方法
///
/// 需要在 RPBroadcastSampleHandler 的实现类中的 broadcastStartedWithSetupInfo 方法中调用
/// @param appGroup App group ID
/// @param delegate 回调对象
-
(
void
)
setupWithAppGroup
:(
NSString
*
)
appGroup
delegate
:(
id
<
TXReplayKitExtDelegate
>
)
delegate
;
/// 录屏暂停方法
///
/// 通过系统控制中心停止录屏时,会回调 RPBroadcastSampleHandler.broadcastPaused,在 broadcastPaused
/// 方法中调用
-
(
void
)
broadcastPaused
;
/// 录屏恢复方法
///
/// 通过系统控制中心停止录屏时,会回调 RPBroadcastSampleHandler.broadcastResumed,在
/// broadcastResumed 方法中调用
-
(
void
)
broadcastResumed
;
/// 录屏完成方法
///
/// 通过系统控制中心停止录屏时,会回调 RPBroadcastSampleHandler.broadcastFinished,在
/// broadcastFinished 方法中调用
-
(
void
)
broadcastFinished
;
/// 媒体数据(音视频)发送方法
///
/// 需要在 RPBroadcastSampleHandler 的实现类中的 processSampleBuffer: 方法中调用
///
/// @param sampleBuffer 系统回调的视频或音频帧
/// @param sampleBufferType 媒体输入类型
/// @note
/// - sampleBufferType 当前支持 RPSampleBufferTypeVideo 和 RPSampleBufferTypeAudioApp
/// 类型的数据帧处理。
/// - RPSampleBufferTypeAudioMic 不支持,请在主 app 处理麦克风采集数据
-
(
void
)
sendSampleBuffer
:(
CMSampleBufferRef
)
sampleBuffer
withType
:(
RPSampleBufferType
)
sampleBufferType
;
/// 视频发送方法
/// 已废弃,请使用 - (void)sendSampleBuffer:(CMSampleBufferRef)sampleBuffer
/// withType:(RPSampleBufferType)sampleBufferType; 代替 需要在 RPBroadcastSampleHandler 的实现类中的
/// processSampleBuffer: 方法中调用
///
/// @param sampleBuffer 系统回调的视频帧
-
(
void
)
sendVideoSampleBuffer
:(
CMSampleBufferRef
)
sampleBuffer
__attribute__
((
deprecated
(
"use sendSampleBuffer:withType instead"
)));
@end
API_AVAILABLE
(
ios
(
11
.
0
))
@protocol
TXReplayKitExtDelegate
<
NSObject
>
/// 录屏完成回调
///
/// @param broadcast 发出回调的实例
/// @param reason 结束原因代码, 参见 TXReplayKitExtReason
-
(
void
)
broadcastFinished
:
(
TXReplayKitExt
*
)
broadcast
reason
:
(
TXReplayKitExtReason
)
reason
;
@end
NS_ASSUME_NONNULL_END
/// @}
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_x86_64-simulator/TXLiteAVSDK_ReplayKitExt.framework/Info.plist
0 → 100644
View file @
63186b06
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
BuildMachineOSBuild
<
/k
e
y
>
<
string
>
21G83
<
/string
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
en
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
TXLiteAVSDK_ReplayKitExt
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
com.tencent.TXLiteAVSDK.ReplayKitExt
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
TXLiteAVSDK_ReplayKitExt
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
FMWK
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
12.6.18866
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleSupportedPlatforms
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
iPhoneSimulator
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
DTCompiler
<
/k
e
y
>
<
string
>
com.apple.compilers.llvm.clang.1_0
<
/string
>
<
k
e
y
>
DTPlatformBuild
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
DTPlatformName
<
/k
e
y
>
<
string
>
iphonesimulator
<
/string
>
<
k
e
y
>
DTPlatformVersion
<
/k
e
y
>
<
string
>
15.5
<
/string
>
<
k
e
y
>
DTSDKBuild
<
/k
e
y
>
<
string
>
19F64
<
/string
>
<
k
e
y
>
DTSDKName
<
/k
e
y
>
<
string
>
iphonesimulator15.5
<
/string
>
<
k
e
y
>
DTXcode
<
/k
e
y
>
<
string
>
1341
<
/string
>
<
k
e
y
>
DTXcodeBuild
<
/k
e
y
>
<
string
>
13F100
<
/string
>
<
k
e
y
>
MinimumOSVersion
<
/k
e
y
>
<
string
>
9.0
<
/string
>
<
k
e
y
>
NSPrincipalClass
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
UIDeviceFamily
<
/k
e
y
>
<
a
rr
a
y
>
<
int
e
g
e
r
>
1
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
2
<
/int
e
g
e
r
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_x86_64-simulator/TXLiteAVSDK_ReplayKitExt.framework/Modules/module.modulemap
0 → 100644
View file @
63186b06
framework module TXLiteAVSDK_ReplayKitExt {
umbrella header "TXLiteAVSDK_ReplayKitExt.h"
export *
module * { export * }
}
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_x86_64-simulator/TXLiteAVSDK_ReplayKitExt.framework/TXLiteAVSDK_ReplayKitExt
0 → 100644
View file @
63186b06
File added
galaxy/yinheReplayExt/TXLiteAVSDK_ReplayKitExt.xcframework/ios-arm64_x86_64-simulator/TXLiteAVSDK_ReplayKitExt.framework/TXLiteAVSDK_ReplayKitExt.bundle/PrivacyInfo.xcprivacy
0 → 100644
View file @
63186b06
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
NSPrivacyTracking
</key>
<false/>
<key>
NSPrivacyTrackingDomains
</key>
<array/>
<key>
NSPrivacyCollectedDataTypes
</key>
<array>
<dict>
<key>
NSPrivacyCollectedDataType
</key>
<string>
NSPrivacyCollectedDataTypePhotosorVideos
</string>
<key>
NSPrivacyCollectedDataTypeLinked
</key>
<false/>
<key>
NSPrivacyCollectedDataTypeTracking
</key>
<false/>
<key>
NSPrivacyCollectedDataTypePurposes
</key>
<array>
<string>
NSPrivacyCollectedDataTypePurposeAppFunctionality
</string>
</array>
</dict>
<dict>
<key>
NSPrivacyCollectedDataType
</key>
<string>
NSPrivacyCollectedDataTypeAudioData
</string>
<key>
NSPrivacyCollectedDataTypeLinked
</key>
<false/>
<key>
NSPrivacyCollectedDataTypeTracking
</key>
<false/>
<key>
NSPrivacyCollectedDataTypePurposes
</key>
<array>
<string>
NSPrivacyCollectedDataTypePurposeAppFunctionality
</string>
</array>
</dict>
</array>
<key>
NSPrivacyAccessedAPITypes
</key>
<array>
<dict>
<key>
NSPrivacyAccessedAPIType
</key>
<string>
NSPrivacyAccessedAPICategorySystemBootTime
</string>
<key>
NSPrivacyAccessedAPITypeReasons
</key>
<array>
<string>
35F9.1
</string>
</array>
</dict>
</array>
</dict>
</plist>
galaxy/yinheReplayExt/yinheReplayExt.entitlements
0 → 100644
View file @
63186b06
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
com.apple.security.application-groups
</key>
<array>
<string>
group.com.intelligence.galaxy
</string>
</array>
</dict>
</plist>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment