-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
137 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using MediaManager.Library; | ||
using MediaPlayer; | ||
|
||
namespace MediaManager.Platforms.Ios.Media | ||
{ | ||
public static class MPMediaTypeExtensions | ||
{ | ||
public static MediaType ToMediaType(this MPMediaType mediaType) | ||
{ | ||
switch (mediaType) | ||
{ | ||
case MPMediaType.Music: | ||
case MPMediaType.Podcast: | ||
case MPMediaType.AudioBook: | ||
case MPMediaType.AudioITunesU: | ||
case MPMediaType.AnyAudio: | ||
return MediaType.Audio; | ||
case MPMediaType.Movie: | ||
case MPMediaType.TVShow: | ||
case MPMediaType.VideoPodcast: | ||
case MPMediaType.MusicVideo: | ||
case MPMediaType.VideoITunesU: | ||
case MPMediaType.HomeVideo: | ||
case MPMediaType.TypeAnyVideo: | ||
return MediaType.Video; | ||
case MPMediaType.Any: | ||
default: | ||
return MediaType.Default; | ||
} | ||
} | ||
} | ||
} |
36 changes: 18 additions & 18 deletions
36
Samples/Directory.build.props → Samples/Directory.Build.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Copyright>Copyright (c) Martijn van Dijk</Copyright> | ||
<Owners>Martijn van Dijk</Owners> | ||
<Authors>Martijn van Dijk</Authors> | ||
<Product>$(AssemblyName) ($(TargetFramework))</Product> | ||
<NeutralLanguage>en</NeutralLanguage> | ||
<Version>1.0.0</Version> | ||
|
||
<LangVersion>latest</LangVersion> | ||
<NoWarn>$(NoWarn);1591;1701;1702;1705;VSX1000;NU1603</NoWarn> | ||
|
||
<Platform>AnyCPU</Platform> | ||
<DebugType>full</DebugType> | ||
|
||
<IsLibraryProject>$(MSBuildProjectName.Contains('MediaManager'))</IsLibraryProject> | ||
<IsXamarinForms>$(MSBuildProjectName.Contains('.Forms'))</IsXamarinForms> | ||
</PropertyGroup> | ||
<Project> | ||
<PropertyGroup> | ||
<Copyright>Copyright (c) Baseflow</Copyright> | ||
<Owners>Martijn van Dijk</Owners> | ||
<Authors>Martijn van Dijk</Authors> | ||
<Product>$(AssemblyName) ($(TargetFramework))</Product> | ||
<NeutralLanguage>en</NeutralLanguage> | ||
<Version>1.0.0</Version> | ||
|
||
<LangVersion>latest</LangVersion> | ||
<NoWarn>$(NoWarn);1591;1701;1702;1705;VSX1000;NU1603</NoWarn> | ||
|
||
<Platform>AnyCPU</Platform> | ||
<DebugType>full</DebugType> | ||
|
||
<IsLibraryProject>$(MSBuildProjectName.Contains('MediaManager'))</IsLibraryProject> | ||
<IsXamarinForms>$(MSBuildProjectName.Contains('.Forms'))</IsXamarinForms> | ||
</PropertyGroup> | ||
</Project> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.