@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 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
- #### React integration
945
+ #### `<CastSender>`
962
946
 
963
- For React integration, enable Cast by adding `initSender` and `<CastSender>` to your app.
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 {CastSessionControl} from 'playcraft/react'
969
-
970
- useEffect(() => {
971
- initSender({appId: "XXXXXX"});
972
- },[])
973
-
974
- <CastSessionControl intl={{locale: 'ja'}} />
975
- ```
952
+ import {CastSender} from 'playcraft/react'
976
953
 
977
- To add `customData` for your own custom logic, use `cast.customData` prop of `<PremiumPlayer>`:
978
-
979
- ```js
980
- <PremiumPlayer cast={{
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
- You may also handle Cast connection state change with `cast.onChange`.
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 => {