Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: New player status types: WaitingToStart and StartPaused. The…
… first is the status used when launching a Player view. This allows MobileLibraryBrowserPresenter to pass the playlist directly to the player instead of using view details. This makes Android intents easier to manage. The second one, StartPaused, is used when the app launches and resumes the previous local playlist. We don't want to start the playback automatically.
- Loading branch information
1 parent
a9dee4c
commit 6e44d92
Showing
9 changed files
with
81 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
namespace MPfm.MVP.Messages | ||
{ | ||
/// <summary> | ||
/// Enumeration of player status types. | ||
/// </summary> | ||
public enum PlayerStatusType | ||
{ | ||
Initialized = 0, | ||
Stopped = 1, | ||
Playing = 2, | ||
Paused = 3 | ||
} | ||
} | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
namespace MPfm.MVP.Messages | ||
{ | ||
/// <summary> | ||
/// Enumeration of player status types. | ||
/// </summary> | ||
public enum PlayerStatusType | ||
{ | ||
Initialized = 0, | ||
Stopped = 1, | ||
Playing = 2, | ||
Paused = 3, | ||
/// <summary> | ||
/// Used when starting playback as paused. | ||
/// This status tells the presenters to start playback when it will be ready to start updating the UI. | ||
/// </summary> | ||
WaitingToStart = 4, | ||
/// <summary> | ||
/// Used to start the player but pause the playback immediately. | ||
/// Useful when the application starts and resumes the previous sessions; we don't want to force playback on the user. | ||
/// </summary> | ||
StartPaused = 5 | ||
} | ||
} |
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