@eluvio/elv-player-js 2.1.4 → 2.1.5

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.
@@ -44199,7 +44199,14 @@ function IP() {
44199
44199
  try {
44200
44200
  return (await this.ContentObject({ objectId: v, noCache: !0 })).hash;
44201
44201
  } catch (S) {
44202
- throw S.message = `Unable to determine latest version hash for ${b || v}`, S;
44202
+ try {
44203
+ return await this.CallContractMethod({
44204
+ contractAddress: this.utils.HashToAddress(v),
44205
+ methodName: "objectHash"
44206
+ });
44207
+ } catch {
44208
+ throw S.message = `Unable to determine latest version hash for ${b || v}`, S;
44209
+ }
44203
44210
  }
44204
44211
  }, fn.AvailableDRMs = async function() {
44205
44212
  let v = ["clear", "aes-128"];
@@ -50028,7 +50035,7 @@ function qP() {
50028
50035
  ElvCrypto: async () => {
50029
50036
  try {
50030
50037
  if (!a.elvCrypto) {
50031
- const s = (await import("./index-BYeoCvGG.mjs")).default;
50038
+ const s = (await import("./index-CYItPP7l.mjs")).default;
50032
50039
  a.elvCrypto = await new s().init();
50033
50040
  }
50034
50041
  return a.elvCrypto;
@@ -67212,7 +67219,7 @@ class Ww {
67212
67219
  }
67213
67220
  }
67214
67221
  async __InitializeDash({ playoutUrl: e, authorizationToken: t, drm: a, drms: s }) {
67215
- this.Dash = (await import("./dash.all.min-DvWZ0MqG.mjs").then((c) => c.d)).default;
67222
+ this.Dash = (await import("./dash.all.min-Cd31q8PW.mjs").then((c) => c.d)).default;
67216
67223
  const u = this.Dash.MediaPlayer().create(), o = this.playerOptions.dashjsOptions || {};
67217
67224
  if (u.updateSettings({
67218
67225
  ...o,
@@ -68265,7 +68272,7 @@ const cD = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABSCAYAAACfWoXuAA
68265
68272
  onBlur: () => M(!1),
68266
68273
  onMouseMove: (k) => {
68267
68274
  const { left: T, width: R } = k.currentTarget.getBoundingClientRect();
68268
- b(k.clientX / (R - T));
68275
+ b((k.clientX - T) / R);
68269
68276
  },
68270
68277
  className: `${a} ${Ft["seek-container"]} ${a}`,
68271
68278
  children: [
@@ -150,7 +150,7 @@ export const SeekBar = ({player, videoState, setRecentUserAction, className=""})
150
150
  onBlur={() => setFocused(false)}
151
151
  onMouseMove={event => {
152
152
  const { left, width } = event.currentTarget.getBoundingClientRect();
153
- setHoverPosition(event.clientX / (width - left));
153
+ setHoverPosition((event.clientX - left) / width);
154
154
  }}
155
155
  className={`${className} ${CommonStyles["seek-container"]} ${className}`}
156
156
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "![Eluvio Logo](lib/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "dist/elv-player-js.es.js",
6
6
  "license": "MIT",