mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-18 04:43:24 +00:00
8f950e540b
port d88a79b456
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
39 lines
874 B
JavaScript
39 lines
874 B
JavaScript
// @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,
|
|
});
|