Skip to content

Commit

Permalink
Add isFullScreen attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-lando committed Jul 16, 2024
1 parent fc540b7 commit 74e4053
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | - |
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type PlayerSdkEvent = {
ended: () => void;
error: () => void;
firstplay: () => void;
fullscreenchange: () => void;
fullscreenchange: (isFullScreen: boolean) => void;
mouseenter: () => void;
mouseleave: () => void;
pause: () => void;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 74e4053

Please sign in to comment.