medialibrary接口下架

Signed-off-by: yeyedeshen <yangxin181@huawei.com>
This commit is contained in:
yeyedeshen 2024-07-26 11:10:51 +08:00
parent bae7bd3e31
commit e12c2b91a0
3 changed files with 3 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Copyright (c) 2023-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@ -13,9 +13,7 @@
* limitations under the License.
*/
import common from '@ohos.app.ability.common';
import fs from '@ohos.file.fs';
import mediaLibrary from '@ohos.multimedia.mediaLibrary';
import { logger } from '../utils/Logger';
const TAG: string = 'MediaUtils';

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import MediaLib from '@ohos.multimedia.mediaLibrary';
import userFileManager from '@ohos.filemanagement.userFileManager';
import { Log } from '../utils/Log';
import { DateUtil } from '../utils/DateUtil';
import { screenManager } from '../common/ScreenManager';
@ -161,7 +161,7 @@ export struct DetailsDialog {
}.margin({
bottom: $r('sys.float.ohos_id_text_paragraph_margin_s') })
if (this.mediaDetails.mediaType === MediaLib.MediaType.VIDEO) {
if (this.mediaDetails.mediaType === userFileManager.FileType.VIDEO) {
Row() {
Column() {
Text($r('app.string.duration'))

View File

@ -13,14 +13,10 @@
* limitations under the License.
*/
import hilog from '@ohos.hilog';
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import { Driver, ON, MatchPattern, Component } from '@ohos.UiTest'
import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'
import mediaLibrary from '@ohos.multimedia.mediaLibrary'
import Logger from '../utils/Logger';
import { getStringData } from '../../../main/ets/data/ResourceDataHandle';
import resourceManager from '@ohos.resourceManager';
const BUNDLE = 'ComponentCollection_';