Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Aug 6, 2019
1 parent 0a1b6e9 commit 0706641
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<RepositoryType>git</RepositoryType>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<NeutralLanguage>en</NeutralLanguage>
<Version>0.8.3</Version>
<Version>0.8.4</Version>

<LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);1591;1701;1702;1705;VSX1000;NU1603</NoWarn>
Expand Down
2 changes: 2 additions & 0 deletions MediaManager/Platforms/Android/Media/MediaItemExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public static IMediaSource ToMediaSource(this MediaDescriptionCompat mediaDescri
switch (mediaType)
{
default:
case MediaType.Audio:
case MediaType.Video:
case MediaType.Default:
mediaSource = new ExtractorMediaSource.Factory(MediaManager.AndroidMediaPlayer.DataSourceFactory)
.SetTag(mediaDescription)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
using Android.Support.V4.Media;
using Com.Google.Android.Exoplayer2.Ext.Mediasession;
using Com.Google.Android.Exoplayer2.Source;
using MediaManager.Media;
using MediaManager.Platforms.Android.Media;

namespace MediaManager.Platforms.Android.Queue
{
public class QueueMediaSourceFactory : Java.Lang.Object, TimelineQueueEditor.IMediaSourceFactory
{
protected MediaManagerImplementation MediaManager => CrossMediaManager.Android;

public QueueMediaSourceFactory()
{
}
Expand All @@ -20,7 +23,9 @@ protected QueueMediaSourceFactory(IntPtr handle, JniHandleOwnership transfer) :
public IMediaSource CreateMediaSource(MediaDescriptionCompat description)
{
//TODO: We should be able to know the type here
return description?.ToMediaSource(MediaManager.Media.MediaType.Default);
//MediaManager.MediaExtractor.GetMediaType()

return description?.ToMediaSource(MediaType.Default);
}
}
}

0 comments on commit 0706641

Please sign in to comment.