Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
tx_player_fork
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蒋俊
tx_player_fork
Commits
7fc57eec
提交
7fc57eec
authored
5月 06, 2023
作者:
kongdywang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix IOS audio preemption issue & Android brightness issue
上级
a994d9de
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
378 行增加
和
439 行删除
+378
-439
SuperPlayerPlugin.java
.../main/java/com/tencent/vod/flutter/SuperPlayerPlugin.java
+10
-0
FtxMessages.java
...in/java/com/tencent/vod/flutter/messages/FtxMessages.java
+284
-429
FTXAudioManager.m
Flutter/ios/Classes/FTXAudioManager.m
+4
-1
SuperPlayerPlugin.m
Flutter/ios/Classes/SuperPlayerPlugin.m
+5
-0
FtxMessages.h
Flutter/ios/Classes/messages/FtxMessages.h
+6
-2
FtxMessages.m
Flutter/ios/Classes/messages/FtxMessages.m
+19
-1
txplayer_message.dart
Flutter/lib/Core/pigeons/txplayer_message.dart
+4
-1
superplayer_plugin.dart
Flutter/lib/Core/superplayer_plugin.dart
+6
-0
txplayer_messages.dart
Flutter/lib/Core/txplayer_messages.dart
+31
-5
superplayer_widget.dart
Flutter/superplayer_widget/lib/ui/superplayer_widget.dart
+9
-0
没有找到文件。
Flutter/android/src/main/java/com/tencent/vod/flutter/SuperPlayerPlugin.java
浏览文件 @
7fc57eec
...
...
@@ -474,6 +474,16 @@ public class SuperPlayerPlugin implements FlutterPlugin, ActivityAware,
return
doubleMsg
;
}
@NonNull
@Override
public
DoubleMsg
getSysBrightness
()
{
float
brightness
=
getSystemScreenBrightness
();
BigDecimal
bigDecimal
=
BigDecimal
.
valueOf
(
brightness
);
DoubleMsg
doubleMsg
=
new
DoubleMsg
();
doubleMsg
.
setValue
(
bigDecimal
.
doubleValue
());
return
doubleMsg
;
}
@Override
public
void
setSystemVolume
(
@NonNull
DoubleMsg
volume
)
{
mTxAudioManager
.
setSystemVolume
(
volume
.
getValue
());
...
...
Flutter/android/src/main/java/com/tencent/vod/flutter/messages/FtxMessages.java
浏览文件 @
7fc57eec
// // Copyright (c) 2022 Tencent. All rights reserved.
// Autogenerated from Pigeon (v9.
0.4
), do not edit directly.
// Autogenerated from Pigeon (v9.
1.0
), do not edit directly.
// See also: https://pub.dev/packages/pigeon
package
com
.
tencent
.
vod
.
flutter
.
messages
;
...
...
@@ -21,21 +21,46 @@ import java.util.List;
import
java.util.Map
;
/** Generated class from Pigeon. */
@SuppressWarnings
({
"unused"
,
"unchecked"
,
"CodeBlock2Expr"
,
"RedundantSuppression"
})
@SuppressWarnings
({
"unused"
,
"unchecked"
,
"CodeBlock2Expr"
,
"RedundantSuppression"
,
"serial"
})
public
class
FtxMessages
{
/** Error class for passing custom error details to Flutter via a thrown PlatformException. */
public
static
class
FlutterError
extends
RuntimeException
{
/** The error code. */
public
final
String
code
;
/** The error details. Must be a datatype supported by the api codec. */
public
final
Object
details
;
public
FlutterError
(
@NonNull
String
code
,
@Nullable
String
message
,
@Nullable
Object
details
)
{
super
(
message
);
this
.
code
=
code
;
this
.
details
=
details
;
}
}
@NonNull
private
static
ArrayList
<
Object
>
wrapError
(
@NonNull
Throwable
exception
)
{
ArrayList
<
Object
>
errorList
=
new
ArrayList
<
Object
>(
3
);
if
(
exception
instanceof
FlutterError
)
{
FlutterError
error
=
(
FlutterError
)
exception
;
errorList
.
add
(
error
.
code
);
errorList
.
add
(
error
.
getMessage
());
errorList
.
add
(
error
.
details
);
}
else
{
errorList
.
add
(
exception
.
toString
());
errorList
.
add
(
exception
.
getClass
().
getSimpleName
());
errorList
.
add
(
"Cause: "
+
exception
.
getCause
()
+
", Stacktrace: "
+
Log
.
getStackTraceString
(
exception
));
}
return
errorList
;
}
/**
* pigeon原始原件,由此文件生成messages原生通信代码
* 生成命令如下
* 生成命令如下
,使用生成命令的时候,需要实现注释掉以上两个import导入
*
* Generated class from Pigeon that represents data sent in messages.
*/
...
...
@@ -2413,7 +2438,8 @@ public class FtxMessages {
try
{
StringMsg
output
=
api
.
getPlatformVersion
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2434,7 +2460,8 @@ public class FtxMessages {
try
{
PlayerMsg
output
=
api
.
createVodPlayer
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2455,7 +2482,8 @@ public class FtxMessages {
try
{
PlayerMsg
output
=
api
.
createLivePlayer
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2473,16 +2501,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolMsg
enabledArg
=
(
BoolMsg
)
args
.
get
(
0
);
if
(
enabledArg
==
null
)
{
throw
new
NullPointerException
(
"enabledArg unexpectedly null."
);
}
try
{
api
.
setConsoleEnabled
(
enabledArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2500,16 +2525,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerIdArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerIdArg
==
null
)
{
throw
new
NullPointerException
(
"playerIdArg unexpectedly null."
);
}
try
{
api
.
releasePlayer
(
playerIdArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2527,16 +2549,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
IntMsg
sizeArg
=
(
IntMsg
)
args
.
get
(
0
);
if
(
sizeArg
==
null
)
{
throw
new
NullPointerException
(
"sizeArg unexpectedly null."
);
}
try
{
api
.
setGlobalMaxCacheSize
(
sizeArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2554,16 +2573,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringMsg
postfixPathArg
=
(
StringMsg
)
args
.
get
(
0
);
if
(
postfixPathArg
==
null
)
{
throw
new
NullPointerException
(
"postfixPathArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
setGlobalCacheFolderPath
(
postfixPathArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2581,16 +2597,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
LicenseMsg
licenseMsgArg
=
(
LicenseMsg
)
args
.
get
(
0
);
if
(
licenseMsgArg
==
null
)
{
throw
new
NullPointerException
(
"licenseMsgArg unexpectedly null."
);
}
try
{
api
.
setGlobalLicense
(
licenseMsgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2608,16 +2621,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
IntMsg
logLevelArg
=
(
IntMsg
)
args
.
get
(
0
);
if
(
logLevelArg
==
null
)
{
throw
new
NullPointerException
(
"logLevelArg unexpectedly null."
);
}
try
{
api
.
setLogLevel
(
logLevelArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2638,7 +2648,8 @@ public class FtxMessages {
try
{
StringMsg
output
=
api
.
getLiteAVSDKVersion
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2656,16 +2667,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringMsg
envConfigArg
=
(
StringMsg
)
args
.
get
(
0
);
if
(
envConfigArg
==
null
)
{
throw
new
NullPointerException
(
"envConfigArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
setGlobalEnv
(
envConfigArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2686,7 +2694,8 @@ public class FtxMessages {
try
{
BoolMsg
output
=
api
.
startVideoOrientationService
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2739,6 +2748,9 @@ public class FtxMessages {
/** 获得当前界面亮度 0.0 ~ 1.0 */
@NonNull
DoubleMsg
getBrightness
();
/** 获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异 */
@NonNull
DoubleMsg
getSysBrightness
();
/** 设置当前系统音量,0.0 ~ 1.0 */
void
setSystemVolume
(
@NonNull
DoubleMsg
volume
);
/** 获得当前系统音量,范围:0.0 ~ 1.0 */
...
...
@@ -2773,16 +2785,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
DoubleMsg
brightnessArg
=
(
DoubleMsg
)
args
.
get
(
0
);
if
(
brightnessArg
==
null
)
{
throw
new
NullPointerException
(
"brightnessArg unexpectedly null."
);
}
try
{
api
.
setBrightness
(
brightnessArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2803,7 +2812,8 @@ public class FtxMessages {
try
{
api
.
restorePageBrightness
();
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2824,7 +2834,8 @@ public class FtxMessages {
try
{
DoubleMsg
output
=
api
.
getBrightness
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2837,21 +2848,40 @@ public class FtxMessages {
{
BasicMessageChannel
<
Object
>
channel
=
new
BasicMessageChannel
<>(
binaryMessenger
,
"dev.flutter.pigeon.TXFlutterNativeAPI.
setSystemVolume
"
,
getCodec
());
binaryMessenger
,
"dev.flutter.pigeon.TXFlutterNativeAPI.
getSysBrightness
"
,
getCodec
());
if
(
api
!=
null
)
{
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
DoubleMsg
output
=
api
.
getSysBrightness
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
reply
.
reply
(
wrapped
);
});
}
else
{
channel
.
setMessageHandler
(
null
);
}
}
{
BasicMessageChannel
<
Object
>
channel
=
new
BasicMessageChannel
<>(
binaryMessenger
,
"dev.flutter.pigeon.TXFlutterNativeAPI.setSystemVolume"
,
getCodec
());
if
(
api
!=
null
)
{
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
DoubleMsg
volumeArg
=
(
DoubleMsg
)
args
.
get
(
0
);
if
(
volumeArg
==
null
)
{
throw
new
NullPointerException
(
"volumeArg unexpectedly null."
);
}
try
{
api
.
setSystemVolume
(
volumeArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2872,7 +2902,8 @@ public class FtxMessages {
try
{
DoubleMsg
output
=
api
.
getSystemVolume
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2893,7 +2924,8 @@ public class FtxMessages {
try
{
api
.
abandonAudioFocus
();
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2914,7 +2946,8 @@ public class FtxMessages {
try
{
api
.
requestAudioFocus
();
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -2935,7 +2968,8 @@ public class FtxMessages {
try
{
IntMsg
output
=
api
.
isDeviceSupportPip
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3177,16 +3211,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
onlyAudioArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
onlyAudioArg
==
null
)
{
throw
new
NullPointerException
(
"onlyAudioArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
initialize
(
onlyAudioArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3204,16 +3235,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringPlayerMsg
urlArg
=
(
StringPlayerMsg
)
args
.
get
(
0
);
if
(
urlArg
==
null
)
{
throw
new
NullPointerException
(
"urlArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
startVodPlay
(
urlArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3231,16 +3259,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
TXPlayInfoParamsPlayerMsg
paramsArg
=
(
TXPlayInfoParamsPlayerMsg
)
args
.
get
(
0
);
if
(
paramsArg
==
null
)
{
throw
new
NullPointerException
(
"paramsArg unexpectedly null."
);
}
try
{
api
.
startVodPlayWithParams
(
paramsArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3258,16 +3283,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
isAutoPlayArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
isAutoPlayArg
==
null
)
{
throw
new
NullPointerException
(
"isAutoPlayArg unexpectedly null."
);
}
try
{
api
.
setAutoPlay
(
isAutoPlayArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3285,16 +3307,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
isNeedClearArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
isNeedClearArg
==
null
)
{
throw
new
NullPointerException
(
"isNeedClearArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
stop
(
isNeedClearArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3312,16 +3331,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
isPlaying
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3339,16 +3355,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
api
.
pause
(
playerMsgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3366,16 +3379,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
api
.
resume
(
playerMsgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3393,16 +3403,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
muteArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
muteArg
==
null
)
{
throw
new
NullPointerException
(
"muteArg unexpectedly null."
);
}
try
{
api
.
setMute
(
muteArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3420,16 +3427,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
loopArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
loopArg
==
null
)
{
throw
new
NullPointerException
(
"loopArg unexpectedly null."
);
}
try
{
api
.
setLoop
(
loopArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3447,16 +3451,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
DoublePlayerMsg
progressArg
=
(
DoublePlayerMsg
)
args
.
get
(
0
);
if
(
progressArg
==
null
)
{
throw
new
NullPointerException
(
"progressArg unexpectedly null."
);
}
try
{
api
.
seek
(
progressArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3474,16 +3475,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
DoublePlayerMsg
rateArg
=
(
DoublePlayerMsg
)
args
.
get
(
0
);
if
(
rateArg
==
null
)
{
throw
new
NullPointerException
(
"rateArg unexpectedly null."
);
}
try
{
api
.
setRate
(
rateArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3501,16 +3499,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
ListMsg
output
=
api
.
getSupportedBitrate
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3528,16 +3523,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
getBitrateIndex
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3555,16 +3547,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
IntPlayerMsg
indexArg
=
(
IntPlayerMsg
)
args
.
get
(
0
);
if
(
indexArg
==
null
)
{
throw
new
NullPointerException
(
"indexArg unexpectedly null."
);
}
try
{
api
.
setBitrateIndex
(
indexArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3582,16 +3571,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
DoublePlayerMsg
startTimeArg
=
(
DoublePlayerMsg
)
args
.
get
(
0
);
if
(
startTimeArg
==
null
)
{
throw
new
NullPointerException
(
"startTimeArg unexpectedly null."
);
}
try
{
api
.
setStartTime
(
startTimeArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3609,16 +3595,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
IntPlayerMsg
volumeArg
=
(
IntPlayerMsg
)
args
.
get
(
0
);
if
(
volumeArg
==
null
)
{
throw
new
NullPointerException
(
"volumeArg unexpectedly null."
);
}
try
{
api
.
setAudioPlayOutVolume
(
volumeArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3636,16 +3619,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
focusArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
focusArg
==
null
)
{
throw
new
NullPointerException
(
"focusArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
setRequestAudioFocus
(
focusArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3663,16 +3643,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
FTXVodPlayConfigPlayerMsg
configArg
=
(
FTXVodPlayConfigPlayerMsg
)
args
.
get
(
0
);
if
(
configArg
==
null
)
{
throw
new
NullPointerException
(
"configArg unexpectedly null."
);
}
try
{
api
.
setConfig
(
configArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3690,16 +3667,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
DoubleMsg
output
=
api
.
getCurrentPlaybackTime
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3717,16 +3691,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
DoubleMsg
output
=
api
.
getBufferDuration
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3744,16 +3715,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
DoubleMsg
output
=
api
.
getPlayableDuration
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3771,16 +3739,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
getWidth
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3798,16 +3763,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
getHeight
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3825,16 +3787,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringPlayerMsg
tokenArg
=
(
StringPlayerMsg
)
args
.
get
(
0
);
if
(
tokenArg
==
null
)
{
throw
new
NullPointerException
(
"tokenArg unexpectedly null."
);
}
try
{
api
.
setToken
(
tokenArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3852,16 +3811,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
isLoop
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3879,16 +3835,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
enableArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
enableArg
==
null
)
{
throw
new
NullPointerException
(
"enableArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
enableHardwareDecode
(
enableArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3906,16 +3859,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PipParamsPlayerMsg
pipParamsMsgArg
=
(
PipParamsPlayerMsg
)
args
.
get
(
0
);
if
(
pipParamsMsgArg
==
null
)
{
throw
new
NullPointerException
(
"pipParamsMsgArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
enterPictureInPictureMode
(
pipParamsMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3933,16 +3883,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
api
.
exitPictureInPictureMode
(
playerMsgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3960,16 +3907,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringListPlayerMsg
spriteInfoArg
=
(
StringListPlayerMsg
)
args
.
get
(
0
);
if
(
spriteInfoArg
==
null
)
{
throw
new
NullPointerException
(
"spriteInfoArg unexpectedly null."
);
}
try
{
api
.
initImageSprite
(
spriteInfoArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -3987,16 +3931,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
DoublePlayerMsg
timeArg
=
(
DoublePlayerMsg
)
args
.
get
(
0
);
if
(
timeArg
==
null
)
{
throw
new
NullPointerException
(
"timeArg unexpectedly null."
);
}
try
{
UInt8ListMsg
output
=
api
.
getImageSprite
(
timeArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4014,16 +3955,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
DoubleMsg
output
=
api
.
getDuration
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4203,16 +4141,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
onlyAudioArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
onlyAudioArg
==
null
)
{
throw
new
NullPointerException
(
"onlyAudioArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
initialize
(
onlyAudioArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4230,16 +4165,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringIntPlayerMsg
playerMsgArg
=
(
StringIntPlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
startLivePlay
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4257,16 +4189,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
isAutoPlayArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
isAutoPlayArg
==
null
)
{
throw
new
NullPointerException
(
"isAutoPlayArg unexpectedly null."
);
}
try
{
api
.
setAutoPlay
(
isAutoPlayArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4284,16 +4213,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
isNeedClearArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
isNeedClearArg
==
null
)
{
throw
new
NullPointerException
(
"isNeedClearArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
stop
(
isNeedClearArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4311,16 +4237,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
isPlaying
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4338,16 +4261,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
api
.
pause
(
playerMsgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4365,16 +4285,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
api
.
resume
(
playerMsgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4392,16 +4309,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
IntPlayerMsg
modeArg
=
(
IntPlayerMsg
)
args
.
get
(
0
);
if
(
modeArg
==
null
)
{
throw
new
NullPointerException
(
"modeArg unexpectedly null."
);
}
try
{
api
.
setLiveMode
(
modeArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4419,16 +4333,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
IntPlayerMsg
volumeArg
=
(
IntPlayerMsg
)
args
.
get
(
0
);
if
(
volumeArg
==
null
)
{
throw
new
NullPointerException
(
"volumeArg unexpectedly null."
);
}
try
{
api
.
setVolume
(
volumeArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4446,16 +4357,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
muteArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
muteArg
==
null
)
{
throw
new
NullPointerException
(
"muteArg unexpectedly null."
);
}
try
{
api
.
setMute
(
muteArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4473,16 +4381,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringPlayerMsg
urlArg
=
(
StringPlayerMsg
)
args
.
get
(
0
);
if
(
urlArg
==
null
)
{
throw
new
NullPointerException
(
"urlArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
switchStream
(
urlArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4500,16 +4405,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
DoublePlayerMsg
progressArg
=
(
DoublePlayerMsg
)
args
.
get
(
0
);
if
(
progressArg
==
null
)
{
throw
new
NullPointerException
(
"progressArg unexpectedly null."
);
}
try
{
api
.
seek
(
progressArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4527,16 +4429,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringPlayerMsg
appIdArg
=
(
StringPlayerMsg
)
args
.
get
(
0
);
if
(
appIdArg
==
null
)
{
throw
new
NullPointerException
(
"appIdArg unexpectedly null."
);
}
try
{
api
.
setAppID
(
appIdArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4554,16 +4453,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
StringIntPlayerMsg
playerMsgArg
=
(
StringIntPlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
api
.
prepareLiveSeek
(
playerMsgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4581,16 +4477,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
resumeLive
(
playerMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4608,16 +4501,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
DoublePlayerMsg
rateArg
=
(
DoublePlayerMsg
)
args
.
get
(
0
);
if
(
rateArg
==
null
)
{
throw
new
NullPointerException
(
"rateArg unexpectedly null."
);
}
try
{
api
.
setRate
(
rateArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4635,16 +4525,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
FTXLivePlayConfigPlayerMsg
configArg
=
(
FTXLivePlayConfigPlayerMsg
)
args
.
get
(
0
);
if
(
configArg
==
null
)
{
throw
new
NullPointerException
(
"configArg unexpectedly null."
);
}
try
{
api
.
setConfig
(
configArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4662,16 +4549,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
BoolPlayerMsg
enableArg
=
(
BoolPlayerMsg
)
args
.
get
(
0
);
if
(
enableArg
==
null
)
{
throw
new
NullPointerException
(
"enableArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
enableHardwareDecode
(
enableArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4689,16 +4573,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PipParamsPlayerMsg
pipParamsMsgArg
=
(
PipParamsPlayerMsg
)
args
.
get
(
0
);
if
(
pipParamsMsgArg
==
null
)
{
throw
new
NullPointerException
(
"pipParamsMsgArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
enterPictureInPictureMode
(
pipParamsMsgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4716,16 +4597,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PlayerMsg
playerMsgArg
=
(
PlayerMsg
)
args
.
get
(
0
);
if
(
playerMsgArg
==
null
)
{
throw
new
NullPointerException
(
"playerMsgArg unexpectedly null."
);
}
try
{
api
.
exitPictureInPictureMode
(
playerMsgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4847,16 +4725,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
PreLoadMsg
msgArg
=
(
PreLoadMsg
)
args
.
get
(
0
);
if
(
msgArg
==
null
)
{
throw
new
NullPointerException
(
"msgArg unexpectedly null."
);
}
try
{
IntMsg
output
=
api
.
startPreLoad
(
msgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4874,16 +4749,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
IntMsg
msgArg
=
(
IntMsg
)
args
.
get
(
0
);
if
(
msgArg
==
null
)
{
throw
new
NullPointerException
(
"msgArg unexpectedly null."
);
}
try
{
api
.
stopPreLoad
(
msgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4901,16 +4773,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
TXVodDownloadMediaMsg
msgArg
=
(
TXVodDownloadMediaMsg
)
args
.
get
(
0
);
if
(
msgArg
==
null
)
{
throw
new
NullPointerException
(
"msgArg unexpectedly null."
);
}
try
{
api
.
startDownload
(
msgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4928,16 +4797,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
TXVodDownloadMediaMsg
msgArg
=
(
TXVodDownloadMediaMsg
)
args
.
get
(
0
);
if
(
msgArg
==
null
)
{
throw
new
NullPointerException
(
"msgArg unexpectedly null."
);
}
try
{
api
.
resumeDownload
(
msgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4955,16 +4821,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
TXVodDownloadMediaMsg
msgArg
=
(
TXVodDownloadMediaMsg
)
args
.
get
(
0
);
if
(
msgArg
==
null
)
{
throw
new
NullPointerException
(
"msgArg unexpectedly null."
);
}
try
{
api
.
stopDownload
(
msgArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -4982,16 +4845,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
MapMsg
headersArg
=
(
MapMsg
)
args
.
get
(
0
);
if
(
headersArg
==
null
)
{
throw
new
NullPointerException
(
"headersArg unexpectedly null."
);
}
try
{
api
.
setDownloadHeaders
(
headersArg
);
wrapped
.
add
(
0
,
null
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -5012,7 +4872,8 @@ public class FtxMessages {
try
{
TXDownloadListMsg
output
=
api
.
getDownloadList
();
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -5030,16 +4891,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
TXVodDownloadMediaMsg
msgArg
=
(
TXVodDownloadMediaMsg
)
args
.
get
(
0
);
if
(
msgArg
==
null
)
{
throw
new
NullPointerException
(
"msgArg unexpectedly null."
);
}
try
{
TXVodDownloadMediaMsg
output
=
api
.
getDownloadInfo
(
msgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
@@ -5057,16 +4915,13 @@ public class FtxMessages {
channel
.
setMessageHandler
(
(
message
,
reply
)
->
{
ArrayList
<
Object
>
wrapped
=
new
ArrayList
<
Object
>();
try
{
ArrayList
<
Object
>
args
=
(
ArrayList
<
Object
>)
message
;
assert
args
!=
null
;
TXVodDownloadMediaMsg
msgArg
=
(
TXVodDownloadMediaMsg
)
args
.
get
(
0
);
if
(
msgArg
==
null
)
{
throw
new
NullPointerException
(
"msgArg unexpectedly null."
);
}
try
{
BoolMsg
output
=
api
.
deleteDownloadMediaInfo
(
msgArg
);
wrapped
.
add
(
0
,
output
);
}
catch
(
Error
|
RuntimeException
exception
)
{
}
catch
(
Throwable
exception
)
{
ArrayList
<
Object
>
wrappedError
=
wrapError
(
exception
);
wrapped
=
wrappedError
;
}
...
...
Flutter/ios/Classes/FTXAudioManager.m
浏览文件 @
7fc57eec
...
...
@@ -29,7 +29,6 @@ NSString *const NOTIFCATION_NAME = @"SystemVolumeDidChange";
}
audioSession
=
[
AVAudioSession
sharedInstance
];
[
audioSession
setActive
:
true
error
:
nil
];
}
return
self
;
};
...
...
@@ -44,6 +43,8 @@ NSString *const NOTIFCATION_NAME = @"SystemVolumeDidChange";
{
// 需要设置 showsVolumeSlider 为 YES
volumeView
.
showsVolumeSlider
=
YES
;
// 获取音频焦点
[
audioSession
setActive
:
true
error
:
nil
];
[
_volumeSlider
setValue
:
value
animated
:
NO
];
[
_volumeSlider
sendActionsForControlEvents
:
UIControlEventTouchUpInside
];
[
_volumeSlider
sizeToFit
];
...
...
@@ -51,6 +52,8 @@ NSString *const NOTIFCATION_NAME = @"SystemVolumeDidChange";
-
(
void
)
setVolumeUIVisible
:
(
BOOL
)
volumeUIVisible
{
// 获取音频焦点
[
audioSession
setActive
:
true
error
:
nil
];
volumeView
.
hidden
=
!
volumeUIVisible
;
}
...
...
Flutter/ios/Classes/SuperPlayerPlugin.m
浏览文件 @
7fc57eec
...
...
@@ -306,6 +306,11 @@ SuperPlayerPlugin* instance;
return
[
CommonUtil
doubleMsgWith
:
brightness
.
doubleValue
];
}
-
(
DoubleMsg
*
)
getSysBrightnessWithError
:
(
FlutterError
*
_Nullable
__autoreleasing
*
)
error
{
NSNumber
*
brightness
=
[
NSNumber
numberWithFloat
:[
UIScreen
mainScreen
].
brightness
];
return
[
CommonUtil
doubleMsgWith
:
brightness
.
doubleValue
];
}
-
(
nullable
DoubleMsg
*
)
getSystemVolumeWithError
:
(
FlutterError
*
_Nullable
__autoreleasing
*
_Nonnull
)
error
{
NSNumber
*
volume
=
[
NSNumber
numberWithFloat
:[
audioManager
getVolume
]];
return
[
CommonUtil
doubleMsgWith
:
volume
.
doubleValue
];
...
...
Flutter/ios/Classes/messages/FtxMessages.h
浏览文件 @
7fc57eec
// // Copyright (c) 2022 Tencent. All rights reserved.
// Autogenerated from Pigeon (v9.
0.4
), do not edit directly.
// Autogenerated from Pigeon (v9.
1.0
), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import <Foundation/Foundation.h>
...
...
@@ -35,7 +35,7 @@ NS_ASSUME_NONNULL_BEGIN
@class
MapMsg
;
/// pigeon原始原件,由此文件生成messages原生通信代码
/// 生成命令如下
/// 生成命令如下
,使用生成命令的时候,需要实现注释掉以上两个import导入
@interface
PlayerMsg
:
NSObject
+
(
instancetype
)
makeWithPlayerId
:(
nullable
NSNumber
*
)
playerId
;
@property
(
nonatomic
,
strong
,
nullable
)
NSNumber
*
playerId
;
...
...
@@ -365,6 +365,10 @@ NSObject<FlutterMessageCodec> *TXFlutterNativeAPIGetCodec(void);
///
/// @return `nil` only when `error != nil`.
-
(
nullable
DoubleMsg
*
)
getBrightnessWithError
:(
FlutterError
*
_Nullable
*
_Nonnull
)
error
;
/// 获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异
///
/// @return `nil` only when `error != nil`.
-
(
nullable
DoubleMsg
*
)
getSysBrightnessWithError
:(
FlutterError
*
_Nullable
*
_Nonnull
)
error
;
/// 设置当前系统音量,0.0 ~ 1.0
-
(
void
)
setSystemVolumeVolume
:(
DoubleMsg
*
)
volume
error
:(
FlutterError
*
_Nullable
*
_Nonnull
)
error
;
/// 获得当前系统音量,范围:0.0 ~ 1.0
...
...
Flutter/ios/Classes/messages/FtxMessages.m
浏览文件 @
7fc57eec
// // Copyright (c) 2022 Tencent. All rights reserved.
// Autogenerated from Pigeon (v9.
0.4
), do not edit directly.
// Autogenerated from Pigeon (v9.
1.0
), do not edit directly.
// See also: https://pub.dev/packages/pigeon
#import "FtxMessages.h"
...
...
@@ -1291,6 +1291,24 @@ void TXFlutterNativeAPISetup(id<FlutterBinaryMessenger> binaryMessenger, NSObjec
[
channel
setMessageHandler
:
nil
];
}
}
/// 获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异
{
FlutterBasicMessageChannel
*
channel
=
[[
FlutterBasicMessageChannel
alloc
]
initWithName
:
@"dev.flutter.pigeon.TXFlutterNativeAPI.getSysBrightness"
binaryMessenger
:
binaryMessenger
codec
:
TXFlutterNativeAPIGetCodec
()];
if
(
api
)
{
NSCAssert
([
api
respondsToSelector
:
@selector
(
getSysBrightnessWithError
:)],
@"TXFlutterNativeAPI api (%@) doesn't respond to @selector(getSysBrightnessWithError:)"
,
api
);
[
channel
setMessageHandler
:
^
(
id
_Nullable
message
,
FlutterReply
callback
)
{
FlutterError
*
error
;
DoubleMsg
*
output
=
[
api
getSysBrightnessWithError
:
&
error
];
callback
(
wrapResult
(
output
,
error
));
}];
}
else
{
[
channel
setMessageHandler
:
nil
];
}
}
/// 设置当前系统音量,0.0 ~ 1.0
{
FlutterBasicMessageChannel
*
channel
=
...
...
Flutter/lib/Core/pigeons/txplayer_message.dart
浏览文件 @
7fc57eec
...
...
@@ -2,7 +2,7 @@
import
'package:pigeon/pigeon.dart'
;
import
'package:super_player/super_player.dart'
;
/// pigeon原始原件,由此文件生成messages原生通信代码
/// 生成命令如下
/// 生成命令如下
,使用生成命令的时候,需要实现注释掉以上两个import导入
/*
flutter pub run pigeon \
--input lib/Core/pigeons/txplayer_message.dart \
...
...
@@ -335,6 +335,9 @@ abstract class TXFlutterNativeAPI {
/// 获得当前界面亮度 0.0 ~ 1.0
DoubleMsg
getBrightness
();
/// 获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异
DoubleMsg
getSysBrightness
();
/// 设置当前系统音量,0.0 ~ 1.0
void
setSystemVolume
(
DoubleMsg
volume
);
...
...
Flutter/lib/Core/superplayer_plugin.dart
浏览文件 @
7fc57eec
...
...
@@ -130,6 +130,12 @@ class SuperPlayerPlugin {
return
doubleMsg
.
value
;
}
/// 获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异 范围:0.0 ~ 1.0
static
Future
<
double
?>
getSysBrightness
()
async
{
DoubleMsg
doubleMsg
=
await
_nativeAPI
.
getSysBrightness
();
return
doubleMsg
.
value
;
}
/// 设置当前系统音量,0.0 ~ 1.0
static
Future
<
void
>
setSystemVolume
(
double
volume
)
async
{
return
await
_nativeAPI
.
setSystemVolume
(
DoubleMsg
()..
value
=
volume
);
...
...
Flutter/lib/Core/txplayer_messages.dart
浏览文件 @
7fc57eec
// // Copyright (c) 2022 Tencent. All rights reserved.
// Copyright (c) 2022 Tencent. All rights reserved.
part of
SuperPlayer
;
// Autogenerated from Pigeon (v9.0.4), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import
/// pigeon原始原件,由此文件生成messages原生通信代码
/// 生成命令如下
/// 生成命令如下
,使用生成命令的时候,需要实现注释掉以上两个import导入
class
PlayerMsg
{
PlayerMsg
({
this
.
playerId
,
...
...
@@ -1290,6 +1288,34 @@ class TXFlutterNativeAPI {
}
}
/// 获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异
Future
<
DoubleMsg
>
getSysBrightness
()
async
{
final
BasicMessageChannel
<
Object
?>
channel
=
BasicMessageChannel
<
Object
?>(
'dev.flutter.pigeon.TXFlutterNativeAPI.getSysBrightness'
,
codec
,
binaryMessenger:
_binaryMessenger
);
final
List
<
Object
?>?
replyList
=
await
channel
.
send
(
null
)
as
List
<
Object
?>?;
if
(
replyList
==
null
)
{
throw
PlatformException
(
code:
'channel-error'
,
message:
'Unable to establish connection on channel.'
,
);
}
else
if
(
replyList
.
length
>
1
)
{
throw
PlatformException
(
code:
replyList
[
0
]!
as
String
,
message:
replyList
[
1
]
as
String
?,
details:
replyList
[
2
],
);
}
else
if
(
replyList
[
0
]
==
null
)
{
throw
PlatformException
(
code:
'null-error'
,
message:
'Host platform returned null value for non-null return value.'
,
);
}
else
{
return
(
replyList
[
0
]
as
DoubleMsg
?)!;
}
}
/// 设置当前系统音量,0.0 ~ 1.0
Future
<
void
>
setSystemVolume
(
DoubleMsg
arg_volume
)
async
{
final
BasicMessageChannel
<
Object
?>
channel
=
BasicMessageChannel
<
Object
?>(
...
...
Flutter/superplayer_widget/lib/ui/superplayer_widget.dart
浏览文件 @
7fc57eec
...
...
@@ -320,6 +320,7 @@ class SuperPlayerViewState extends State<SuperPlayerView> with WidgetsBindingObs
// 页面从后台回来
// 不更新状态,直接resume
_playController
.
getCurrentController
().
resume
();
checkBrightness
();
// 从后台回来之后,如果手机横竖屏状态发生更改,被改为竖屏,那么这里根据判断切换横屏
if
(
_playController
.
_playerUIStatus
==
SuperPlayerUIStatus
.
FULLSCREEN_MODE
&&
defaultTargetPlatform
==
TargetPlatform
.
iOS
)
{
...
...
@@ -337,6 +338,14 @@ class SuperPlayerViewState extends State<SuperPlayerView> with WidgetsBindingObs
}
}
void
checkBrightness
()
async
{
double
?
sysBrightness
=
await
SuperPlayerPlugin
.
getSysBrightness
();
double
?
windowBrightness
=
await
SuperPlayerPlugin
.
getBrightness
();
if
(
sysBrightness
!=
windowBrightness
&&
null
!=
sysBrightness
)
{
SuperPlayerPlugin
.
setBrightness
(
sysBrightness
);
}
}
void
_calculateSize
(
double
videoWidth
,
double
videoHeight
)
{
if
(
mounted
&&
(
0
!=
videoWidth
&&
0
!=
videoHeight
)
&&
(
_videoWidth
!=
videoWidth
&&
_videoHeight
!=
videoHeight
))
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论