mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-27 10:40:41 +00:00
medialibrary接口下架
Signed-off-by: yeyedeshen <yangxin181@huawei.com>
This commit is contained in:
parent
bae7bd3e31
commit
e12c2b91a0
@ -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';
|
||||
|
@ -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'))
|
||||
|
@ -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_';
|
||||
|
Loading…
Reference in New Issue
Block a user