You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
874 B
39 lines
874 B
4 years ago
|
// @ts-check
|
||
|
|
||
|
export const PICTURE_IN_PICTURE_DEPLOY = 'PICTURE_IN_PICTURE_DEPLOY';
|
||
|
export const PICTURE_IN_PICTURE_REMOVE = 'PICTURE_IN_PICTURE_REMOVE';
|
||
|
|
||
|
/**
|
||
|
* @typedef MediaProps
|
||
|
* @property {string} src
|
||
|
* @property {boolean} muted
|
||
|
* @property {number} volume
|
||
|
* @property {number} currentTime
|
||
|
* @property {string} poster
|
||
|
* @property {string} backgroundColor
|
||
|
* @property {string} foregroundColor
|
||
|
* @property {string} accentColor
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* @param {string} statusId
|
||
|
* @param {string} accountId
|
||
|
* @param {string} playerType
|
||
|
* @param {MediaProps} props
|
||
|
* @return {object}
|
||
|
*/
|
||
|
export const deployPictureInPicture = (statusId, accountId, playerType, props) => ({
|
||
|
type: PICTURE_IN_PICTURE_DEPLOY,
|
||
|
statusId,
|
||
|
accountId,
|
||
|
playerType,
|
||
|
props,
|
||
|
});
|
||
|
|
||
|
/*
|
||
|
* @return {object}
|
||
|
*/
|
||
|
export const removePictureInPicture = () => ({
|
||
|
type: PICTURE_IN_PICTURE_REMOVE,
|
||
|
});
|