[*] 日常优化

This commit is contained in:
acgist
2023-06-15 08:24:44 +08:00
parent 021b275717
commit 86f4a5fea9
6 changed files with 291 additions and 130 deletions

View File

@@ -155,11 +155,11 @@ public class MediaService extends Service {
resources.getInteger(R.integer.imageQuantity),
resources.getString(R.string.audioQuantity),
resources.getString(R.string.videoQuantity),
resources.getBoolean(R.bool.broadcaster),
resources.getInteger(R.integer.channelCount),
resources.getInteger(R.integer.iFrameInterval),
resources.getString(R.string.imagePath),
resources.getString(R.string.videoPath),
resources.getString(R.string.videoFile),
resources.getString(R.string.watermark),
VideoSourceType.valueOf(resources.getString(R.string.videoSourceType))
);
@@ -237,7 +237,7 @@ public class MediaService extends Service {
.setContentIntent(pendingIntent);
final Notification notification = notificationBuilder.build();
this.startForeground((int) System.currentTimeMillis(), notification);
MediaManager.getInstance().initScreen(intent.getParcelableExtra("data"));
MediaManager.getInstance().initScreenCapturer(intent.getParcelableExtra("data"));
}
/**

View File

@@ -34,8 +34,6 @@
<string name="audioQuantity">fd-audio</string>
<!-- 视频质量 -->
<string name="videoQuantity">fd-video</string>
<!-- 语音播报 -->
<bool name="broadcaster">false</bool>
<!-- 音频通道数量 -->
<integer name="channelCount">1</integer>
<!-- 视频关键帧频率 -->
@@ -46,6 +44,8 @@
<string name="imagePath">/taoyao</string>
<!-- 视频存储目录 -->
<string name="videoPath">/taoyao</string>
<!-- 分享视频文件路径 -->
<string name="videoFile"></string>
<!-- 水印 -->
<string name="watermark">"'TAOYAO' yyyy-MM-dd HH:mm:ss"</string>
<!-- 视频来源FILE|BACK|FRONT|SCREEN -->