Skip to content

error: tracksWithMediaType: is deprecated: first deprecated in macOS 15.0 - Use loadTracksWithMediaType:completionHandler: instead #173092

@jmagman

Description

@jmagman

tracksWithMediaType is deprecated in iOS 18 and macOS 15.

video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPVideoPlayer.m:54:32: error: 'tracksWithMediaType:' is deprecated: first deprecated in macOS 15.0 - Use loadTracksWithMediaType:completionHandler: instead [-Werror,-Wdeprecated-declarations]
   54 |       NSArray *tracks = [asset tracksWithMediaType:AVMediaTypeVideo];
      | 

Found when we increased analysis check to macOS 15: flutter/packages#9427 (comment)
See also flutter/plugins#4714 and #97356

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyplatform-macBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions