提交 867d15c8 编写于 作者: Y youngshady

modify Player

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