From 74e40531ba2ffe93b4ad3f99a5c0d96c618190d9 Mon Sep 17 00:00:00 2001 From: Olivier Lando Date: Tue, 16 Jul 2024 16:13:34 +0200 Subject: [PATCH] Add isFullScreen attribute --- CHANGELOG.md | 4 ++++ README.md | 2 +- index.ts | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f08c2d..6f56a4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All changes to this project will be documented in this file. +## [1.2.32] - 2024-07-16 + +- Add `isFullScreen` in `fullscreenchange` event + ## [1.2.31] - 2024-06-19 - Add ESM target diff --git a/README.md b/README.md index 72854bb..623008c 100644 --- a/README.md +++ b/README.md @@ -450,7 +450,7 @@ Available events are the following: | ended | The playback as reached the ended of the video | - | | error | An error occured | - | | firstplay | The video started to play for the first time | - | -| fullscreenchange | The player goes to (or goes back from) full screen | - | +| fullscreenchange | The player goes to (or goes back from) full screen | `{ isFullScreen: boolean }` | | mouseenter | The user's mouse entered the player area | - | | mouseleave | The user's mouse leaved the player area | - | | pause | The video has been paused | - | diff --git a/index.ts b/index.ts index 226cf14..6f3f047 100644 --- a/index.ts +++ b/index.ts @@ -68,7 +68,7 @@ type PlayerSdkEvent = { ended: () => void; error: () => void; firstplay: () => void; - fullscreenchange: () => void; + fullscreenchange: (isFullScreen: boolean) => void; mouseenter: () => void; mouseleave: () => void; pause: () => void; diff --git a/package.json b/package.json index 65018ed..d967143 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@api.video/player-sdk", - "version": "1.2.31", + "version": "1.2.32", "description": "api.video player SDK", "repository": { "type": "git",