Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
tx_player_fork
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蒋俊
tx_player_fork
Commits
678ae76d
提交
678ae76d
authored
9月 03, 2025
作者:
kongdywang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix the issue of invalid renderMode
(cherry picked from commit 94eeb078bd36aa18c59e912ee8a0adab1ff40768)
上级
bad4fb1d
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
39 行增加
和
13 行删除
+39
-13
CHANGELOG.md
Flutter/CHANGELOG.md
+7
-0
buildVersionOnMac.sh
Flutter/CI/buildVersionOnMac.sh
+1
-1
config.gradle
Flutter/android/config.gradle
+1
-1
FTXTextureRender.java
...encent/vod/flutter/player/render/gl/FTXTextureRender.java
+24
-6
super_player.podspec
Flutter/ios/super_player.podspec
+1
-1
common_config.dart
Flutter/lib/Core/common/common_config.dart
+2
-1
pubspec.yaml
Flutter/pubspec.yaml
+1
-1
player_constants.dart
...idget/superplayer_widget/lib/common/player_constants.dart
+1
-1
pubspec.yaml
FlutterWidget/superplayer_widget/pubspec.yaml
+1
-1
没有找到文件。
Flutter/CHANGELOG.md
浏览文件 @
678ae76d
#### Version: 12.7.3 2025.09.03
##### Features:
-
Fix the issue of invalid renderMode.
#### Version: 12.7.2 2025.08.29
#### Version: 12.7.2 2025.08.29
##### Features:
##### Features:
...
...
Flutter/CI/buildVersionOnMac.sh
浏览文件 @
678ae76d
...
@@ -5,7 +5,7 @@ buildLog() {
...
@@ -5,7 +5,7 @@ buildLog() {
}
}
inputVersion
=
$1
inputVersion
=
$1
export
VERSION_NAME
=
"12.7.
2
"
export
VERSION_NAME
=
"12.7.
3
"
if
[
-n
"
$inputVersion
"
]
;
then
if
[
-n
"
$inputVersion
"
]
;
then
VERSION_NAME
=
$inputVersion
VERSION_NAME
=
$inputVersion
fi
fi
...
...
Flutter/android/config.gradle
浏览文件 @
678ae76d
...
@@ -4,7 +4,7 @@ rootProject.ext {
...
@@ -4,7 +4,7 @@ rootProject.ext {
supportSdkVersion
=
"26.0.1"
supportSdkVersion
=
"26.0.1"
minSdkVersion
=
19
minSdkVersion
=
19
targetSdkVersion
=
28
targetSdkVersion
=
28
playerVersion
=
"12.7.
2
"
playerVersion
=
"12.7.
3
"
compat
=
"androidx.appcompat:appcompat:1.6.1"
compat
=
"androidx.appcompat:appcompat:1.6.1"
/**
/**
...
...
Flutter/android/src/main/java/com/tencent/vod/flutter/player/render/gl/FTXTextureRender.java
浏览文件 @
678ae76d
...
@@ -56,6 +56,7 @@ public class FTXTextureRender {
...
@@ -56,6 +56,7 @@ public class FTXTextureRender {
private
final
float
[]
projectionMatrix
=
new
float
[
16
];
private
final
float
[]
projectionMatrix
=
new
float
[
16
];
private
final
float
[]
rotationMatrix
=
new
float
[
16
];
private
final
float
[]
rotationMatrix
=
new
float
[
16
];
private
final
float
[]
mResultMatrix
=
new
float
[
16
];
private
int
mVideoFragmentProgram
;
private
int
mVideoFragmentProgram
;
private
int
muMVPMatrixHandle
;
private
int
muMVPMatrixHandle
;
...
@@ -69,7 +70,7 @@ public class FTXTextureRender {
...
@@ -69,7 +70,7 @@ public class FTXTextureRender {
private
int
mPortWidth
;
private
int
mPortWidth
;
private
int
mPortHeight
;
private
int
mPortHeight
;
private
float
rotationAngle
=
9
0
;
private
float
rotationAngle
=
0
;
public
FTXTextureRender
(
int
width
,
int
height
)
{
public
FTXTextureRender
(
int
width
,
int
height
)
{
mPortWidth
=
width
;
mPortWidth
=
width
;
...
@@ -159,7 +160,7 @@ public class FTXTextureRender {
...
@@ -159,7 +160,7 @@ public class FTXTextureRender {
+
",mHeight:"
+
mVideoHeight
+
",viewWidth:"
+
mPortWidth
+
",viewHeight:"
+
",mHeight:"
+
mVideoHeight
+
",viewWidth:"
+
mPortWidth
+
",viewHeight:"
+
mPortHeight
+
",hashCode:"
+
hashCode
());
+
mPortHeight
+
",hashCode:"
+
hashCode
());
}
}
Matrix
.
orthoM
(
projectionMatrix
,
0
,
left
,
right
,
bottom
,
top
,
-
1
f
,
1
f
);
updateProjection
(
left
,
right
,
bottom
,
top
);
}
else
{
}
else
{
LiteavLog
.
w
(
TAG
,
"updateSizeAndRenderMode failed, size maybe zero, mWidth:"
+
mVideoWidth
LiteavLog
.
w
(
TAG
,
"updateSizeAndRenderMode failed, size maybe zero, mWidth:"
+
mVideoWidth
+
",mHeight:"
+
mVideoHeight
+
",viewWidth:"
+
mPortWidth
+
",viewHeight:"
+
",mHeight:"
+
mVideoHeight
+
",viewWidth:"
+
mPortWidth
+
",viewHeight:"
...
@@ -175,8 +176,28 @@ public class FTXTextureRender {
...
@@ -175,8 +176,28 @@ public class FTXTextureRender {
updateSizeAndRenderMode
(
mVideoWidth
,
mVideoHeight
,
mRenderMode
);
updateSizeAndRenderMode
(
mVideoWidth
,
mVideoHeight
,
mRenderMode
);
}
}
private
void
updateProjection
(
float
left
,
float
right
,
float
bottom
,
float
top
)
{
// reset
Matrix
.
setIdentityM
(
projectionMatrix
,
0
);
Matrix
.
orthoM
(
projectionMatrix
,
0
,
left
,
right
,
bottom
,
top
,
-
1
f
,
1
f
);
// merge
mergerMatrix
();
}
public
void
setRotationAngle
(
float
angle
)
{
public
void
setRotationAngle
(
float
angle
)
{
rotationAngle
=
angle
;
rotationAngle
=
angle
;
// reset
Matrix
.
setIdentityM
(
rotationMatrix
,
0
);
Matrix
.
setRotateM
(
rotationMatrix
,
0
,
rotationAngle
,
0
,
0
,
-
1
);
// merge
mergerMatrix
();
}
private
void
mergerMatrix
()
{
// reset
Matrix
.
setIdentityM
(
mResultMatrix
,
0
);
Matrix
.
multiplyMM
(
mResultMatrix
,
0
,
rotationMatrix
,
0
,
projectionMatrix
,
0
);
System
.
arraycopy
(
mResultMatrix
,
0
,
projectionMatrix
,
0
,
16
);
}
}
public
void
cleanDrawCache
()
{
public
void
cleanDrawCache
()
{
...
@@ -192,11 +213,8 @@ public class FTXTextureRender {
...
@@ -192,11 +213,8 @@ public class FTXTextureRender {
// video frame
// video frame
GLES30
.
glUseProgram
(
mVideoFragmentProgram
);
GLES30
.
glUseProgram
(
mVideoFragmentProgram
);
GLES30
.
glUniformMatrix4fv
(
muMVPMatrixHandle
,
1
,
false
,
projectionMatrix
,
0
);
// OpenGL rotates counterclockwise, here it needs to be modified to rotate clockwise
// OpenGL rotates counterclockwise, here it needs to be modified to rotate clockwise
Matrix
.
setRotateM
(
rotationMatrix
,
0
,
rotationAngle
,
0
,
0
,
-
1
);
GLES30
.
glUniformMatrix4fv
(
muMVPMatrixHandle
,
1
,
false
,
mResultMatrix
,
0
);
GLES30
.
glUniformMatrix4fv
(
muMVPMatrixHandle
,
1
,
false
,
rotationMatrix
,
0
);
GLES30
.
glActiveTexture
(
GLES30
.
GL_TEXTURE0
);
GLES30
.
glActiveTexture
(
GLES30
.
GL_TEXTURE0
);
GLES30
.
glBindTexture
(
GLES11Ext
.
GL_TEXTURE_EXTERNAL_OES
,
textureID
[
0
]);
GLES30
.
glBindTexture
(
GLES11Ext
.
GL_TEXTURE_EXTERNAL_OES
,
textureID
[
0
]);
...
...
Flutter/ios/super_player.podspec
浏览文件 @
678ae76d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
Pod
::
Spec
.
new
do
|
s
|
Pod
::
Spec
.
new
do
|
s
|
s
.
name
=
'super_player'
s
.
name
=
'super_player'
s
.
version
=
'12.7.
2
'
s
.
version
=
'12.7.
3
'
s
.
summary
=
'The super_player Flutter plugin is one of the sub-product SDKs of the audio/video terminal SDK (Tencent Cloud Video on Demand).'
s
.
summary
=
'The super_player Flutter plugin is one of the sub-product SDKs of the audio/video terminal SDK (Tencent Cloud Video on Demand).'
s
.
description
=
<<-
DESC
s
.
description
=
<<-
DESC
player plugin.
player plugin.
...
...
Flutter/lib/Core/common/common_config.dart
浏览文件 @
678ae76d
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
part of
SuperPlayer
;
part of
SuperPlayer
;
abstract
class
FPlayerPckInfo
{
abstract
class
FPlayerPckInfo
{
static
const
String
PLAYER_VERSION
=
"12.7.
2
"
;
static
const
String
PLAYER_VERSION
=
"12.7.
3
"
;
}
}
\ No newline at end of file
Flutter/pubspec.yaml
浏览文件 @
678ae76d
name
:
super_player
name
:
super_player
description
:
The super_player Flutter plugin is one of the sub-product SDKs of the audio/video terminal SDK (Tencent Cloud Video on Demand).
description
:
The super_player Flutter plugin is one of the sub-product SDKs of the audio/video terminal SDK (Tencent Cloud Video on Demand).
version
:
12.7.
2
version
:
12.7.
3
homepage
:
https://github.com/LiteAVSDK/Player_Flutter
homepage
:
https://github.com/LiteAVSDK/Player_Flutter
environment
:
environment
:
...
...
FlutterWidget/superplayer_widget/lib/common/player_constants.dart
浏览文件 @
678ae76d
...
@@ -3,5 +3,5 @@ part of demo_super_player_lib;
...
@@ -3,5 +3,5 @@ part of demo_super_player_lib;
class
PlayerConstants
{
class
PlayerConstants
{
static
const
PKG_NAME
=
"superplayer_widget"
;
static
const
PKG_NAME
=
"superplayer_widget"
;
static
const
String
PLAYER_WIDGET_VERSION
=
"12.7.
2
"
;
static
const
String
PLAYER_WIDGET_VERSION
=
"12.7.
3
"
;
}
}
FlutterWidget/superplayer_widget/pubspec.yaml
浏览文件 @
678ae76d
name
:
superplayer_widget
name
:
superplayer_widget
description
:
superplayer,base on vodplayer
description
:
superplayer,base on vodplayer
version
:
12.7.
2
version
:
12.7.
3
environment
:
environment
:
sdk
:
'
>=2.17.0
<4.0.0'
sdk
:
'
>=2.17.0
<4.0.0'
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论