@kkcompany/player 2.9.23 → 2.9.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +8 -40
- package/dist/core.mjs +6674 -886
- package/dist/index.js +9971 -4207
- package/dist/index.mjs +7900 -2141
- package/dist/modules.mjs +7206 -303
- package/dist/plugins.mjs +6957 -1
- package/dist/react.mjs +8137 -2722
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.9.24](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.9.22...v2.9.24) (2025-10-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* update HLS support detection for various browsers and platforms ([be92a16](https://gitlab.kkinternal.com/playback/web-playcraft/commit/be92a163cc36b8e257ba816d209a5f78837bee49))
|
|
11
|
+
|
|
12
|
+
### [2.9.22](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.9.20...v2.9.22) (2025-10-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* set preferredKeySystems before loading new source ([7ba983c](https://gitlab.kkinternal.com/playback/web-playcraft/commit/7ba983cc924161b5a9eb2f669d3d510a79e0ea10))
|
|
18
|
+
|
|
5
19
|
### [2.9.20](https://gitlab.kkinternal.com/playback/web-playcraft/compare/v2.9.19...v2.9.20) (2025-09-10)
|
|
6
20
|
|
|
7
21
|
|
package/README.md
CHANGED
|
@@ -199,22 +199,6 @@ To play content protection endabled videos, you should specify license server UR
|
|
|
199
199
|
]
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
-
**Extranal text track / subtitles**
|
|
203
|
-
|
|
204
|
-
To add external text track, specify another source object with `type: 'text/vtt'`:
|
|
205
|
-
|
|
206
|
-
```js
|
|
207
|
-
;[
|
|
208
|
-
{
|
|
209
|
-
type: 'dash',
|
|
210
|
-
src: 'https://storage.googleapis.com/shaka-demo-assets/bbb-dark-truths/dash.mpd',
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
type: 'text/vtt',
|
|
214
|
-
src: 'https://storage.googleapis.com/shaka-demo-assets/bbb-dark-truths/text_ex.vtt',
|
|
215
|
-
}
|
|
216
|
-
```
|
|
217
|
-
|
|
218
202
|
#### Props for Player Options
|
|
219
203
|
|
|
220
204
|
**`shaka`**
|
|
@@ -958,38 +942,22 @@ const MyApp = () => {
|
|
|
958
942
|
|
|
959
943
|
For plain JS integration, sender integration & mini control UI comes with player UI automatically, just specify `castReceiverAppId` and it will handle the rest, including initialization of Google Cast sender SDK.
|
|
960
944
|
|
|
961
|
-
####
|
|
945
|
+
#### `<CastSender>`
|
|
962
946
|
|
|
963
|
-
For React integration, enable Cast by adding
|
|
947
|
+
For React integration, enable Cast by adding `<CastSender>` to your app.
|
|
964
948
|
|
|
965
949
|
`<PremiumPlayer>` have a Cast button, which will display automatically when Google Cast sender is initialized and there's some available receiver ready for connection.
|
|
966
950
|
|
|
967
951
|
```js
|
|
968
|
-
import {
|
|
969
|
-
|
|
970
|
-
useEffect(() => {
|
|
971
|
-
initSender({appId: "XXXXXX"});
|
|
972
|
-
},[])
|
|
973
|
-
|
|
974
|
-
<CastSessionControl intl={{locale: 'ja'}} />
|
|
975
|
-
```
|
|
952
|
+
import {CastSender} from 'playcraft/react'
|
|
976
953
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
contentId: '1',
|
|
982
|
-
customData: {
|
|
983
|
-
host: 'https://example.com',
|
|
984
|
-
accessToken: '1234567890',
|
|
985
|
-
customHeader: {},
|
|
986
|
-
customQuery: {},
|
|
987
|
-
},
|
|
988
|
-
onChange: handleCastChange,
|
|
989
|
-
}}>
|
|
954
|
+
<CastSender
|
|
955
|
+
appId="XXXXXX"
|
|
956
|
+
intl={{locale: 'ja'}}
|
|
957
|
+
/>
|
|
990
958
|
```
|
|
991
959
|
|
|
992
|
-
|
|
960
|
+
To add `customData` for your own custom logic, use `onCast` handler of `<PremiumPlayer>`:
|
|
993
961
|
|
|
994
962
|
```js
|
|
995
963
|
<PremiumPlayer onCast={async request => {
|