Skip to content

Exception on audio duration (Android) #35

@PierreBresson

Description

@PierreBresson

I get the following error on One Plus 7 Pro with media_info: ^0.12.0+2 :

PlatformException(MediaInfo, TracksUnreadable, null, null)

Followed by :

I/DMCodecAdapterFactory(20738): Creating an asynchronous MediaCodec adapter for track type audio
D/OplusCCodec(20738): OplusCCodec [122]: (0xb400007bfd094c00)
W/libc    (20738): Access denied finding property "vendor.oplus.media.vpp.stutter"
D/CCodec  (20738): allocate(c2.android.mp3.decoder)
I/CCodec  (20738): setting up 'default' as default (vendor) store
I/CCodec  (20738): Created component [c2.android.mp3.decoder]
D/CCodecConfig(20738): read media type: audio/mpeg
D/ReflectedParamUpdater(20738): extent() != 1 for single value type: algo.buffers.max-count.values

Error is raised by :

final Map<String, dynamic> info = await mediaInfo.getMediaInfo(
        filePath,
      );

The file is the following :

https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3

Saved in the following path : /data/user/0/com.my.app/app_flutter/Episode_35323.mp3

Similar to this issue #31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions