Skip to content

Commit

Permalink
Merge pull request #10 from apivideo/private-session
Browse files Browse the repository at this point in the history
Add privateSession attribute
  • Loading branch information
olivier-lando authored Feb 15, 2023
2 parents 4fb89d7 + 11e7f45 commit 8642547
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [1.0.2] - 2023-02-15
- Add `privateSession` attribute

## [1.0.1] - 2022-06-23
- Add `videoStyleObjectFit` and `videoStyleTransform` attributes

Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@api.video/react-player",
"version": "1.0.1",
"version": "1.0.2",
"description": "api.video React player component",
"keywords": [
"player",
Expand Down Expand Up @@ -49,6 +49,6 @@
"typescript": "^4.7.4"
},
"dependencies": {
"@api.video/player-sdk": "^1.2.21"
"@api.video/player-sdk": "^1.2.23"
}
}
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface ApiVideoPlayerVideo {
id: string;
live?: boolean;
token?: string;
privateSession?: string;
};

export type ControlName = SdkControlName;
Expand Down Expand Up @@ -179,6 +180,7 @@ export default class ApiVideoPlayer extends React.Component<ApiVideoPlayerProps,

if (nextProps.video.id !== this.props.video.id
|| nextProps.video.token !== this.props.video.token
|| nextProps.video.privateSession !== this.props.video.privateSession
|| nextProps.video.live !== this.props.video.live) {
this.playerSdk.loadConfig({
...(this.props),
Expand Down

0 comments on commit 8642547

Please sign in to comment.