未验证 提交 28a623d8 编写于 作者: O openharmony_ci 提交者: Gitee

!8371 修改player列表背景颜色问题

Merge pull request !8371 from youngshady/OpenHarmony-3.2-Release
...@@ -43,14 +43,6 @@ struct audioNew { ...@@ -43,14 +43,6 @@ struct audioNew {
@State TestCaseList: Array<mediaLibrary.FileAsset> = []; @State TestCaseList: Array<mediaLibrary.FileAsset> = [];
@State ColorObject: string[] = VarColor; @State ColorObject: string[] = VarColor;
async aboutToAppear() {
this.getAudioData();
}
async getAudioData() {
this.TestCaseList = await this.MediaLib.getFileAssetsAlbum('Audios/ValidatorData/');
}
async onPageShow() { async onPageShow() {
let Test = null; let Test = null;
let context = null; let context = null;
...@@ -66,6 +58,7 @@ struct audioNew { ...@@ -66,6 +58,7 @@ struct audioNew {
Test = data; Test = data;
console.info("Succeeded in getting value of 'PlayerAudio'. Data: " + data); console.info("Succeeded in getting value of 'PlayerAudio'. Data: " + data);
}); });
this.TestCaseList = await this.MediaLib.getFileAssetsAlbum('Audios/ValidatorData/');
if (Test != 1) { if (Test != 1) {
let fd = fileio.openSync(ColorBackPath, 0o102, 0o666); let fd = fileio.openSync(ColorBackPath, 0o102, 0o666);
......
...@@ -26,7 +26,7 @@ struct playVideo { ...@@ -26,7 +26,7 @@ struct playVideo {
@State StepTips: string = '测试目的:用于测试视频播放暂停seek\n预期结果:视频播放暂停seek功能正常'; @State StepTips: string = '测试目的:用于测试视频播放暂停seek\n预期结果:视频播放暂停seek功能正常';
private tag: string = 'qlw'; private tag: string = 'qlw';
@State Vue: boolean = false; @State Vue: boolean = false;
@State videoSrc: Resource = $rawfile('H264_AAC.mkv'); @State videoSrc: string = router.getParams()['audioUrl'];
@State isAutoPlay: boolean = true; @State isAutoPlay: boolean = true;
@State showControls: boolean = true; @State showControls: boolean = true;
controller: VideoController = new VideoController(); controller: VideoController = new VideoController();
......
...@@ -43,14 +43,6 @@ struct videoNew { ...@@ -43,14 +43,6 @@ struct videoNew {
@State TestCaseList: Array<mediaLibrary.FileAsset> = []; @State TestCaseList: Array<mediaLibrary.FileAsset> = [];
@State ColorObject: string[] = VarColor; @State ColorObject: string[] = VarColor;
async aboutToAppear() {
this.getVideoData();
}
async getVideoData() {
this.TestCaseList = await this.MediaLib.getFileAssetsAlbum('Videos/ValidatorData/');
}
async onPageShow() { async onPageShow() {
let Test = null; let Test = null;
let context = null; let context = null;
...@@ -66,6 +58,7 @@ struct videoNew { ...@@ -66,6 +58,7 @@ struct videoNew {
Test = data; Test = data;
console.info("Succeeded in getting value of 'PlayerVideo'. Data: " + data); console.info("Succeeded in getting value of 'PlayerVideo'. Data: " + data);
}); });
this.TestCaseList = await this.MediaLib.getFileAssetsAlbum('Videos/ValidatorData/');
if (Test != 1) { if (Test != 1) {
let fd = fileio.openSync(ColorBackPath, 0o102, 0o666); let fd = fileio.openSync(ColorBackPath, 0o102, 0o666);
...@@ -116,7 +109,7 @@ struct videoNew { ...@@ -116,7 +109,7 @@ struct videoNew {
fileio.closeSync(FD); fileio.closeSync(FD);
let Fd = fileio.openSync(ColorBackPath, 0o102, 0o666); let Fd = fileio.openSync(ColorBackPath, 0o102, 0o666);
fileio.writeSync(Fd, Report); fileio.writeSync(Fd, Report);
filewrite(name1, results, titles) filewrite(name1, results, titles);
} }
else if (this.result === 'false') { else if (this.result === 'false') {
this.ColorObject[this.current] = '#ffff0000'; this.ColorObject[this.current] = '#ffff0000';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册