Skip to content

[Bug report] 鸿蒙端无法展示设备中的视频内容 #1351

@PrettyAli

Description

@PrettyAli

Version

3.7.1

Platforms

dart

Device Model

HUAWEI Mate 60 Pro 5.1.0

flutter info

[!] Flutter (Channel [user-branch], 3.22.1-ohos-1.0.7, on macOS 14.6.1 23G93 darwin-arm64, locale zh-Hans-CN)
! Flutter version 3.22.1-ohos-1.0.7 on channel [user-branch] at /Users/kxhz-mac/flutterohos3.22.0_gitcode/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
• Upstream repository https://gitcode.com/openharmony-tpc/flutter_flutter.git
• FLUTTER_GIT_URL = https://gitcode.com/openharmony-tpc/flutter_flutter.git
• Framework revision 6417a4b624 (8 days ago), 2025-11-13 21:03:10 +0800
• Engine revision f6344b75dc
• Dart version 3.4.0
• DevTools version 2.34.1
• Pub download mirror https://pub.flutter-io.cn
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

How to reproduce?

final requestType = resourceType.toRequestType();
FilterOption filterOption = const FilterOption(sizeConstraint: SizeConstraint(ignoreSize: true));
final entities = await PhotoManager.getAssetPathList(
type: requestType,
hasAll: true,
filterOption: FilterOptionGroup(
imageOption: filterOption,
videoOption: filterOption,
),
);
entities中的数组中没有视频内容信息

Logs

photo_manager: dependency: "direct main"
description: path: "."
ref: HEAD
resolved-ref: f06920dc68b5e79f6fdffee5815f0a603decd979
url: "https://github.com/fluttercandies/flutter_photo_manager.git"
source: git
version: "3.7.1"

Example code (optional)

Contact

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions