Skip to content

Commit

Permalink
[mediaplayer] Update up to beta 4 (#2388)
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot authored Aug 1, 2017
1 parent 463f83e commit 8c7b776
Show file tree
Hide file tree
Showing 10 changed files with 159 additions and 62 deletions.
10 changes: 4 additions & 6 deletions src/MediaPlayer/MPNowPlayingInfoCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
// Copyright 2011, Xamarin Inc
//

#if !TVOS && !MONOMAC
#if XAMCORE_2_0 || !MONOMAC

using XamCore.Foundation;
using XamCore.ObjCRuntime;

namespace XamCore.MediaPlayer {

[Mac (10,12,2, onlyOn64: true)]
public class MPNowPlayingInfo {
public MPNowPlayingInfo ()
{
Expand Down Expand Up @@ -220,13 +221,10 @@ public MPNowPlayingInfo NowPlaying {
return new MPNowPlayingInfo (_NowPlayingInfo);
}
set {
if (value == null)
_NowPlayingInfo = null;
else
_NowPlayingInfo = value.ToDictionary ();
_NowPlayingInfo = value?.ToDictionary ();
}
}
}
}

#endif // !TVOS
#endif
2 changes: 2 additions & 0 deletions src/MediaPlayer/MediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace XamCore.MediaPlayer {
[Native]
[NoMac]
[NoTV]
[Availability (Deprecated = Platform.iOS_9_0)]
public enum MPMoviePlaybackState : nint {
Stopped,
Playing,
Expand All @@ -31,6 +32,7 @@ public enum MPMoviePlaybackState : nint {
[Native]
[NoMac]
[NoTV]
[Availability (Deprecated = Platform.iOS_9_0)]
public enum MPMovieLoadState : nint {
Unknown = 0,
Playable = 1 << 0,
Expand Down
Loading

0 comments on commit 8c7b776

Please sign in to comment.