| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module media.mojom; | 5 module media.mojom; |
| 6 | 6 |
| 7 import "media/mojo/interfaces/demuxer_stream.mojom"; | 7 import "media/mojo/interfaces/demuxer_stream.mojom"; |
| 8 import "media/mojo/interfaces/media_types.mojom"; | 8 import "media/mojo/interfaces/media_types.mojom"; |
| 9 import "mojo/common/common_custom_types.mojom"; | 9 import "mojo/common/common_custom_types.mojom"; |
| 10 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // Updates the current playback rate. The default playback rate should be 1. | 29 // Updates the current playback rate. The default playback rate should be 1. |
| 30 SetPlaybackRate(double playback_rate); | 30 SetPlaybackRate(double playback_rate); |
| 31 | 31 |
| 32 // Sets the output volume. The default volume should be 1. | 32 // Sets the output volume. The default volume should be 1. |
| 33 SetVolume(float volume); | 33 SetVolume(float volume); |
| 34 | 34 |
| 35 // Attaches the CDM associated with |cdm_id| to the renderer service, | 35 // Attaches the CDM associated with |cdm_id| to the renderer service, |
| 36 // executing the callback with whether the CDM was successfully attached. | 36 // executing the callback with whether the CDM was successfully attached. |
| 37 SetCdm(int32 cdm_id) => (bool success); | 37 SetCdm(int32 cdm_id) => (bool success); |
| 38 |
| 39 // Registers a new request in the ScopedSurfaceRequestManager, and returns |
| 40 // its token. |
| 41 InitiateScopedSurfaceRequest() => (bool success, uint64 request_token); |
| 38 }; | 42 }; |
| 39 | 43 |
| 40 interface RendererClient { | 44 interface RendererClient { |
| 41 // Called to report media time advancement by |time|. | 45 // Called to report media time advancement by |time|. |
| 42 // |time| and |max_time| can be used to interpolate time between | 46 // |time| and |max_time| can be used to interpolate time between |
| 43 // calls to OnTimeUpdate(). | 47 // calls to OnTimeUpdate(). |
| 44 // |max_time| is typically the media timestamp of the last audio frame | 48 // |max_time| is typically the media timestamp of the last audio frame |
| 45 // buffered by the audio hardware. | 49 // buffered by the audio hardware. |
| 46 // |max_time| must be greater or equal to |time|. | 50 // |max_time| must be greater or equal to |time|. |
| 47 OnTimeUpdate(mojo.common.mojom.TimeDelta time, | 51 OnTimeUpdate(mojo.common.mojom.TimeDelta time, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 69 OnStatisticsUpdate(PipelineStatistics stats); | 73 OnStatisticsUpdate(PipelineStatistics stats); |
| 70 | 74 |
| 71 // Called when the remote renderering service is waiting on the decryption | 75 // Called when the remote renderering service is waiting on the decryption |
| 72 // key. | 76 // key. |
| 73 OnWaitingForDecryptionKey(); | 77 OnWaitingForDecryptionKey(); |
| 74 | 78 |
| 75 // Executed the first time the metadata is updated, and whenever the duration | 79 // Executed the first time the metadata is updated, and whenever the duration |
| 76 // changes. | 80 // changes. |
| 77 OnDurationChange(mojo.common.mojom.TimeDelta duration); | 81 OnDurationChange(mojo.common.mojom.TimeDelta duration); |
| 78 }; | 82 }; |
| OLD | NEW |