Skip to content

Commit 74e4053

Browse files
committed
Add isFullScreen attribute
1 parent fc540b7 commit 74e4053

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All changes to this project will be documented in this file.
44

5+
## [1.2.32] - 2024-07-16
6+
7+
- Add `isFullScreen` in `fullscreenchange` event
8+
59
## [1.2.31] - 2024-06-19
610

711
- Add ESM target

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ Available events are the following:
450450
| ended | The playback as reached the ended of the video | - |
451451
| error | An error occured | - |
452452
| firstplay | The video started to play for the first time | - |
453-
| fullscreenchange | The player goes to (or goes back from) full screen | - |
453+
| fullscreenchange | The player goes to (or goes back from) full screen | `{ isFullScreen: boolean }` |
454454
| mouseenter | The user's mouse entered the player area | - |
455455
| mouseleave | The user's mouse leaved the player area | - |
456456
| pause | The video has been paused | - |

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ type PlayerSdkEvent = {
6868
ended: () => void;
6969
error: () => void;
7070
firstplay: () => void;
71-
fullscreenchange: () => void;
71+
fullscreenchange: (isFullScreen: boolean) => void;
7272
mouseenter: () => void;
7373
mouseleave: () => void;
7474
pause: () => void;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@api.video/player-sdk",
3-
"version": "1.2.31",
3+
"version": "1.2.32",
44
"description": "api.video player SDK",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)