@twick/live-player 0.15.12 → 0.15.13

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.
package/dist/index.js CHANGED
@@ -374,7 +374,7 @@ function Player({
374
374
  document.removeEventListener("keydown", handleKeyDown);
375
375
  };
376
376
  };
377
- Promise.resolve().then(() => require("./internal-ELSJV37U-CAeKqDSX.js")).then(() => {
377
+ Promise.resolve().then(() => require("./internal-KYB5ZQ5E-BidNZfY8.js")).then(() => {
378
378
  requestAnimationFrame(() => {
379
379
  if (playerRef.current) {
380
380
  playerRef.current.setProject(project);
@@ -406,17 +406,17 @@ function Player({
406
406
  );
407
407
  }
408
408
  }
409
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "twick-player-root", style: { display: "contents" }, children: /* @__PURE__ */ jsxRuntime.jsx(
409
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "twick-player-root w-full h-full", style: { display: "contents" }, children: /* @__PURE__ */ jsxRuntime.jsx(
410
410
  "div",
411
411
  {
412
412
  ref: wrapperRef,
413
- className: "relative cursor-default focus:outline-none",
413
+ className: "relative cursor-default w-full h-full focus:outline-none",
414
414
  onFocus: () => focus.current = true,
415
415
  onBlur: () => focus.current = false,
416
416
  tabIndex: 0,
417
417
  onMouseEnter: () => setIsMouseOver(true),
418
418
  onMouseLeave: () => setIsMouseOver(false),
419
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
419
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-full h-full", children: [
420
420
  /* @__PURE__ */ jsxRuntime.jsx(
421
421
  "twick-player",
422
422
  {
@@ -435,7 +435,7 @@ function Player({
435
435
  /* @__PURE__ */ jsxRuntime.jsx(
436
436
  "div",
437
437
  {
438
- className: `absolute bottom-0 w-full transition-opacity duration-200 ${shouldShowControls(playingState, isMouseOver, !controls) ? "opacity-100" : "opacity-0"}`,
438
+ className: `focus:outline-none bottom-0 w-full transition-opacity duration-200 ${shouldShowControls(playingState, isMouseOver, !controls) ? "opacity-100" : "opacity-0"}`,
439
439
  children: /* @__PURE__ */ jsxRuntime.jsx(
440
440
  Controls,
441
441
  {
@@ -52802,7 +52802,7 @@ const LivePlayer = ({
52802
52802
  controls: false,
52803
52803
  currentTime: seekTime,
52804
52804
  volume,
52805
- quality,
52805
+ quality: quality || 1,
52806
52806
  onTimeUpdate: onCurrentTimeUpdate,
52807
52807
  onPlayerReady: handlePlayerReady,
52808
52808
  width: ((_b2 = (_a2 = baseProject.input) == null ? void 0 : _a2.properties) == null ? void 0 : _b2.width) || DEFAULT_VIDEO_SIZE.width,