web_engine_media_resource_provider.mojom 819 B

1234567891011121314151617181920212223
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module mojom;
  5. // Mojo struct for fidl::InterfaceRequest<fuchsia::media::AudioConsumer>.
  6. struct AudioConsumerRequest {
  7. handle<platform> request;
  8. };
  9. // Interface used by the render to create media resources. Instances are
  10. // document-scoped.
  11. interface WebEngineMediaResourceProvider {
  12. // Returns true if the frame should use AudioConsumer to render audio
  13. // streams. The call needs to be synchronous because `media::Renderer` needs
  14. // to be constructed synchronously.
  15. [Sync]
  16. ShouldUseAudioConsumer() => (bool result);
  17. // Creates a fuchsia.media.AudioConsumer for the current frame.
  18. CreateAudioConsumer(AudioConsumerRequest request);
  19. };