Multimedia: harden QPlatformMediaPlayer::TrackType


Turn `TrackType` into a scoped enum and add an array-based
`TrackTypeMap<T>`. This improves safety and error handling, as "invalid"
states are now using `std::optional`.

Pick-to: 6.12
Change-Id: I1e563656f40a8a12d0c2766edeb7ab470d94c5e2
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commit2298d519df5447082bcd0f9afe0a604af85cf01b
parentc5fefb972910fc51185a2bf5033658c1a44eff60
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeThu, 10 Sep 2026 15:08:08 +0000