Removed NativeVersion
parent
d34251e57a
commit
2aec4982fb
|
@ -302,10 +302,9 @@ public class MediaPlayerService : Service,
|
|||
{
|
||||
try
|
||||
{
|
||||
if (NativeVersion.IsAtLeast(21))
|
||||
if (true)
|
||||
{
|
||||
MediaMetadataRetriever metaRetriever = new MediaMetadataRetriever();
|
||||
|
||||
await mediaPlayer.SetDataSourceAsync(ApplicationContext, AndroidNet.Uri.Parse(AudioUrl));
|
||||
|
||||
await metaRetriever.SetDataSourceAsync(AudioUrl, new Dictionary<string, string>());
|
||||
|
|
Loading…
Reference in New Issue