Skip to content

[BUG] iOS - Asset picker with RequestType.video incorrectly shows images in addition to videos #1353

@dingh123

Description

@dingh123

Describe the bug
When using AssetPicker.pickAssets with requestType: RequestType.video on iOS, the picker still returns both images and videos, instead of only videos. Android behaves correctly.

How to reproduce
Steps to reproduce the behavior:

  1. Use the following code in a Flutter app:
final List<AssetEntity>? assets = await AssetPicker.pickAssets(
  context,
  pickerConfig: AssetPickerConfig(
    maxAssets: 1,
    requestType: RequestType.video,
  ),
);
  1. Run the app on an iOS device (iPhone 13, iOS 18.3).
  2. Open the asset picker and select assets.
  3. Observe that both images and videos are shown in the picker.

Expected behavior
The asset picker should display only video assets, consistent with requestType: RequestType.video.

Version information

  • Device: iPhone 13
  • OS: iOS 18.3
  • Package Version: wechat_assets_picker 9.8.0
  • Flutter Version: 3.35.4

Additional context

  • The issue only occurs on iOS. Android correctly filters only video assets.
  • The images currently displayed on iOS are not Live Photos, but regular static images. This indicates that the picker fails to correctly identify and filter out non-video media types.

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions