Skip to content

Commit

Permalink
Added IsFullWindow property in CrossMediaManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Nacompllo committed Apr 13, 2021
1 parent 77c98b7 commit 40e1a55
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MediaManager.Forms/VideoView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ protected virtual void MediaManager_PropertyChanged(object sender, System.Compon
break;
case nameof(MediaManager.AutoPlay):
AutoPlay = MediaManager.AutoPlay;
break;
case nameof(MediaManager.IsFullWindow):
IsFullWindow = MediaManager.IsFullWindow;
break;
case nameof(MediaManager.RepeatMode):
Repeat = MediaManager.RepeatMode;
Expand Down Expand Up @@ -316,7 +319,7 @@ private static async void OnVideoPlaceholderPropertyChanged(BindableObject binda
private static void OnIsFullWindowPropertyChanged(BindableObject bindable, object oldValue, object newValue)
{
MediaManager.MediaPlayer.IsFullWindow = (bool)newValue;
}
}

public virtual void Dispose()
{
Expand Down
7 changes: 7 additions & 0 deletions MediaManager/MediaManagerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ public bool AutoPlay
{
get => _autoPlay;
set => SetProperty(ref _autoPlay, value);
}

private bool _isFullWindow = false;
public bool IsFullWindow
{
get => _isFullWindow;
set => SetProperty(ref _isFullWindow, value);
}

private bool _retryPlayOnFailed = true;
Expand Down
5 changes: 5 additions & 0 deletions MediaManager/Playback/IPlaybackManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public interface IPlaybackManager : INotifyPropertyChanged
/// </summary>
bool AutoPlay { get; set; }

/// <summary>
/// Indicates if the Player is in full screen
/// </summary>
bool IsFullWindow { get; set; }

/// <summary>
/// Will keep the screen on when set to true and a VideoView is on the screen and playing
/// </summary>
Expand Down

0 comments on commit 40e1a55

Please sign in to comment.