You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GetMediaSourceConfig is currently sitting on ICore. You can easily access this method from pretty much anywhere. If you have an ICoreTrack, simply access track.SourceCore.GetMediaSourceAsync(track).
Problem
There's no explicit problem with this (yet), but there are a few advantages to changing it.
Solution
Move GetMediaSourceAsync to ICoreTrack and ITrack directly. This has a few immediate knock-on effects:
This method becomes part of the merging process for collection items.
Removes the ambiguity of "which source should I use", without restricting you to a single source.
PlaybackItem can be removed and replaced with ITrack.
On the core side, this puts the media source into the same context as the track, which reduces development complexity in several scenarios.
The text was updated successfully, but these errors were encountered:
Background
GetMediaSourceConfig
is currently sitting onICore
. You can easily access this method from pretty much anywhere. If you have anICoreTrack
, simply accesstrack.SourceCore.GetMediaSourceAsync(track)
.Problem
There's no explicit problem with this (yet), but there are a few advantages to changing it.
Solution
Move
GetMediaSourceAsync
toICoreTrack
andITrack
directly. This has a few immediate knock-on effects:PlaybackItem
can be removed and replaced withITrack
.The text was updated successfully, but these errors were encountered: