| Index: mojo/services/media/control/interfaces/media_player.mojom
|
| diff --git a/mojo/services/media/control/interfaces/media_player.mojom b/mojo/services/media/control/interfaces/media_player.mojom
|
| index 12cad67b7e852b60f2f05b6e5dc850fcfb9c2fa7..f9907bb60ff777f52dc2a0d9be840c6bea90a51c 100644
|
| --- a/mojo/services/media/control/interfaces/media_player.mojom
|
| +++ b/mojo/services/media/control/interfaces/media_player.mojom
|
| @@ -11,6 +11,10 @@ import "mojo/services/media/common/interfaces/rate_control.mojom";
|
|
|
| // Plays media.
|
| interface MediaPlayer {
|
| + // Special value for GetStatus version_last_seen parameter to get the current
|
| + // status immediately.
|
| + const uint64 kInitialStatus = 0;
|
| +
|
| // Starts playback.
|
| Play();
|
|
|
| @@ -22,8 +26,9 @@ interface MediaPlayer {
|
| // TODO(dalesat): Consider adding parameters regarding desired precision.
|
| Seek(int64 position);
|
|
|
| - // Gets the status. To get the status immediately, call GetStatus(0). To
|
| - // get updates thereafter, pass the version sent in the previous callback.
|
| + // Gets the status. To get the status immediately, call
|
| + // GetStatus(kInitialStatus). To get updates thereafter, pass the version
|
| + // sent in the previous callback.
|
| GetStatus(uint64 version_last_seen) =>
|
| (uint64 version, MediaPlayerStatus status);
|
| };
|
|
|