@streamscloud/embeddable 7.2.0-1759185799768 → 7.2.0-1759186013783

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.
@@ -48,17 +48,17 @@ $effect(() => {
48
48
  });
49
49
  $effect(() => contentPlayerConfig.updateMediaCenterData(mediaCenterData));
50
50
  const initNewStream = (streamId) => __awaiter(void 0, void 0, void 0, function* () {
51
- var _a;
51
+ var _a, _b;
52
52
  const stream = yield dataProvider.getStream(streamId);
53
53
  if (!stream) {
54
54
  toastrWarning(localization.streamNotFound);
55
- onPlayerClose();
55
+ (_a = on === null || on === void 0 ? void 0 : on.playerClosed) === null || _a === void 0 ? void 0 : _a.call(on);
56
56
  return;
57
57
  }
58
58
  if (stream.organizationId) {
59
59
  analyticsHandler === null || analyticsHandler === void 0 ? void 0 : analyticsHandler.setOrganizationId(stream.organizationId);
60
60
  }
61
- (_a = on === null || on === void 0 ? void 0 : on.streamActivated) === null || _a === void 0 ? void 0 : _a.call(on, { title: stream.title, image: stream.cover });
61
+ (_b = on === null || on === void 0 ? void 0 : on.streamActivated) === null || _b === void 0 ? void 0 : _b.call(on, { title: stream.title, image: stream.cover });
62
62
  // start tracking the stream
63
63
  currentStreamModel = stream;
64
64
  new StreamPlayerBuffer({
@@ -97,7 +97,7 @@ const contentPlayerConfig = new ContentPlayerConfig({
97
97
  socialInteractionsHandler: postSocialInteractionsHandler,
98
98
  mediaCenterData,
99
99
  callbacks: {
100
- close: () => onPlayerClose(),
100
+ close: on === null || on === void 0 ? void 0 : on.playerClosed,
101
101
  videoProgress: (pageId, videoId, progress) => {
102
102
  onProgress(pageId, videoId, progress);
103
103
  },
@@ -147,10 +147,6 @@ const onStreamProductClick = (productId) => {
147
147
  const onStreamProductImpression = (productId) => {
148
148
  analyticsHandler === null || analyticsHandler === void 0 ? void 0 : analyticsHandler.trackStreamProductImpression(productId, streamId);
149
149
  };
150
- const onPlayerClose = () => {
151
- var _a;
152
- (_a = on === null || on === void 0 ? void 0 : on.playerClosed) === null || _a === void 0 ? void 0 : _a.call(on);
153
- };
154
150
  const onProgress = (pageId, videoId, progress) => {
155
151
  analyticsHandler === null || analyticsHandler === void 0 ? void 0 : analyticsHandler.trackShortVideoProgress(pageId, videoId, progress, streamId);
156
152
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "7.2.0-1759185799768",
3
+ "version": "7.2.0-1759186013783",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",