Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/me-17952-test-video-play-main-pa…
Browse files Browse the repository at this point in the history
…ge' into me-17952-test-video-play-main-page
  • Loading branch information
ShayLevi committed Nov 10, 2024
2 parents 34df815 + 4a1fdaf commit f990e9b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG-edge.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [2.1.2-edge.0](https://github.com/cloudinary/cloudinary-video-player/compare/v2.1.1-edge.2...v2.1.2-edge.0) (2024-11-07)


### Bug Fixes

* one event for internal analytics ([#728](https://github.com/cloudinary/cloudinary-video-player/issues/728)) ([7552998](https://github.com/cloudinary/cloudinary-video-player/commit/7552998726656d83ba228460b4dc687ae9d0c94d))

## [2.1.1-edge.2](https://github.com/cloudinary/cloudinary-video-player/compare/v2.1.1-edge.1...v2.1.1-edge.2) (2024-10-27)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudinary-video-player",
"version": "2.1.1-edge.2",
"version": "2.1.2-edge.0",
"description": "Cloudinary Video Player",
"author": "Cloudinary",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/cloudinary/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CloudinaryContext {
refresh();
}

this.player.trigger('cldsourcechanged', { source: src });
this.player.trigger('cldsourcechanged', { source: src, sourceOptions: options });

return _chainTarget;
};
Expand Down
6 changes: 2 additions & 4 deletions src/video-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ class VideoPlayer extends Utils.mixin(Eventable) {
}
}

_onSourceChange() {
this._sendInternalAnalytics();
_onSourceChange(e, { sourceOptions }) {
this._sendInternalAnalytics({ ...(sourceOptions ?? { source: sourceOptions }) });
// #if (!process.env.WEBPACK_BUILD_LIGHT)
this._initQualitySelector();
// #endif
Expand Down Expand Up @@ -541,8 +541,6 @@ class VideoPlayer extends Utils.mixin(Eventable) {
});
}

this._sendInternalAnalytics({ source: options });

if (publicId instanceof VideoSource) {
return this.videojs.cloudinary.source(publicId, options);
}
Expand Down

0 comments on commit f990e9b

Please sign in to comment.