@eluvio/elv-player-js 2.1.36 → 2.1.38

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-B1gRiRD2.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-BvW6qlJm.mjs";
2
2
  class BA {
3
3
  constructor(B) {
4
4
  this.wasm = B;
@@ -329,7 +329,8 @@ export class EluvioPlayer {
329
329
  const versionHash = playoutUrl.split("/").find(segment => segment.startsWith("hq__"));
330
330
 
331
331
  const offset = (properties || {}).start_offset_float || 0;
332
- const thumbnailOffset = (clipStart || 0) + (offset || 0);
332
+ // const thumbnailOffset = (clipStart || 0) + (offset || 0);
333
+
333
334
  let frameRate = (properties || {}).rate;
334
335
  if(frameRate && typeof frameRate === "string") {
335
336
  const [num, denom] = frameRate.split("/");
@@ -360,7 +361,7 @@ export class EluvioPlayer {
360
361
  clipStart: options.clip_start,
361
362
  clipEnd: options.clip_end,
362
363
  trimOffset: offset,
363
- thumbnailOffset,
364
+ thumbnailOffset: offset,
364
365
  frameRateRat: (properties || {}).rate,
365
366
  frameRate,
366
367
  sessionId: this.sourceOptions.playoutOptions.sessionId,
@@ -1,5 +1,6 @@
1
1
  import PlayerStyles from "../static/stylesheets/player.module.scss";
2
- import {useEffect, useState} from "react";
2
+ // eslint-disable-next-line no-unused-vars
3
+ import React, {useEffect, useState} from "react";
3
4
 
4
5
  const POINT_CONNECTIONS = [["Nose","LEyeIn"],["LEyeIn","LEye"],["LEye","REyeOut"],["REyeOut","LEar"],["Nose","REyeIn"],["REyeIn","REye"],["REye","REyeOut"],["REyeOut","REar"],["MouthL","MouthR"],["LShoulder","RShoulder"],["LShoulder","LElbow"],["LElbow","LWrist"],["LWrist","LPinky"],["LWrist","LIndex"],["LWrist","LThumb"],["LPinky","LIndex"],["RShoulder","RElbow"],["RElbow","RWrist"],["RWrist","RPinky"],["RWrist","RIndex"],["RWrist","RThumb"],["RPinky","RIndex"],["LShoulder","LHip"],["RShoulder","RHip"],["LHip","RHip"],["LHip","LKnee"],["RHip","RKnee"],["LKnee","LAnkle"],["RKnee","RAnkle"],["LAnkle","LHeel"],["RAnkle","RHeel"],["LHeel","LFootIdx"],["RHeel","RFootIdx"],["LAnkle","LFootIdx"],["RAnkle","RFootIdx"]];
5
6
 
@@ -62,7 +63,7 @@ const Canvas = ({tags, portalDimensions, videoDimensions}) => {
62
63
  context.stroke();
63
64
  });
64
65
  });
65
- }, [tags]);
66
+ }, [canvas, tags, portalDimensions, videoDimensions]);
66
67
 
67
68
 
68
69
  if(!portalDimensions || videoDimensions.videoWidth === 0) { return null; }
@@ -133,6 +134,8 @@ const Overlay = ({player}) => {
133
134
  if(!player.video.paused) {
134
135
  StartInterval();
135
136
  }
137
+
138
+ setTimeout(() => setFrame(Math.floor(player.video.currentTime * frameRate)), 100);
136
139
  }, [(player.playoutInfo || {}).frameRate]);
137
140
 
138
141
  let tags;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "2.1.36",
3
+ "version": "2.1.38",
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",