@eluvio/elv-player-js 2.1.0 → 2.1.2

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.
@@ -1,4 +1,4 @@
1
- import { c as DI, r as tI, a as TA, b as rI, d as oA, e as uA, f as PA, g as cI } from "./index-DboHaHhI.mjs";
1
+ import { c as DI, r as tI, a as TA, b as rI, d as oA, e as uA, f as PA, g as cI } from "./index-BTJyodYy.mjs";
2
2
  class BA {
3
3
  constructor(B) {
4
4
  this.wasm = B;
@@ -77,7 +77,7 @@
77
77
  .poster {
78
78
  height: 100%;
79
79
  left: 0;
80
- object-fit: contain;
80
+ object-fit: cover;
81
81
  object-position: center;
82
82
  position: absolute;
83
83
  top: 0;
package/lib/ui/Common.js CHANGED
@@ -148,7 +148,14 @@ export const Time = (time, total) => {
148
148
  };
149
149
 
150
150
  export const ImageUrl = async ({player, pathOrUrl="", width}) => {
151
- if(typeof pathOrUrl === "string" && (pathOrUrl.startsWith("http://") || pathOrUrl.startsWith("https://"))) {
151
+ if(
152
+ typeof pathOrUrl === "string" &&
153
+ (
154
+ pathOrUrl.startsWith("http://") ||
155
+ pathOrUrl.startsWith("https://") ||
156
+ pathOrUrl.startsWith("data:")
157
+ )
158
+ ) {
152
159
  return pathOrUrl;
153
160
  } else if(pathOrUrl && pathOrUrl.url) {
154
161
  return pathOrUrl.url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
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",
@@ -36,8 +36,8 @@
36
36
  "package-lock.json"
37
37
  ],
38
38
  "dependencies": {
39
+ "@eluvio/elv-client-js": "^4.2.3",
39
40
  "dashjs": "git+https://github.com/elv-zenia/dash.js.git#text-track-fix",
40
- "@eluvio/elv-client-js": "^4.2.1",
41
41
  "focus-visible": "^5.2.0",
42
42
  "hls.js": "1.6.0",
43
43
  "mux-embed": "^5.9.0",