blob: 596727bf9016e131e7df225818f89372b6384d82 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module media.mojom;
// Mojo struct for fidl::InterfaceRequest<fuchsia::media::AudioConsumer>.
struct AudioConsumerRequest {
handle<platform> request;
};
// Mojo struct for fidl::InterfaceRequest<fuchsia::media::AudioCapturer>.
struct AudioCapturerRequest {
handle<platform> request;
};
// Interface used by the render to create media resources. Instances are
// document-scoped.
interface FuchsiaMediaResourceProvider {
// Creates a fuchsia.media.AudioConsumer for the current frame.
CreateAudioConsumer(AudioConsumerRequest request);
// Creates a fuchsia.media.AudioCapturer for the current frame.
CreateAudioCapturer(AudioCapturerRequest request);
};