Turns out it's not the same problem as in Android, the MediaPlayerElement does work in release and the issue is not related to linker or trimming. The issue is related to MediaPlayerElement requesting a locations permissions (probably for casting or something) and accepting the permission causes the Mediaplayer not to work.