Skip to content

Commit

Permalink
Release 2.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa8626 committed Oct 13, 2021
1 parent 312e6d4 commit 2662362
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 9 deletions.
23 changes: 16 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v2.9.2](https://github.com/openplayerjs/openplayerjs/compare/v2.9.1...v2.9.2)

> 13 October 2021
- fix: upgrade core-js from 3.18.1 to 3.18.2 [`#288`](https://github.com/openplayerjs/openplayerjs/pull/288)
- fix(ads): Added flag to dispatch loading operation when ad is being added from configuration, andnot dynamically. Fixes #295 [`#295`](https://github.com/openplayerjs/openplayerjs/issues/295)
- Deleted unnecessary files [`6ff8a86`](https://github.com/openplayerjs/openplayerjs/commit/6ff8a865d48a5b6e994522fb74fcb5c0457ce869)
- Update stale.yml [`2638960`](https://github.com/openplayerjs/openplayerjs/commit/26389604c45a3f495656317baddcc2c8af9b5ed2)

#### [v2.9.1](https://github.com/openplayerjs/openplayerjs/compare/v2.9.0...v2.9.1)

> 5 October 2021
- feat(player): Added unit tests for recent changes in `load`, `play` and `loadAd` methods; removed unnecessary files and added helper for all unit tests to ensure proper handle on failures; fixes #283 [`#283`](https://github.com/openplayerjs/openplayerjs/issues/283)
- fix(player): Added new Promises and flags to ensure proper sequencing of `load`, `play` and `loadAd`; fixes #283 [`#283`](https://github.com/openplayerjs/openplayerjs/issues/283)
- fix(ads): Added missing conditional to check if media was muted by default, to avoid clicking twice when playing Ads; reorganized demos [`0b97c80`](https://github.com/openplayerjs/openplayerjs/commit/0b97c806ac57294a83fd399a79d5f5a7e5ae1fc4)
- Release 2.9.1 [`624432e`](https://github.com/openplayerjs/openplayerjs/commit/624432e0d452bfd9cfd4874b7cd6359bd6ff1e7f)
- fix(player): Added missing conditionals when destroying media, to check if the Media object exists; added new test for `addCaption` callback [`5d179a5`](https://github.com/openplayerjs/openplayerjs/commit/5d179a55d75d10b5dcc6b4e9b937ac63ec655237)
- Removed test file [`c9a9765`](https://github.com/openplayerjs/openplayerjs/commit/c9a97652b2bd79af7b8d286721f757993af1f9eb)

#### [v2.9.0](https://github.com/openplayerjs/openplayerjs/compare/v2.8.3...v2.9.0)

Expand All @@ -29,7 +38,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- fix(player): Added async/await for main methods to reduce code and allow catching any possible errorswhen attempting to play media; fixes #276 [`#276`](https://github.com/openplayerjs/openplayerjs/issues/276)
- fix(player): Added missing package and fixed workflow to allow async/await to work when bundling; fixed last issues with hls media and expanded unit tests to test load/play workflow [`3bd17d3`](https://github.com/openplayerjs/openplayerjs/commit/3bd17d32da42b63151f8cf1d18371670c94a9ead)
- feat(player): Upgraded Typescript and other packages to enhance unit tests; corrected linter errors and removed support for Travis CI to favor CircleCI [`cf09666`](https://github.com/openplayerjs/openplayerjs/commit/cf096669348bd76fae37dd3b243b24a6df494a31)
- fix(player): Added missing conditional to avoid dispatching hiding of controls if video is loading for the first time [`02e9335`](https://github.com/openplayerjs/openplayerjs/commit/02e9335eaea0edb67ea745fea34e35a70a4cae7a)
- fix(player): Fixed issues when destroying audio player, and removed destroyed instance from global environment [`2fa1216`](https://github.com/openplayerjs/openplayerjs/commit/2fa12165d07675b1b94f8de2e7c8275d4e83c569)

#### [v2.8.3](https://github.com/openplayerjs/openplayerjs/compare/v2.8.2...v2.8.3)

Expand Down Expand Up @@ -267,9 +276,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

> 18 October 2020
- feat(player): added new set of SVG icons and removed font to simplify maintenance; updated multiple libraries [`de219ad`](https://github.com/openplayerjs/openplayerjs/commit/de219ade30a1c18f4f0ba852985238e31c9ad61c)
- Removed playlist elements [`68b6b09`](https://github.com/openplayerjs/openplayerjs/commit/68b6b09335caeb55cab9eb5a174d2eac33c772db)
- chore(typescript): Fixed various errors coming from Typescript strict standards; added ESM files and set new package.json property to set module [`eea1336`](https://github.com/openplayerjs/openplayerjs/commit/eea13362fa67734b0757938657794b3845ebb047)
- More refinements [`fc31b30`](https://github.com/openplayerjs/openplayerjs/commit/fc31b307a0e4c12d12d647bb450e263cefdb4f7a)
- fix(ads): Moved logic from ads LOADED event to STARTED to adjust scenario described at #162 [`23c757e`](https://github.com/openplayerjs/openplayerjs/commit/23c757eb247bfba03d35280f92425ab456b640b0)

### [v1.16.12](https://github.com/openplayerjs/openplayerjs/compare/v2.1.2...v1.16.12)

Expand Down Expand Up @@ -329,6 +338,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- chore(package): update release-it to version 9.0.1 [`#36`](https://github.com/openplayerjs/openplayerjs/issues/36)
- chore(package): update conventional-changelog to version 3.0.5 [`#25`](https://github.com/openplayerjs/openplayerjs/issues/25)
- chore(package): update webpack-cli to version 3.0.1 [`#7`](https://github.com/openplayerjs/openplayerjs/issues/7)
- Revert "chore(release): 0.2.1" [`a8a4f00`](https://github.com/openplayerjs/openplayerjs/commit/a8a4f00f8a56291faf5c9755b09d3a2780780e4b)
- chore(release): 0.2.0 [`5f4cfce`](https://github.com/openplayerjs/openplayerjs/commit/5f4cfce056fe6a00da7e8da282488c2ad6cc619c)
- chore(release): 0.2.1 [`6444d6d`](https://github.com/openplayerjs/openplayerjs/commit/6444d6dbfade0840716fb7f969feece7c21e4fef)
- Release 1.16.7 [`b7544b8`](https://github.com/openplayerjs/openplayerjs/commit/b7544b802a79d3ebb3042fcb0fe6798fadc90a14)
- Removed documentation since it is not needed anymore [`051992b`](https://github.com/openplayerjs/openplayerjs/commit/051992b1b864d9a815d40b588f316a305613d0f8)
- Release 1.16.9 [`87ce71f`](https://github.com/openplayerjs/openplayerjs/commit/87ce71f78a03c1871d1b52564dc2556bde138047)
2 changes: 1 addition & 1 deletion 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": "openplayerjs",
"version": "2.9.1",
"version": "2.9.2",
"homepage": "https://www.openplayerjs.com/",
"author": {
"name": "Rafael Miranda",
Expand Down
28 changes: 28 additions & 0 deletions test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<html>
<head>
<link rel="stylesheet" href="../dist/openplayer.css" />
<script src="../dist/openplayer.js"></script>
</head>
<>
<video class="op-player__media" id="video" controls playsinline>
<source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/TearsOfSteel.mp4" type="video/mp4" />
</video>

<script>
const id = 'video';
const player = new OpenPlayerJS(id);
player.init().then(() => {

player.load();
player.loadAd('https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=');

try {
player.play();
} catch (err) {
throw new Error('error');
}
});
</script>

</body>
</html>

0 comments on commit 2662362

Please sign in to comment.