// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. module blink.mojom; // Perform the below actions on the media player. enum MediaPlayerActionType { kLoop, kControls, kSaveVideoFrameAs, kCopyVideoFrame, kPictureInPicture, kDefaultActionType = kPictureInPicture }; // Send MediaPlayerAction data from browser to renderer. Attribute `type` // defines action needs to be performed on Media Player and boolean attribute // `enable` indicates enabling or disabling the option, e.g. for `kLoop`, // `kControls` and `kPictureInPicture`. For other actions, `enable` is ignored. struct MediaPlayerAction { MediaPlayerActionType type = kDefaultActionType; bool enable = false; };