@kkcompany/ott-player 0.3.99-alpha.0
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/.eslintrc.js +21 -0
- package/CHANGELOG.md +166 -0
- package/README.md +25 -0
- package/package.json +38 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/src/PremiumPlusPlayer.js +551 -0
- package/src/ad/playerIntegration.js +97 -0
- package/src/browserCompatibility.js +24 -0
- package/src/classic.js +186 -0
- package/src/constants.js +10 -0
- package/src/events.js +25 -0
- package/src/index.css +13 -0
- package/src/index.js +33 -0
- package/src/logger/useAmplitudeLogger.js +82 -0
- package/src/playbackSession/api.js +160 -0
- package/src/playbackSession/getCache.js +16 -0
- package/src/playbackSession/preload.js +30 -0
- package/src/playbackSession/sourceType.js +24 -0
- package/src/playbackSession/startSession.js +167 -0
- package/src/playerUtils.js +24 -0
- package/src/playlog.js +346 -0
- package/src/ui/RecommendationPanel.js +103 -0
- package/src/ui/icon.js +75 -0
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
browser: true,
|
|
4
|
+
es2021: true,
|
|
5
|
+
},
|
|
6
|
+
extends: ["eslint:recommended", "plugin:react/recommended"],
|
|
7
|
+
overrides: [],
|
|
8
|
+
parserOptions: {
|
|
9
|
+
ecmaVersion: "latest",
|
|
10
|
+
sourceType: "module",
|
|
11
|
+
},
|
|
12
|
+
plugins: ["react"],
|
|
13
|
+
rules: {
|
|
14
|
+
"react/react-in-jsx-scope": false,
|
|
15
|
+
},
|
|
16
|
+
globals: {
|
|
17
|
+
_: "readonly",
|
|
18
|
+
cast: "readonly",
|
|
19
|
+
chrome: "readonly",
|
|
20
|
+
},
|
|
21
|
+
};
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
### [0.3.96](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.95...player@0.3.96) (2025-10-17)
|
|
6
|
+
|
|
7
|
+
### [0.3.95](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.94...player@0.3.95) (2025-10-13)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* prefer PlayReady only on Windows Edge ([4b9ad41](https://gitlab.kkinternal.com/kks-web/blahaj/commit/4b9ad4101611f8bfd15a2056828633e7651daf09))
|
|
13
|
+
|
|
14
|
+
### [0.3.94](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.90...player@0.3.94) (2025-10-13)
|
|
15
|
+
|
|
16
|
+
### [0.3.93](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.92...v0.3.93) (2025-09-24)
|
|
17
|
+
|
|
18
|
+
### [0.3.92](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.86...v0.3.92) (2025-09-10)
|
|
19
|
+
|
|
20
|
+
### [0.3.90](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.89...player@0.3.90) (2025-08-19)
|
|
21
|
+
|
|
22
|
+
### [0.3.89](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.88...player@0.3.89) (2025-07-11)
|
|
23
|
+
|
|
24
|
+
### [0.3.88](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.87...player@0.3.88) (2025-06-23)
|
|
25
|
+
|
|
26
|
+
### [0.3.87](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.85...player@0.3.87) (2025-06-20)
|
|
27
|
+
|
|
28
|
+
### [0.3.86](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.83...v0.3.86) (2025-06-16)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* check for WinEdge to avoid broken PlayReady detection ([9609474](https://gitlab.kkinternal.com/kks-web/blahaj/commit/960947402ee581ff6935774dc1175c2496771485))
|
|
34
|
+
|
|
35
|
+
### [0.3.85](https://gitlab.kkinternal.com/kks-web/blahaj/compare/player@0.3.84...player@0.3.85) (2025-05-28)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* check for WinEdge to avoid broken PlayReady detection ([9609474](https://gitlab.kkinternal.com/kks-web/blahaj/commit/960947402ee581ff6935774dc1175c2496771485))
|
|
41
|
+
|
|
42
|
+
### 0.3.84 (2025-05-21)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* [IBIZA-355] add drmTokenType ([425fc52](https://gitlab.kkinternal.com/kks-web/blahaj/commit/425fc5286a5836bd55c0bb1a5c9df04ac9c490e8))
|
|
48
|
+
* [ST-10741] prefer PlayReady for more robust content protection ([0819b51](https://gitlab.kkinternal.com/kks-web/blahaj/commit/0819b511cb24634f17719d15f768476acaccbc2b))
|
|
49
|
+
* cancel autoplay next at end to open related line ([195a072](https://gitlab.kkinternal.com/kks-web/blahaj/commit/195a0727f13bf5292cf9a992db720b706f829f70))
|
|
50
|
+
* disable DRM server limit and add docs ([4003b4d](https://gitlab.kkinternal.com/kks-web/blahaj/commit/4003b4de46933dedd7970217e2bc859b58288037))
|
|
51
|
+
* enable onChangeSettings event listener ([1af346d](https://gitlab.kkinternal.com/kks-web/blahaj/commit/1af346d95c9920ae1f65dc8fc1cd61c142c60ad4))
|
|
52
|
+
* expose turnOnSkipOpening ([38c2b94](https://gitlab.kkinternal.com/kks-web/blahaj/commit/38c2b94277d4ed9ddf5ab9c624cdae738c20114d))
|
|
53
|
+
* hide channel icon in live ([349fce1](https://gitlab.kkinternal.com/kks-web/blahaj/commit/349fce1a6dd1c593a5085b3a6e49fef9231d8a08))
|
|
54
|
+
* implement amplitute logger ([454d6af](https://gitlab.kkinternal.com/kks-web/blahaj/commit/454d6af2cec67460b1b75f4c6ec3b3019b4ae17b))
|
|
55
|
+
* **player:** add amplitude logger ([7621882](https://gitlab.kkinternal.com/kks-web/blahaj/commit/76218827bc0b438ad1663902360e59407788eab1))
|
|
56
|
+
* **player:** add player utils ([f4e4c2a](https://gitlab.kkinternal.com/kks-web/blahaj/commit/f4e4c2a6d96b71e27f075e62028161352f5e7bee))
|
|
57
|
+
* **player:** extract eventName from handleSendLog ([92e7fa9](https://gitlab.kkinternal.com/kks-web/blahaj/commit/92e7fa9535d3f8a13088216fd1f283a96f9f95cf))
|
|
58
|
+
* **player:** fix amplitude ([2fe40a8](https://gitlab.kkinternal.com/kks-web/blahaj/commit/2fe40a866678c4469d08f8ac8bf6444dfbf1a0f7))
|
|
59
|
+
* **player:** fix player version and export cast ([133975a](https://gitlab.kkinternal.com/kks-web/blahaj/commit/133975a9a80940f6a0a77568c61d4722f70eb5a1))
|
|
60
|
+
* **player:** load cast media ([2177858](https://gitlab.kkinternal.com/kks-web/blahaj/commit/2177858da422380ed55d77b405aa4322050c1f90))
|
|
61
|
+
* **player:** modify cast ui color ([9c5be34](https://gitlab.kkinternal.com/kks-web/blahaj/commit/9c5be345fddc384ba9d8958048fbea1b3e912bfc))
|
|
62
|
+
* **player:** move playcraft premium+ here ([aee99f9](https://gitlab.kkinternal.com/kks-web/blahaj/commit/aee99f9c1941a645037d1b63510a72e3166ec9d3))
|
|
63
|
+
* **player:** run ci on gitlab to publish player onto npm ([ba01b16](https://gitlab.kkinternal.com/kks-web/blahaj/commit/ba01b16802428e42d60d53e3497c31ec590178b4))
|
|
64
|
+
* **player:** subscribe cast state ([cc9eba4](https://gitlab.kkinternal.com/kks-web/blahaj/commit/cc9eba4471d9febc01d0293639916b01f2887095))
|
|
65
|
+
* **player:** upgrade to blenvision 2.6.0-canary 3 ([12ac531](https://gitlab.kkinternal.com/kks-web/blahaj/commit/12ac531783e77488f66465f87ecd987252608310))
|
|
66
|
+
* remove mock data and chapter ([f48373b](https://gitlab.kkinternal.com/kks-web/blahaj/commit/f48373b4861028a2c4a94bf34bdabb39eb970ec8))
|
|
67
|
+
* show skip button successfully ([e7c9ae7](https://gitlab.kkinternal.com/kks-web/blahaj/commit/e7c9ae7e0623cab13428901b965d640a45e82ae3))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
|
|
72
|
+
* [ST-10105] prevent live end UI hide ([c77dc32](https://gitlab.kkinternal.com/kks-web/blahaj/commit/c77dc320f81b20b5dd8fb3f8399c125ebce71785))
|
|
73
|
+
* [ST-10162] add player_error_code in amplitude and provide a way to customize module_error_code if needed ([25841ce](https://gitlab.kkinternal.com/kks-web/blahaj/commit/25841ce24b67fe6e666a7d39fa3119a22327d5e2))
|
|
74
|
+
* [ST-10180] add player version to playback amplitude event ([76928ee](https://gitlab.kkinternal.com/kks-web/blahaj/commit/76928eed3f09005a8df89595c02a5663eb04d265))
|
|
75
|
+
* [ST-10241] skip button hidden if panel shown ([b6a8fa1](https://gitlab.kkinternal.com/kks-web/blahaj/commit/b6a8fa1ac703fac8f28b57c4dfdd7443cfac5e1e))
|
|
76
|
+
* [ST-10262] add log event for skip op ([5b2d3fc](https://gitlab.kkinternal.com/kks-web/blahaj/commit/5b2d3fc56adc17cf9021173788488c4769a86960))
|
|
77
|
+
* [ST-10543] workaround, reset control hide for autoplay next at start ([661091f](https://gitlab.kkinternal.com/kks-web/blahaj/commit/661091fc35f779e2c9523abfcffb61dc2a197bb4))
|
|
78
|
+
* [ST-10605] don't hide controls after end of iOS fullscreen ([98f6ae6](https://gitlab.kkinternal.com/kks-web/blahaj/commit/98f6ae62581da8cd07ffd1e24df29e109a1ad057))
|
|
79
|
+
* [ST-10677] there should be no seek log at start of playback ([d921997](https://gitlab.kkinternal.com/kks-web/blahaj/commit/d92199785f0b55a8f3de72d2d55e481c2f6eb006))
|
|
80
|
+
* [ST-10706] don't update playback position for initial loading ([8e8d5f7](https://gitlab.kkinternal.com/kks-web/blahaj/commit/8e8d5f7c3e9cb4441ef0c1495870384e093f9bd5))
|
|
81
|
+
* [ST-10713] while connected to cast, don't start playback session ([cdc9e99](https://gitlab.kkinternal.com/kks-web/blahaj/commit/cdc9e99c528a6f8a8f26e1adc330f9d96b3f0405))
|
|
82
|
+
* [ST-10713] while connected to cast, don't start playback session ([88e85ab](https://gitlab.kkinternal.com/kks-web/blahaj/commit/88e85ab65253f9080064816b9a2efdcd815c7ba3))
|
|
83
|
+
* [ST-10849][ST-11472] update version and add two ticket numbers for triggering bot ([7342a80](https://gitlab.kkinternal.com/kks-web/blahaj/commit/7342a80657b105d5b97585a7855cfbecb3f23059))
|
|
84
|
+
* [ST-11221] clear log instance later to send error events ([d70c927](https://gitlab.kkinternal.com/kks-web/blahaj/commit/d70c9273d0766983faa868e25ce8eb6d49b4f921))
|
|
85
|
+
* [ST-11594] filter out first seeked event when entering watch page, but making forward and rewind emit seek ([9c2357b](https://gitlab.kkinternal.com/kks-web/blahaj/commit/9c2357b39ea4e18bf20f764a7de4810f6bb1cc20))
|
|
86
|
+
* [ST-11696] format float to zero when seek to ([5bd1d4e](https://gitlab.kkinternal.com/kks-web/blahaj/commit/5bd1d4e039350716f07425ffd2608b36c972bd3f))
|
|
87
|
+
* [ST-11710] set lives commonProperties when content has been fetched. ([b1fd029](https://gitlab.kkinternal.com/kks-web/blahaj/commit/b1fd02917817b453d77ba74728ad2277628817dc))
|
|
88
|
+
* [ST-11714] format current position to 0 if got float ([6c74dce](https://gitlab.kkinternal.com/kks-web/blahaj/commit/6c74dce7b1ab7747d921b990ce9d7cbfe6b5062b))
|
|
89
|
+
* [ST-11716][ST-11715]ST-11800][ST-11799][ST-11795] amplitude property wrongly set fixed ([78be756](https://gitlab.kkinternal.com/kks-web/blahaj/commit/78be756e5d05595a4f5f90486341ce6414a4d973))
|
|
90
|
+
* [ST-11881] avoid extra seek / log events when recovering a playback session ([9b698ec](https://gitlab.kkinternal.com/kks-web/blahaj/commit/9b698ec7d2776072f5a6623d758b4234110e8860))
|
|
91
|
+
* [ST-12950] check logTarget.current ([b57ffde](https://gitlab.kkinternal.com/kks-web/blahaj/commit/b57ffde0157f2deb705feeb604ff33ffe9c0c917))
|
|
92
|
+
* [ST-13297] bring back missing playback_session_id ([aa40b64](https://gitlab.kkinternal.com/kks-web/blahaj/commit/aa40b64348b8feab58487aabb564e43c2c53c0aa))
|
|
93
|
+
* [ST-13312][ST-13314] handle log event time after video clean up ([f97c519](https://gitlab.kkinternal.com/kks-web/blahaj/commit/f97c519a884852cca70cf056972627ada57530e9))
|
|
94
|
+
* add ignore for initial start position in playedDuration condition ([25054c3](https://gitlab.kkinternal.com/kks-web/blahaj/commit/25054c313a460f76512a3ce1844689a5c4038444))
|
|
95
|
+
* add retry handler ([d71be1f](https://gitlab.kkinternal.com/kks-web/blahaj/commit/d71be1f94b739d7501454ba66c04468441e24e34))
|
|
96
|
+
* also override ui type for op/ed skip UI ([cb23d29](https://gitlab.kkinternal.com/kks-web/blahaj/commit/cb23d29e06bbf1d41e7796dea23f1f5e7810f9a5))
|
|
97
|
+
* also workaround unwanted open of related line when replay ([5c453a4](https://gitlab.kkinternal.com/kks-web/blahaj/commit/5c453a4e0b7f1603a171740bfd4d9735dc6efdf2))
|
|
98
|
+
* clear active panel when autoplay next is hidden ([f5599e8](https://gitlab.kkinternal.com/kks-web/blahaj/commit/f5599e88410b2317b0c62ae7120548268e87c875))
|
|
99
|
+
* clear skip op/ed related chapter events on content change ([541e24c](https://gitlab.kkinternal.com/kks-web/blahaj/commit/541e24cb2c04b2d54b10e2130e5afe871722b9f3))
|
|
100
|
+
* close related line on content change ([509c19d](https://gitlab.kkinternal.com/kks-web/blahaj/commit/509c19df99d546a3402f09add100dc260c9a8b7e))
|
|
101
|
+
* disable autoPlayPromp temporarily for player v2.6.0 ([6915008](https://gitlab.kkinternal.com/kks-web/blahaj/commit/6915008145e72468a8c56a063b23df6094b4d9a0))
|
|
102
|
+
* dispatch chapter events without using chapter seekbar / list ([2d67542](https://gitlab.kkinternal.com/kks-web/blahaj/commit/2d675429bdbe9cc94d9a3de852df2ce25ec96b9e))
|
|
103
|
+
* fix typo and downgrade react to fit saku-web ([8ef8985](https://gitlab.kkinternal.com/kks-web/blahaj/commit/8ef8985c33d521e051fa7859403ae55009e8fadc))
|
|
104
|
+
* get duration again for playlog ([2efbdd3](https://gitlab.kkinternal.com/kks-web/blahaj/commit/2efbdd3264221a7cc2281c37056561643402a4f0))
|
|
105
|
+
* handle case related line doesn't exist ([b870fe0](https://gitlab.kkinternal.com/kks-web/blahaj/commit/b870fe0b866e2952b4778811f8d25038057bd9f9))
|
|
106
|
+
* handle the case related line open after playing next ([fa2f2b5](https://gitlab.kkinternal.com/kks-web/blahaj/commit/fa2f2b571a8fa0f8f4df0ab89ec08164c7c03902))
|
|
107
|
+
* no seeked event for initial play position ([20a6b49](https://gitlab.kkinternal.com/kks-web/blahaj/commit/20a6b49fa35d26a695804049ca2cce6d2caf9206))
|
|
108
|
+
* pass chapters for skip related events ([aeced2a](https://gitlab.kkinternal.com/kks-web/blahaj/commit/aeced2a7860181295aad0ab097ba3259d4b0543b))
|
|
109
|
+
* **player:** [ST-10135] hide recommendation panel when player status is autoplay-next ([a65f215](https://gitlab.kkinternal.com/kks-web/blahaj/commit/a65f21586a7e1c32464eea25c70dae7882d6c900))
|
|
110
|
+
* **player:** [ST-10177] invariant style violation error ([04ba558](https://gitlab.kkinternal.com/kks-web/blahaj/commit/04ba558cd2f2e5c1cfde46e6f023b70de37db5f5))
|
|
111
|
+
* **player:** compile error ([5d95cf9](https://gitlab.kkinternal.com/kks-web/blahaj/commit/5d95cf99d18c6a340443c0bae7e1fe58dafa0e2f))
|
|
112
|
+
* **player:** export problem of blendvision/player ([d4a64e8](https://gitlab.kkinternal.com/kks-web/blahaj/commit/d4a64e89f60cd5f166f2040e2a8cd92fda1e4dbb))
|
|
113
|
+
* **player:** hide control panel when recommendation up ([e499ad9](https://gitlab.kkinternal.com/kks-web/blahaj/commit/e499ad9f6bae2dc853e8d72cc2b43ed24a2e83d3))
|
|
114
|
+
* **player:** prevent video displaying in two tabs ([0fdbc36](https://gitlab.kkinternal.com/kks-web/blahaj/commit/0fdbc363c6928dc02c232ce9b82ee592862b6348))
|
|
115
|
+
* **player:** remove amplitude log setting ([51db86f](https://gitlab.kkinternal.com/kks-web/blahaj/commit/51db86f6e1e1358faa5aaea4d8b2f1ea49d27994))
|
|
116
|
+
* **player:** saku amplitude issues ([a289b70](https://gitlab.kkinternal.com/kks-web/blahaj/commit/a289b70d1c28bd5248419b4f0501b85f4b03546b))
|
|
117
|
+
* **player:** show skip button correctly and release 0.3.1 ([e36a633](https://gitlab.kkinternal.com/kks-web/blahaj/commit/e36a633f83f33d1bacb88248d1ab267bdf573658))
|
|
118
|
+
* **player:** ST-10039, ST-9990 related line auto disappear when clicked ([6f5ebdd](https://gitlab.kkinternal.com/kks-web/blahaj/commit/6f5ebddedffcd65b2a341fe3b1d2491fa0ba1eaf))
|
|
119
|
+
* **player:** ST-10096 live time format ([e39780d](https://gitlab.kkinternal.com/kks-web/blahaj/commit/e39780d2e49545cbfad956957742228ac6927716))
|
|
120
|
+
* **playlog:** duration for began event ([b2ff1f4](https://gitlab.kkinternal.com/kks-web/blahaj/commit/b2ff1f48dca6d0a8861dfb9c08653c10215b4962))
|
|
121
|
+
* **playlog:** duration for initial event ([6dc561b](https://gitlab.kkinternal.com/kks-web/blahaj/commit/6dc561b2750d612baab8b68c18c23ded8fce4e55))
|
|
122
|
+
* **playlog:** ignore negative played time ([b3aac55](https://gitlab.kkinternal.com/kks-web/blahaj/commit/b3aac55cbc6df3b5a815b90152a37a4cd945fa63))
|
|
123
|
+
* **playlog:** send events when channel program change ([b1450e6](https://gitlab.kkinternal.com/kks-web/blahaj/commit/b1450e612db0c2293378ab2252cfde08fa231188))
|
|
124
|
+
* pop related line at end ([5213cca](https://gitlab.kkinternal.com/kks-web/blahaj/commit/5213cca56a14138845fe6f8658f4ffa0591cf1fa))
|
|
125
|
+
* prevent override of onPlayerLoaded ([65c5634](https://gitlab.kkinternal.com/kks-web/blahaj/commit/65c563427c84b05c939e29639d719f482a2928ad))
|
|
126
|
+
* remove extra cast load ([1f1af33](https://gitlab.kkinternal.com/kks-web/blahaj/commit/1f1af33cfc9b7eb163f8d3c7f9a104ce4e0f7d32))
|
|
127
|
+
* remove saku unused common properties and update version number ([51b5da0](https://gitlab.kkinternal.com/kks-web/blahaj/commit/51b5da00615daf77826a5c4275330d801d7e46ed))
|
|
128
|
+
* retry ended linear channel ([125436e](https://gitlab.kkinternal.com/kks-web/blahaj/commit/125436eb9bede9468ee9d112ab9733f9d96d22a2))
|
|
129
|
+
* ST-10135 and push v0.3.11 ([8640538](https://gitlab.kkinternal.com/kks-web/blahaj/commit/8640538d7ceb867636f374c85e94c9ad7f9e560c))
|
|
130
|
+
* start / end log events ([cbfdbed](https://gitlab.kkinternal.com/kks-web/blahaj/commit/cbfdbed0e069cf3b820b6722520c07e3a4a85b3b))
|
|
131
|
+
* update blahaj version to v0.3.71 ([6299344](https://gitlab.kkinternal.com/kks-web/blahaj/commit/6299344720f8da3c46e797d5438d75acd49d4139))
|
|
132
|
+
* update blahaj version to v0.3.72 ([9c83927](https://gitlab.kkinternal.com/kks-web/blahaj/commit/9c83927250ea1f607c855ecbef059b704b070163))
|
|
133
|
+
* update blahaj version to v0.3.74 ([c6dd359](https://gitlab.kkinternal.com/kks-web/blahaj/commit/c6dd3597b3785c431a85dec2ed1fa7df4ece08d0))
|
|
134
|
+
* update blendvision to 2.9.6 ([8de856f](https://gitlab.kkinternal.com/kks-web/blahaj/commit/8de856f8fc379942857bcc05e1d088e3b0b4a712))
|
|
135
|
+
* update blendvision to v2.9.7 ([bac1c4b](https://gitlab.kkinternal.com/kks-web/blahaj/commit/bac1c4bc756e8833935592a121585c46e49dcafd))
|
|
136
|
+
* update blendvision version to v2.9.8 ([e801a6c](https://gitlab.kkinternal.com/kks-web/blahaj/commit/e801a6c559c6b7939ab7c520d467c301224be34b))
|
|
137
|
+
* update play-craft to v2.9.4 to resolve ST-10751 ([922f823](https://gitlab.kkinternal.com/kks-web/blahaj/commit/922f823a1d89f3828a1bfe9bcb3d12616c3b8c50))
|
|
138
|
+
* upgrade @blendvision/player to 2.9.0-canary.30, replace timeline ([ea6a49c](https://gitlab.kkinternal.com/kks-web/blahaj/commit/ea6a49c1bc25d2d88ee1bfc8652c26aae694fe09))
|
|
139
|
+
* upgrade playcraft to 2.9.0-canary.56 ([d8fc724](https://gitlab.kkinternal.com/kks-web/blahaj/commit/d8fc72496bc8871a8c15414e650023c2c34d93c2))
|
|
140
|
+
* use onCast to make casting successfully ([0205e59](https://gitlab.kkinternal.com/kks-web/blahaj/commit/0205e5928ef4c0840c7cfb48f18e02e650bc9633))
|
|
141
|
+
|
|
142
|
+
### [0.3.83](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.82...v0.3.83) (2025-04-17)
|
|
143
|
+
|
|
144
|
+
### [0.3.82](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.81...v0.3.82) (2025-04-16)
|
|
145
|
+
|
|
146
|
+
### [0.3.81](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.80...v0.3.81) (2025-03-07)
|
|
147
|
+
|
|
148
|
+
### [0.3.80](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.79...v0.3.80) (2025-03-04)
|
|
149
|
+
|
|
150
|
+
### [0.3.78](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.77...v0.3.78) (2025-02-19)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Bug Fixes
|
|
154
|
+
|
|
155
|
+
* **playlog:** duration for initial event ([6dc561b](https://gitlab.kkinternal.com/kks-web/blahaj/commit/6dc561b2750d612baab8b68c18c23ded8fce4e55))
|
|
156
|
+
|
|
157
|
+
### [0.3.77](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.76...v0.3.77) (2025-02-17)
|
|
158
|
+
|
|
159
|
+
### [0.3.76](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.75...v0.3.76) (2025-02-10)
|
|
160
|
+
|
|
161
|
+
### [0.3.75](https://gitlab.kkinternal.com/kks-web/blahaj/compare/v0.3.74...v0.3.75) (2025-02-10)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Bug Fixes
|
|
165
|
+
|
|
166
|
+
* [ST-11881] avoid extra seek / log events when recovering a playback session ([9b698ec](https://gitlab.kkinternal.com/kks-web/blahaj/commit/9b698ec7d2776072f5a6623d758b4234110e8860))
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
## How to Release New Version of Player to npm
|
|
3
|
+
|
|
4
|
+
1. Stand on the branch Ex: `saku-player`
|
|
5
|
+
2. update the _blahaj_'s version in `package.json`
|
|
6
|
+
3. git **commit** and **push** the new changes
|
|
7
|
+
4. git **tag** the version and **push** to remote
|
|
8
|
+
5. go to Gitlab pipeline page, press the play button to trigger the pushing to npm script
|
|
9
|
+
6. go to NPM to check the publishment status: https://www.npmjs.com/package/blahaj-player
|
|
10
|
+
|
|
11
|
+
{width=60%}
|
|
12
|
+
|
|
13
|
+
## player developing tip
|
|
14
|
+
|
|
15
|
+
Run these scripts in devtool
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
localStorage.setItem('ENV_CHECK', 'none');
|
|
19
|
+
localStorage.setItem(
|
|
20
|
+
'DRM_PROTAL_URL',
|
|
21
|
+
'https://stag-jon-restful.kkstream.tech/'
|
|
22
|
+
);
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
to disable DRM functionality
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kkcompany/ott-player",
|
|
3
|
+
"version": "0.3.99-alpha.0",
|
|
4
|
+
"exports": {
|
|
5
|
+
".": {
|
|
6
|
+
"module": "./src/index.js"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"module": "index.mjs",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"develop": "next",
|
|
13
|
+
"start": "next start",
|
|
14
|
+
"test": "jest --coverage",
|
|
15
|
+
"watch:test": "jest --watch",
|
|
16
|
+
"build": "rollup -c && cp types/* dist/ && cp sdk.js npm/index.js && cp sdk.esm.js npm/index.esm.js && cp react.js plugins.js modules.js types/* npm/",
|
|
17
|
+
"build-sample": "rollup -c && next build && next export",
|
|
18
|
+
"release": "standard-version -a",
|
|
19
|
+
"now-build": "mv next-build .next || echo 'Not a next build, skip moving'",
|
|
20
|
+
"install:husky": "husky install"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@kkcompany/player": "2.9.24",
|
|
24
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
25
|
+
"@testing-library/react": "^13.4.0",
|
|
26
|
+
"@testing-library/user-event": "^13.5.0"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@babel/runtime": "^7.0.0",
|
|
30
|
+
"react": ">=17.0.2",
|
|
31
|
+
"react-dom": ">=17.0.2"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"eslint": "^8.46.0",
|
|
35
|
+
"eslint-plugin-react": "^7.33.1",
|
|
36
|
+
"standard-version": "^9.5.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<meta name="theme-color" content="#000000" />
|
|
8
|
+
<meta
|
|
9
|
+
name="description"
|
|
10
|
+
content="Web site created using create-react-app"
|
|
11
|
+
/>
|
|
12
|
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
+
<!--
|
|
14
|
+
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
+
-->
|
|
17
|
+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
+
<!--
|
|
19
|
+
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
+
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
+
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
+
|
|
23
|
+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
+
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
+
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
+
-->
|
|
27
|
+
<title>React App</title>
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
+
<div id="root"></div>
|
|
32
|
+
<!--
|
|
33
|
+
This HTML file is a template.
|
|
34
|
+
If you open it directly in the browser, you will see an empty page.
|
|
35
|
+
|
|
36
|
+
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
+
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
+
|
|
39
|
+
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
+
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
+
-->
|
|
42
|
+
</body>
|
|
43
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#000000",
|
|
24
|
+
"background_color": "#ffffff"
|
|
25
|
+
}
|