Merge branch 'develop_sky_liyi' into 'develop_sky'
Develop sky liyi See merge request StarlockTeam/app-starlock!182
This commit is contained in:
commit
61b7041e71
@ -239,25 +239,27 @@ class StartChartManage {
|
|||||||
// 初始化udp
|
// 初始化udp
|
||||||
Future<void> _onlineRelayService() async {
|
Future<void> _onlineRelayService() async {
|
||||||
var addressIListenFrom = InternetAddress.anyIPv4;
|
var addressIListenFrom = InternetAddress.anyIPv4;
|
||||||
RawDatagramSocket.bind(addressIListenFrom, localPort)
|
await RawDatagramSocket.bind(addressIListenFrom, localPort)
|
||||||
.then((RawDatagramSocket socket) {
|
.then((RawDatagramSocket socket) {
|
||||||
// 设置接收缓冲区大小 (SO_RCVBUF = 8)
|
// 设置接收缓冲区大小 (SO_RCVBUF = 8)
|
||||||
socket.setRawOption(
|
if (AppPlatform.isAndroid) {
|
||||||
RawSocketOption.fromInt(
|
socket.setRawOption(
|
||||||
RawSocketOption.levelSocket,
|
RawSocketOption.fromInt(
|
||||||
8, // SO_RCVBUF for Android/iOS
|
RawSocketOption.levelSocket,
|
||||||
2 * 1024 * 1024, // 2MB receive buffer
|
8, // SO_RCVBUF for Android/iOS
|
||||||
),
|
2 * 1024 * 1024, // 2MB receive buffer
|
||||||
);
|
),
|
||||||
|
);
|
||||||
|
|
||||||
// 设置发送缓冲区大小 (SO_SNDBUF = 7)
|
// 设置发送缓冲区大小 (SO_SNDBUF = 7)
|
||||||
socket.setRawOption(
|
socket.setRawOption(
|
||||||
RawSocketOption.fromInt(
|
RawSocketOption.fromInt(
|
||||||
RawSocketOption.levelSocket,
|
RawSocketOption.levelSocket,
|
||||||
7, // SO_SNDBUF for Android/iOS
|
7, // SO_SNDBUF for Android/iOS
|
||||||
2 * 1024 * 1024, // 2MB send buffer
|
2 * 1024 * 1024, // 2MB send buffer
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
_udpSocket = socket;
|
_udpSocket = socket;
|
||||||
|
|
||||||
|
|||||||
@ -106,9 +106,9 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
|
|||||||
state.isLoading.value = true;
|
state.isLoading.value = true;
|
||||||
// 创建解码器配置
|
// 创建解码器配置
|
||||||
final config = VideoDecoderConfig(
|
final config = VideoDecoderConfig(
|
||||||
width: StartChartManage().videoWidth,
|
width: 864,
|
||||||
// 实际视频宽度
|
// 实际视频宽度
|
||||||
height: StartChartManage().videoHeight,
|
height: 480,
|
||||||
codecType: 'h264',
|
codecType: 'h264',
|
||||||
);
|
);
|
||||||
// 初始化解码器并获取textureId
|
// 初始化解码器并获取textureId
|
||||||
|
|||||||
@ -130,7 +130,7 @@ dependencies:
|
|||||||
video_decode_plugin:
|
video_decode_plugin:
|
||||||
git:
|
git:
|
||||||
url: git@code.star-lock.cn:liyi/video_decode_plugin.git
|
url: git@code.star-lock.cn:liyi/video_decode_plugin.git
|
||||||
ref: 5dfbd190fdc61dab3fc93543606b85d6b826a2ed
|
ref: 1370536da9dfbe0d69ab6e229e4fa7fc026ea1ea
|
||||||
flutter_localizations:
|
flutter_localizations:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
@ -182,7 +182,8 @@ dependencies:
|
|||||||
#菊花
|
#菊花
|
||||||
flutter_easyloading: ^3.0.5
|
flutter_easyloading: ^3.0.5
|
||||||
#图形验证码
|
#图形验证码
|
||||||
aj_captcha_flutter: ^0.0.1
|
# aj_captcha_flutter: ^0.0.1
|
||||||
|
asn1lib: ^1.6.5
|
||||||
#国家选择
|
#国家选择
|
||||||
azlistview: ^2.0.0
|
azlistview: ^2.0.0
|
||||||
common_utils: ^2.0.0
|
common_utils: ^2.0.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user