Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
tx_player_fork
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蒋俊
tx_player_fork
Commits
7c0504e0
提交
7c0504e0
authored
5月 13, 2024
作者:
kongdywang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix android 14 broadcast new feature problem
上级
72894e85
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
12 行增加
和
4 行删除
+12
-4
build.gradle
Flutter/android/build.gradle
+2
-0
config.gradle
Flutter/android/config.gradle
+2
-1
SuperPlayerPlugin.java
.../main/java/com/tencent/vod/flutter/SuperPlayerPlugin.java
+4
-1
FlutterPipImplActivity.java
...va/com/tencent/vod/flutter/ui/FlutterPipImplActivity.java
+3
-1
build.gradle
Flutter/example/android/app/build.gradle
+1
-1
没有找到文件。
Flutter/android/build.gradle
浏览文件 @
7c0504e0
...
@@ -38,4 +38,5 @@ android {
...
@@ -38,4 +38,5 @@ android {
dependencies
{
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
rootProject
.
ext
.
liteavSdk
implementation
rootProject
.
ext
.
liteavSdk
implementation
rootProject
.
ext
.
compat
}
}
\ No newline at end of file
Flutter/android/config.gradle
浏览文件 @
7c0504e0
rootProject
.
ext
{
rootProject
.
ext
{
compileSdkVersion
=
3
1
compileSdkVersion
=
3
3
buildToolsVersion
=
"28.0.3"
buildToolsVersion
=
"28.0.3"
supportSdkVersion
=
"26.0.1"
supportSdkVersion
=
"26.0.1"
minSdkVersion
=
19
minSdkVersion
=
19
targetSdkVersion
=
28
targetSdkVersion
=
28
playerVersion
=
'11.8.0'
playerVersion
=
'11.8.0'
compat
=
"androidx.appcompat:appcompat:1.6.1"
/**
/**
Set the dependent LiteAV SDK type:
Set the dependent LiteAV SDK type:
...
...
Flutter/android/src/main/java/com/tencent/vod/flutter/SuperPlayerPlugin.java
浏览文件 @
7c0504e0
...
@@ -10,6 +10,7 @@ import android.content.IntentFilter;
...
@@ -10,6 +10,7 @@ import android.content.IntentFilter;
import
android.database.ContentObserver
;
import
android.database.ContentObserver
;
import
android.media.AudioManager
;
import
android.media.AudioManager
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.os.Looper
;
...
@@ -23,6 +24,7 @@ import android.view.Window;
...
@@ -23,6 +24,7 @@ import android.view.Window;
import
android.view.WindowManager
;
import
android.view.WindowManager
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.NonNull
;
import
androidx.core.content.ContextCompat
;
import
com.tencent.rtmp.TXLiveBase
;
import
com.tencent.rtmp.TXLiveBase
;
import
com.tencent.rtmp.TXLiveBaseListener
;
import
com.tencent.rtmp.TXLiveBaseListener
;
...
@@ -522,7 +524,8 @@ public class SuperPlayerPlugin implements FlutterPlugin, ActivityAware,
...
@@ -522,7 +524,8 @@ public class SuperPlayerPlugin implements FlutterPlugin, ActivityAware,
mVolumeBroadcastReceiver
=
new
VolumeBroadcastReceiver
();
mVolumeBroadcastReceiver
=
new
VolumeBroadcastReceiver
();
IntentFilter
filter
=
new
IntentFilter
();
IntentFilter
filter
=
new
IntentFilter
();
filter
.
addAction
(
VOLUME_CHANGED_ACTION
);
filter
.
addAction
(
VOLUME_CHANGED_ACTION
);
mActivityPluginBinding
.
getActivity
().
registerReceiver
(
mVolumeBroadcastReceiver
,
filter
);
ContextCompat
.
registerReceiver
(
mActivityPluginBinding
.
getActivity
(),
mVolumeBroadcastReceiver
,
filter
,
ContextCompat
.
RECEIVER_NOT_EXPORTED
);
}
}
public
void
enableBrightnessObserver
(
boolean
enable
)
{
public
void
enableBrightnessObserver
(
boolean
enable
)
{
...
...
Flutter/android/src/main/java/com/tencent/vod/flutter/ui/FlutterPipImplActivity.java
浏览文件 @
7c0504e0
...
@@ -30,6 +30,7 @@ import android.view.View;
...
@@ -30,6 +30,7 @@ import android.view.View;
import
android.widget.ProgressBar
;
import
android.widget.ProgressBar
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.NonNull
;
import
androidx.core.content.ContextCompat
;
import
com.tencent.rtmp.ITXLivePlayListener
;
import
com.tencent.rtmp.ITXLivePlayListener
;
import
com.tencent.rtmp.ITXVodPlayListener
;
import
com.tencent.rtmp.ITXVodPlayListener
;
...
@@ -237,7 +238,8 @@ public class FlutterPipImplActivity extends Activity implements Callback, ITXVod
...
@@ -237,7 +238,8 @@ public class FlutterPipImplActivity extends Activity implements Callback, ITXVod
private
void
registerPipBroadcast
()
{
private
void
registerPipBroadcast
()
{
if
(!
mIsRegisterReceiver
)
{
if
(!
mIsRegisterReceiver
)
{
IntentFilter
pipIntentFilter
=
new
IntentFilter
(
FTXEvent
.
ACTION_PIP_PLAY_CONTROL
);
IntentFilter
pipIntentFilter
=
new
IntentFilter
(
FTXEvent
.
ACTION_PIP_PLAY_CONTROL
);
registerReceiver
(
pipActionReceiver
,
pipIntentFilter
);
ContextCompat
.
registerReceiver
(
this
,
pipActionReceiver
,
pipIntentFilter
,
ContextCompat
.
RECEIVER_NOT_EXPORTED
);
mIsRegisterReceiver
=
true
;
mIsRegisterReceiver
=
true
;
}
}
}
}
...
...
Flutter/example/android/app/build.gradle
浏览文件 @
7c0504e0
...
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
...
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
3
1
compileSdkVersion
3
3
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论