@eluvio/elv-player-js 2.0.0 → 2.0.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 cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-mO9GR6Op.mjs";
1
+ import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-gtipGoW1.mjs";
2
2
  class EA {
3
3
  constructor(I) {
4
4
  this.wasm = I;
@@ -858,6 +858,7 @@ class PlayerControls {
858
858
  IsRotatable() {
859
859
  return (
860
860
  this.IsFullscreen() &&
861
+ window.innerWidth < 900 &&
861
862
  window.innerHeight > window.innerWidth &&
862
863
  this.player.video.videoWidth > this.player.video.videoHeight
863
864
  );
@@ -1,3 +1,4 @@
1
+ // WARNING: Do not edit this file manually
1
2
  // Built using `npm run build-icons`
2
3
 
3
4
  export const CenterPlayCircleIcon = "<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <circle cx=\"16\" cy=\"16\" r=\"16\" fill=\"currentColor\"/> <path d=\"M22 15.5L13.75 21.1292L13.75 9.87083L22 15.5Z\" fill=\"black\"/></svg>";
@@ -27,3 +28,4 @@ export const ChevronRightIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width
27
28
  export const CheckmarkIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check\"><polyline points=\"20 6 9 17 4 12\"></polyline></svg>";
28
29
  export const CaptionsIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-badge-cc\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" stroke=\"black\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path> <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" stroke=\"currentColor\"></rect> <path d=\"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0\" stroke=\"currentColor\"></path> <path d=\"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0\" stroke=\"currentColor\"></path></svg>";
29
30
  export const CaptionsOffIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-badge-cc\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" stroke=\"black\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path> <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" stroke=\"currentColor\"></rect> <path d=\"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0\" stroke=\"currentColor\"></path> <path d=\"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0\" stroke=\"currentColor\"></path> <path d=\"M3 3l18 18\" stroke=\"currentColor\"></path></svg>";
31
+ export const RotateIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-rotate-cw\"><polyline points=\"23 4 23 10 17 10\"></polyline><path d=\"M20.49 15a9 9 0 1 1-2.12-9.36L23 10\"></path></svg>";
@@ -30,10 +30,12 @@ const iconSource = {
30
30
  ChevronRightIcon: Path.resolve(__dirname, "../static/icons/svgs/chevron-right.svg"),
31
31
  CheckmarkIcon: Path.resolve(__dirname, "../static/icons/svgs/check.svg"),
32
32
  CaptionsIcon: Path.resolve(__dirname, "../static/icons/svgs/captions.svg"),
33
- CaptionsOffIcon: Path.resolve(__dirname, "../static/icons/svgs/captions-off.svg")
33
+ CaptionsOffIcon: Path.resolve(__dirname, "../static/icons/svgs/captions-off.svg"),
34
+ RotateIcon: Path.resolve(__dirname, "../static/icons/svgs/rotate-cw.svg"),
34
35
  };
35
36
 
36
- let iconFile = "// Built using `npm run build-icons`\n\n";
37
+ let iconFile = "// WARNING: Do not edit this file manually\n"
38
+ iconFile += "// Built using `npm run build-icons`\n\n";
37
39
  Object.keys(iconSource).map(iconName => {
38
40
  iconFile += `export const ${iconName} = "${fs.readFileSync(iconSource[iconName]).toString("utf8").replaceAll("\n", "").replaceAll("\"", "\\\"")}";\n`;
39
41
  });
@@ -187,6 +187,7 @@ const PlayerUI = ({target, parameters, InitCallback, ErrorCallback, Unmount, Res
187
187
  }
188
188
 
189
189
  const shouldRotate =
190
+ parameters.playerOptions.ui === EluvioPlayerParameters.ui.WEB &&
190
191
  player &&
191
192
  player.controls.IsRotatable() &&
192
193
  allowRotation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "![Eluvio Logo](lib/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "lib/index.js",
6
6
  "license": "MIT",