blob: 75f7577ba907e447bdf29a0b8cde92cc8173f9fe [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.mediasession;
using zx;
using fuchsia.mediaplayer;
/// |Observer| is a handle for media playback, allowing clients to observe
/// a playback session.
[FragileBase]
interface Observer {
/// Sent on first connection and when playback
/// status changes.
-> OnPlaybackStatusChanged(PlaybackStatus playback_status);
/// Sent on first connection and when metadata
/// changes.
// TODO(turnage): Do a soft or hard transition to move Metadata into
// fuchsia.media.
-> OnMetadataChanged(fuchsia.mediaplayer.Metadata media_metadata);
};